QueryCurrentThreadIsDebuggerThread()
Determines if the current running thread is the debugger thread.