Thanks for that.....its a good place to strat. I had doen a search on the 
net, but it was all talking about TerminateApp.....which is not in Delphi 
6 or 5....sigh...but this will get me futher I suspect.

Thanks, Jeremy Coulter

-----Original Message-----
From: Myles Penlington <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Fri, 12 Oct 2001 16:25:38 +1300
Subject: RE: [DUG]:  Unconditional Shutdown

> I presume you use either ExitProcess or TerminateProcess, however you
> need
> the process handle for this to work - there is no mention of requiring
> these
> to be called by a process it self.
> 
> Myles.
> 
> 
> -----Original Message-----
> From: vss [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 12 October 2001 4:17 p.m.
> To: Multiple recipients of list delphi
> Subject: [DUG]: Unconditional Shutdown
> 
> 
> Hi all.
> I have an app. that can only shutdown IF its logged on as an 
> administrator, and even then it askes if you are sure etc.
> 
> I need to shut the app. down from another app. but if I do SendMessage
> (hwnd, WM_CLOSE, 0, 0) it obviously tells you that only the admin can 
> close the app. etc.
> 
> Is there a message or method I can use to kill an app. no mater what ? 
> i.e. unconditionally like end task in the even manager does ?
> 
> I know I can make my own windows message and do it in a procedure,
> thats 
> fine in the next verison of the app. but its the ones out there now I 
> need to shut down.
> 
> Thanks, Jeremy Coulter
> 
> 
> -----------------------------------------------------------------------
> ----
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> -----------------------------------------------------------------------
> ----
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to