I am working on an application that installs a system wide keyboard hook. I do not want to install this hook when I am running a debug build from inside the visual studio (o
For those working with Windows API, there's a function which allows you to see if any debugger is present using:
if( IsDebuggerPresent() ) { ... }
Reference: http://msdn.microsoft.com/en-us/library/ms680345.aspx