Why It didn't work when calling InitiateSystemShutdown() with local system privilege in Vista and 2008?



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


.


Quantcast