0 Members and 1 Guest are viewing this topic.
// isdebuggerpresent.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include <stdio.h>#include <Windows.h> int _tmain(int argc, _TCHAR* argv[]){ int num; if(IsDebuggerPresent()) { num = 0; } else { num = 1; } printf("Number: %d\n", num); /* wait */ getchar(); return 0;}