Share via


IsDebuggerPresent (Compact 2013)

3/28/2014

This function determines whether the calling process is being debugged by a user-mode debugger.

Syntax

BOOL IsDebuggerPresent (void);

Parameters

None.

Return Value

Returns TRUE is the calling process is being debugged by a user-mode debugger. Otherwise, returns FALSE.

Remarks

This function checks if the pointer to the debugger thread is a valid thread within the debugger process, and if it is valid, then it is assumed that the process is being debugged. If not, the process is assumed to be not being debugged.

Requirements

Header

winbase.h

Library

coredll.lib

See Also

Reference

Debugging Functions