WaitForDebugEvent (Windows CE 5.0)

Send Feedback

This function waits for a debugging event to occur in a process being debugged.

BOOL WaitForDebugEvent(LPDEBUG_EVENTlpDebugEvent, DWORDdwMilliseconds );

Parameters

  • lpDebugEvent
    [in] Pointer to a DEBUG_EVENT structure that is filled with information about the debugging event.

  • dwMilliseconds
    [in] Number of milliseconds to wait for a debugging event.

    If this parameter is 0, the function tests for a debugging event and returns immediately.

    If the parameter is set to 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.

There is a 64 (MAXIMUM_WAIT_OBJECTS) thread limit for WaitForDebugEvent, which means that the maximum threads that can be debugged per-process is 64.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib, Nk.lib.

See Also

ContinueDebugEvent | DebugActiveProcess | DebugBreak | OutputDebugString | DEBUG_EVENT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.