Shutting down Win2000 under program control
Posted on 2002-04-02
In Windows 95/98, you can shut down or reboot Windows using the ExitWindowsEx User32 API call, ExitWindowsEx(2&, 0&) to reboot and ExitWindowsEx(1&, 0&) to shut down. This does not seem to work with Win2000. Does anyone know how to shut down and reboot Windows from within a program?