CoWaitForMultipleObjects function

A replacement for CoWaitForMultipleHandles. This replacement API hides the options for CoWaitForMultipleHandles that are not supported in ASTA.

Syntax

HRESULT CoWaitForMultipleObjects(
  DWORD        dwFlags,
  DWORD        dwTimeout,
  ULONG        cHandles,
  const HANDLE *pHandles,
  LPDWORD      lpdwindex
);

Parameters

dwFlags

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

The timeout in milliseconds of the wait.

cHandles

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

pHandles

An array of handles to waitable kernel objects.

lpdwindex

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

   
Target Platform Windows
Header combaseapi.h
DLL Combase.dll; Ole32.dll