I have a need to create a program that all it does is shutdown Windows. I have created such a program that works fine on my Windows 2K machine. It doesn't work on my Windows 95 machine however. Following is the code for the program:
Any ideas why it won't work from Windows 95?Code:#include <windows.h> int main() { //I've also tried EWX_SHUTDOWN ExitWindowsEx(EWX_FORCE | EWX_POWEROFF, 0); return 0; }




Reply With Quote