This function waits for a debugging event to occur in a process being debugged.
At a Glance
Header file: | Winbase.h |
Windows CE versions: | 2.0 and later |
Syntax
BOOL WaitForDebugEvent(LPDEBUG_EVENT lpDebugEvent,
DWORD dwMilliseconds);
Parameters
lpDebugEvent
Pointer to a DEBUG_EVENT structure that is filled with information about the debugging event.
dwMilliseconds
Specifies the number of milliseconds to wait for a debugging event. If this parameter is zero, the function tests for a debugging event and returns immediately. If the parameter is INFINITE, the function does not return until a debugging event has occurred.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
Only the thread that created the process being debugged can call WaitForDebugEvent.
See Also
ContinueDebugEvent, DebugActiveProcess, DebugBreak, DEBUG_EVENT, OutputDebugString