예지력

 

#1. IsDebuggerPresent

 

BOOL WINAPI IsDebuggerPresent(void);

 

Return value

If the current process is running in the context of a debugger, the return value is nonzero.

If the current process is not running in the context of a debugger, the return value is zero.

 

#2. CheckRemoteDebuggerPresent

 

BOOL WINAPI CheckRemoteDebuggerPresent(
  _In_     HANDLE hProcess,
  _Inout_  PBOOL pbDebuggerPresent
);

Parameters

hProcess [in]

A handle to the process.

pbDebuggerPresent [in, out]

A 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.

 

#3 DebugActiveProcess


BOOL WINAPI DebugActiveProcess(
  _In_  DWORD dwProcessId
);

Parameters

dwProcessId [in]

The identifier for the process to be debugged. The debugger is granted debugging access to the process as if it created the process with the DEBUG_ONLY_THIS_PROCESS flag. For more information, see the Remarks section of this topic.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is 0 (zero). To get extended error information, call GetLastError.

저작자 표시 비영리 동일 조건 변경 허락
신고

'프로그래밍 > C' 카테고리의 다른 글

[C++] Anti Reverse Methods  (0) 2015.02.04
[C] 기본형태, 데이터출력 방법 printf  (0) 2015.02.04
댓글 로드 중…

블로그 정보

예지력 - 예지력

프로그래밍, 영화 블로그

최근에 게시된 글

티스토리 툴바