PDA

Click to See Complete Forum and Search --> : Windows 95 Shutdown


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?

parksie
Dec 14th, 2001, 02:49 PM
Many of the *Ex functions don't work on 95 gold. Are you sure that that function is supported? Try looking at the MSDN documentation for that function. At the bottom of the page, it will give you the supported platforms.