CoWaitForMultipleHandlesFlags Enumeration

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum CoWaitForMultipleHandlesFlags

Remarks

Members

Default 0 Dispatch calls needed for marshaling without dispatching arbitrary calls.
WaitAll 1 If set, the call to CoWaitForMultipleHandles(CoWaitForMultipleHandlesFlags, UInt32, UInt32, IntPtr, UInt32) will return S_OK only when all handles associated with the synchronization object have been signaled and an input event has been received, all at the same time.

In this case, the behavior of CoWaitForMultipleHandles(CoWaitForMultipleHandlesFlags, UInt32, UInt32, IntPtr, UInt32) corresponds to the behavior of the MsgWaitForMultipleObjectsEx function with the flags parameter set to MWMO_WAITALL.

If WaitAll is not set, the call to CoWaitForMultipleHandles(CoWaitForMultipleHandlesFlags, UInt32, UInt32, IntPtr, UInt32) will return S_OK as soon as any handle associated with the synchronization object has been signaled, regardless of whether an input event is received.

Alertable 2 If set, the call to CoWaitForMultipleHandles(CoWaitForMultipleHandlesFlags, UInt32, UInt32, IntPtr, UInt32) will return S_OK if an asynchronous procedure call (APC) has been queued to the calling thread with a call to the QueueUserAPC function, even if no handle has been signaled.
InputAvailable 4 If set, the call to CoWaitForMultipleHandles(CoWaitForMultipleHandlesFlags, UInt32, UInt32, IntPtr, UInt32) will return S_OK if input exists for the queue, even if the input has been seen (but not removed) using a call to another function, such as PeekMessage.
DispatchCalls 8 Dispatch calls from CoWaitForMultipleHandles(CoWaitForMultipleHandlesFlags, UInt32, UInt32, IntPtr, UInt32) in an ASTA.

Default is no call dispatch.

This value has no meaning in other apartment types and is ignored.

DispatchWindowMessages 16 Enables dispatch of window messages from CoWaitForMultipleHandles(CoWaitForMultipleHandlesFlags, UInt32, UInt32, IntPtr, UInt32) in an ASTA or STA.

Default in ASTA is no window messages dispatched, default in STA is only a small set of special-cased messages dispatched.

The value has no meaning in MTA and is ignored.

See Also