Share via


CommonMessagePump.IVsCommonMessagePump.ModalWaitForObjects Method

Definition

Blocks the current thread by pumping messages until either a timeout or one of the specified handles has been signaled.

 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

Parameters

handles

IntPtr[]

nativeint[]

Array of handles to wait on.

handleCount
UInt32

Count of handles

waitResult
UInt32

WAIT_TIMEOUT if the wait timed out OR the index to the signaled handle.

Returns

S_OK - the wait condition was met; pdwWaitResult parameter will contain more information about the wait result. E_PENDING - the method had to quit because user cancelled the wait operation. E_ABORT - likely WM_QUIT was received.

Implements

Applies to