apoutney Posted September 30, 2005 Posted September 30, 2005 I want windows to shut down when i close a particular program i created is closed.Does anybody know how this can be done?Everything Ive tried didnt work
mattofak Posted September 30, 2005 Posted September 30, 2005 If you created the program, simply add the following api call:BOOL ExitWindowsEx( UINT uFlags, DWORD dwReason);uFlag takes four optionsEWX_LOGOFF: Logoff the current user. EWX_RESTART: Simply restart the computer. EWX_SHUTDOWN: Shut down 'AT' style. EWX_POWEROFF: Shut down 'ATX' style.dwReason you can ignore
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now