Click to See Complete Forum and Search --> : Windows API


Naveen
July 28th, 1999, 02:50 AM
I am using windows API to shutdown the system from my application.
I want to display the Shutdown window which is displayed when
we choose the startMenu -> shutdown. How to do this and shutdown the windows.

Lothar Haensler
July 28th, 1999, 02:54 AM
check out the ExitWindowsEx and IntiateSystemShutdown APIs.
And be aware of differences between NT and Win95/98. In NT you need to call AdjustTokenPrivileges to give your process the necessary privileges for shutting down.