DbgWaitForMultipleObjects function
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
Waits for any (or all) of the specified objects to be signaled.
In a debug build, this function triggers an assert if the time-out interval expires before the objects are signaled. To set the time-out interval, call the DbgSetWaitTimeout function.
In a retail build, this function is equivalent to the WaitForMultipleObjects function with a time-out interval of INFINITE.
Syntax
DWORD DbgWaitForMultipleObjects(
DWORD nCount,
CONST HANDLE *lpHandles,
BOOL bWaitAll
);
Parameters
-
nCount
-
Number of objects.
-
lpHandles
-
Array of handles to objects, of size nCount.
-
bWaitAll
-
Boolean value that specifies whether to wait for all of the objects. If TRUE, the function waits for all of the objects to be signaled. Otherwise, it waits for at least one object to be signaled.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|