I use stackwalk64 to generate stacktraces for C++ in visual studio 2008 using the latest symchk.exe and dbghlp.dll. This works fine when I\'m running the standalone exe. How
Use IsDebuggerPresent and possibly CheckRemoteDebuggerPresent