This library is compatible with:
- 1. Any C or C++ standard
- 2. Any Windows version and/or build ranging from Windows Vista to Windows 11
- 3. Any C/C++ compiler
- 4. Any processor architecture (32 or 64 bits)
Example Usage 1:
#include "adbg.h"
int main() {
IsProgramDebugged();
return 0;
}
Example Usage 2:
#include "adbg.h"
int main() {
if (IsProgramDebugged()) {
printf("The program is being debugged.\n");
// do something, example: exit(1);
}
else {
printf("The program is NOT debugged.\n");
// continue execution here
}
// or continue execution here
return 0;
}
If you do not want the boolean function to print anything when a debugger is detected, you can simply set printDebugInfo
to false:
#include "adbg.h"
int main() {
printDebugInfo = false;
IsProgramDebugged();
return 0;
}