Re: Windows Shutdown in code
From: Jeremy Collins (jd.collins_at_ntlworld-not.com)
Date: 10/31/03
- Next message: Maarten Wiltink: "Re: Can't get this web application to work."
- Previous message: Ian Robinson: "Re: Which database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 14:33:51 +0000
Roy wrote:
> Hi,
> Does anyone have some reliable code for shutting windows (2000) down
> from within a Delphi (6) program?
>
> In the past I've used the freeware abf components but this no longer seems
> to work.
This is almost certainly due to the fact that your program needs the
correct privileges to shut down the system under Windows 2000.
Specifically, you need to call AdjustTokenPrivileges with the
SE_SHUTDOWN_NAME flag.
Seach Google groups for "Delphi ExitWindowsEx 2000" or similar, this
has been answered many times before.
-- jc Remove the -not from email
- Next message: Maarten Wiltink: "Re: Can't get this web application to work."
- Previous message: Ian Robinson: "Re: Which database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|