프로그래밍/C

    [C++] Anti Reverse Methods

    [C++] Anti Reverse Methods

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

    [C] 기본형태, 데이터출력 방법 printf

    [C] 기본형태, 데이터출력 방법 printf

    printf 함수 사용예제 출력 데이터 사용 예 출력 결과 문자열 printf("Hello World"); Hello World 제어 문자 printf("Hello World\n"); Hello World 출력후 줄바꿈 정수 printf("%d", 10); 10 실수 printf("%lf", 2.5); 2.5 수식 printf("%d", 5 + 5); 10 main 함수 - 프로그램이 시작되는곳으로, 소스에 반드시 있어야한다. 예제 1 /* 이 부분은 주석입니다. */ int main(void) { 5 + 5; return 0; } int main(void) 부분은 head 라 하고, { 괄호부터 } 까지를 body 라 한다. - head 부분은 함수의 이름, 데이터를 표시한다 - body 부분은 실행코..