BOOL ContinueDebugEvent(idProcess, idThread, fdwContinueStatus) | |||||
DWORD idProcess; | /* specifies process ID to continue | */ | |||
DWORD idThread; | /* specifies thread ID to continue | */ | |||
DWORD fdwContinueStatus; | /* specifies continuation status | */ |
The ContinueDebugEvent function enables a debugger to continue a thread that previously reported a debug event.
idProcess
Specifies the process ID of the process to continue.
idThread
Specifies the thread ID of the thread to continue. The combination of process ID and thread ID must identify a thread that has previously reported a debug event.
fdwContinueStatus
Specifies how to continue the thread that reported the debug event.
Value | Meaning |
DBG_CONTINUE | If the thread specified by idThread previously reported an EXCEPTION_DEBUG_EVENT, the function stops all exception processing and continues the thread. For any other debug event, this flag simply continues the thread. |
DBG_EXCEPTION_NOT_HANDLE | If the thread specified by idThread previously reported an EXCEPTION_DEBUG_EVENT, the function continues exception processing. If this is a first chance exception event, then structured exception handler search/dispatch logic is invoked. Otherwise, the process is terminated. For any other debug event, this flag simply continues the thread. |
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
Only the thread that created idProcess with the CreateProcess function can call ContinueDebugEvent.
Upon successful completion of this function, the specified thread is continued. Depending on the debug event previously reported by the thread, certain side effects occur.
If the continued thread previously reported an EXIT_THREAD_DEBUG_EVENT, ContinueDebugEvent closes the handle that the debugger has to the thread.
If the continued thread previously reported an EXIT_PROCESS_DEBUG_EVENT, ContinueDebugEvent closes the handles that the debugger has to the process and to the thread.
CreateProcess