September 30, 200520 yr 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
September 30, 200520 yr 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
Create an account or sign in to comment