[DUG] Detecting running from Delphi
Rohit Gupta
rohit at cfl.co.nz
Wed Aug 30 13:30:42 NZST 2006
The Microsoft's recommended way is
function IsDebuggerPresent(): Boolean; external 'kernel32.dll';
However, DebugHook sounds simpler.
David Brennan wrote:
>
> Hi,
>
>
>
> Does anyone know a way of easily (ie in a few lines) detecting that a
> Delphi application is being run from Delphi as opposed to being run by
> double clicking the executable?
>
>
>
> Cheers,
>
> David.
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
--
*Rohit Gupta*
* B.E. Elec. M.E. Mem IEEE Associate IEE*
*Technical Manager*
*Computer Fanatics Limited*
**
*Tel* +64 9 4892280
*Fax* +64 9 4892290
*Email *rohit at cfl.co.nz <mailto:rohit at cfl.co.nz>**
*Web *www.cfl.co.nz <http://www.cfl.co.nz/>
------------------------------------------------------------------------
This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If you
are not the intended recipient, you must not use, distribute or copy
this email or attachments. If you have received this in error, please
notify us immediately by return email and then delete this email and any
attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060830/f3647a11/attachment.html
More information about the Delphi
mailing list