1 2 3 4 5 6 7 8 9 | //----- do stuff #ifdef _DEBUG if (IsDebuggerPresent()) //debugger present? { asm { INT 3 } //breakpoint here, something went wrong analyze your code ; ) Beep(); } #endif //----- do more stuff |
You like this post? Be the first of my friends to give me a beer! click here. Thanks!
cine a zis ca e protectie?
e un #ifdef _DEBUG mai sus daca nu ai observat, nu face decat sa-ti introduca un breakpoint in IDE/codul -ul tau atunci cand esti pe debug…
Asta e protectie impotriva softice ? sau dissasemblers ?
pui nop in locul codului de mai sus si ai scapat de griji ..