Re: Runtime check for running under debugger?



Bert,

you could use IsDebuggerPresent() or CheckRemoteDebuggerPresent ()
More information is here
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/isdebuggerpresent.asp)

Andreas

Bert Hyman schrieb:

I know I can have selective compilation for debug and release versions,
but is there any runtime check I can perform to see if the code is being
run under the debugger?

--
Bert Hyman | St. Paul, MN | bert@xxxxxxxxxxx

.