|
-
Dec 14th, 2001, 02:47 PM
#1
Thread Starter
Fanatic Member
Windows 95 Shutdown
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:
Code:
#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?
Chris
Master Of My Domain
Got A Question? Look Here First
-
Dec 14th, 2001, 03:49 PM
#2
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|