CommonMessagePump.IVsCommonMessagePump.ModalWaitForObjects 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过泵处理消息来阻止当前线程,直到超时或指定的一个句柄发出信号。
virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.ModalWaitForObjects(cli::array <IntPtr> ^ handles, System::UInt32 handleCount, [Runtime::InteropServices::Out] System::UInt32 % waitResult) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::ModalWaitForObjects;
int IVsCommonMessagePump.ModalWaitForObjects (IntPtr[] handles, uint handleCount, out uint waitResult);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.ModalWaitForObjects : nativeint[] * uint32 * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.ModalWaitForObjects : nativeint[] * uint32 * uint32 -> int
Function ModalWaitForObjects (handles As IntPtr(), handleCount As UInteger, ByRef waitResult As UInteger) As Integer Implements IVsCommonMessagePump.ModalWaitForObjects
参数
- handles
-
IntPtr[]
nativeint[]
要等待的句柄的数组。
- handleCount
- UInt32
句柄的数目。
- waitResult
- UInt32
弄发出信号的句柄的索引,如果等待超时,则为 WAIT_TIMEOUT。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。