IsDebuggerPresent Function
https://docs.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-isdebuggerpresent
IsDebuggerPresent function (debugapi.h)
Determines whether the calling process is being debugged by a user-mode debugger.
docs.microsoft.com
호출 프로세스가 사용자 모드 디버거에 의해 디버깅되는지 여부를 결정한다.
Syntax
BOOL IsDebuggerPresent(
);
Parameters
이 함수는 매개변수가 없다.
Return Value
1. 현재 프로세스가 디버거 컨텍스트에서 실행 중이면 반환 값이 0이 아니다.
2. 현재 프로세스가 디버거 컨텍스트에서 실행되고 있지 않으면 반환 값이 0이 된다.
Remarks
1. 이 함수는 응용 프로그램이 그것의 동작을 수정할 수 있도록 디버깅 여부를 결정할 수 있게 한다. 예를 들어, 응용 프로그램은 디버깅되는 경우 OutputDebugString 함수를 사용하여 추가 정보를 제공할 수 있다.
2. 원격 프로세스가 디버깅되는지 여부를 확인하려면 CheckRemoteDebuggerPresent 함수를 사용해라.
3. 이 함수를 사용하는 응용 프로그램을 컴파일하려면 _WIN32_WINNT 매크로를 0x0400 이상으로 정의해라. For more information, see Using the Windows Headers.
Requirements
1. Minimum supported client
Windows XP [desktop apps | UWP apps]
2. Minimum supported server
Windows Server 2003 [desktop apps | UWP apps]
3. Target Platform
Windows
4. Header
debugapi.h (include Windows.h)
5. Library
Kernel32.lib
6. DLL
Kernel32.dll
'ETC > Windows API' 카테고리의 다른 글
GetDlgItemInt Function (0) | 2019.08.20 |
---|---|
GetDlgItemTextA Function (0) | 2019.08.13 |
DialogBoxParamA Function (0) | 2019.08.07 |
GetDlgItemTextA Function (0) | 2019.07.17 |
GetDriveTypeA Function (0) | 2019.07.13 |