F.e. try execute code:
Code: Select all
bDebuggerPresent = true;
bDebuggerPresent = false;
Without DEBUG mode - normal, with DEBUG mode - hang.
This simple construction is used in some products (for detect debugger), including in Skype. Solution: kernel mode debugger or user mode debugging of target process (as described above)