Export (0) Print
Expand All
COM
Expand Minimize

CoWaitForMultipleObjects function

A replacement for CoWaitForMultipleHandles, primarily intended for use by Windows Store apps and components. This replacement API hides the options for CoWaitForMultipleHandles that are not supported in ASTA.

Syntax


HRESULT WINOLEAPI CoWaitForMultipleObjects(
  _In_   DWORD  dwFlags,
  _In_   DWORD  dwTimeout,
  _In_   ULONG cHandles,
  _In_   LPHANDLE pHandles,
  _Out_  LPDWORD lpdwIndex
);

Parameters

dwFlags [in]

CWMO_FLAGS flag controlling whether call/window message reentrancy is enabled from this wait. By default, neither COM calls nor window messages are dispatched from CoWaitForMultipleObjects in ASTA.

dwTimeout [in]

The timeout in milliseconds of the wait.

cHandles [in]

The length of the pHandles array. Must be <= 56.

pHandles [in]

An array of handles to waitable kernel objects.

lpdwIndex [out]

Receives the index of the handle that satisfied the wait.

Return value

Same return values as CoWaitForMultipleHandles, except the ASTA-specific CO_E_NOTSUPPORTED cases instead return E_INVALIDARG from all apartment types.

Requirements

Header

Combaseapi.h

DLL

Combase.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft