A quick and dirty way is to call FindWindow to determine if the debugger
is running. This does not tell you if it is actual being debugged, but
it will tell you if Delphi is currently running.

There are more robust techniques, but this certainly does the trick.

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Laman
Sent: Wednesday, September 14, 2005 10:16 AM
To: Delphi Talk
Subject: //Debugging?

Is there any general way for any Windows program to determine whether it
is
running under the control of a debugger?

Peter Laman
Senior Software Engineer
Lance ICT Group
Roermond, the Netherlands
http://www.lance-safety.com
-
"Nobody ever died of hard work", they say. But why take the risk?
(Ronald
Reagan)

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to