CheckRemoteDebuggerPresent (Compact 2013)
3/28/2014
This function determines whether the specified process is being debugged.
Syntax
BOOL CheckRemoteDebuggerPresent(
HANDLE hProcess,
PBOOL pbDebuggerPresent
);
Parameters
- hProcess
[in] Handle to the process.
- pbDebuggerPresent
[in, out] Pointer to a variable that the function sets to TRUE if the specified process is being debugged, or FALSE otherwise.
Return Value
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.
Remarks
The "remote" in CheckRemoteDebuggerPresent does not imply that the debugger necessarily resides on a different computer; instead, it indicates that the debugger resides in a separate and parallel process. Use the IsDebuggerPresent function to detect whether the calling process is running under the debugger.
Requirements
Header |
winbase.h, |
Library |
coredll.dll |