Why It didn't work when calling InitiateSystemShutdown() with local system privilege in Vista and 2008?
- From: "JojoWu" <JojoWu@xxxxxxxxxxxxxxxx>
- Date: Tue, 24 Feb 2009 14:16:00 +0800
Hi,
I had a program for shutting down the computer. It called the function
initiateSystemShutdown() to turn off a computer with bForceAppsClosed =
FALSE and local system privilege. It worked normally in Windows 2000, XP
and 2003.
It should ask logoned user to decide if he save the changed data when
user modified any data, but it directly made the windows to shut down in
Windows Vista and 2008. It will work normally if I launch it with "run as
administrator".
How can I make it to work normally?
Thank you,
Jojo
.
- Follow-Ups:
- RE: Why It didn't work when calling InitiateSystemShutdown() with local system privilege in Vista and 2008?
- From: Rong-Chun Zhang [MSFT]
- RE: Why It didn't work when calling InitiateSystemShutdown() with local system privilege in Vista and 2008?
- Prev by Date: Re: CryptAcquireContext with CRYPT_NEWKEYSET return Access Denied
- Next by Date: Re: CryptAcquireContext with CRYPT_NEWKEYSET return Access Denied
- Previous by thread: Logon to W2K8 locked RDP session may spin forever at 'Welcome'
- Next by thread: RE: Why It didn't work when calling InitiateSystemShutdown() with local system privilege in Vista and 2008?
- Index(es):