vb_dba
Dec 14th, 2001, 01:47 PM
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:
#include <windows.h>
int main()
{
//I've also tried EWX_SHUTDOWN
ExitWindowsEx(EWX_FORCE | EWX_POWEROFF, 0);
return 0;
}
Any ideas why it won't work from Windows 95?
#include <windows.h>
int main()
{
//I've also tried EWX_SHUTDOWN
ExitWindowsEx(EWX_FORCE | EWX_POWEROFF, 0);
return 0;
}
Any ideas why it won't work from Windows 95?