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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now