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
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