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.
Printable View
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.
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.