Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ExitWindowsEx

Status
Not open for further replies.

jvet4

Technical User
Jul 24, 2000
54
US
Hello,

I created a GUI using Visual C++ (v 6.0) under Windows 2000 that gives the operator the option to shutdown or restart windows. For the shutdown portion I call the function ExitWindowsEx(EWX_SHUTDOWN, 0) and for the restart I call ExitWindowsEx(EWX_REBOOT, 0). This application works properly under Windows 2000 but neither option works on Windows 2003 (the application appears but neither the restart or the shutdown option work). I have disabled the Shutdown Event Tracker to avoid any unnecesary user interaction.

If anyone has any ideas it would be extremely helpful.

Thanks,
-JV
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top