IVsCommonMessagePump::ModalWaitForObjectsWithClient Method (array<IntPtr>^, UInt32, IVsCommonMessagePumpClientEvents^)

 

The method's behavior is very similar to ModalWaitForObjects. In addition, it allows for a custom wait and events processing logic to be supplied. The method makes VS modal, and automatically provides the default wait UI after about 2 seconds of waiting.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int ModalWaitForObjectsWithClient(
	array<IntPtr>^ rgHandles,
	unsigned int cHandles,
	IVsCommonMessagePumpClientEvents^ pClient
)

Parameters

rgHandles
Type: array<System::IntPtr>^

The array of handles for the objects to wait on.

cHandles
Type: System::UInt32

The number of handles in the array. The maximum is 64.

pClient
Type: Microsoft.VisualStudio.Shell.Interop::IVsCommonMessagePumpClientEvents^

The IVsCommonMessagePumpClientEvents.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return to top
Show: