The WaitForDebugEvent function waits for a debugging event to occur in a process being debugged.
BOOL WaitForDebugEvent(
LPDEBUG_EVENT lpDebugEvent, |
// address of structure for event information |
DWORD dwMilliseconds |
// number of milliseconds to wait for event |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Only the thread that created the process being debugged can call WaitForDebugEvent.
ContinueDebugEvent, DebugActiveProcess, DebugBreak, DEBUG_EVENT, OutputDebugString