Results 1 to 2 of 2

Thread: Windows 95 Shutdown

  1. #1

    Thread Starter
    Fanatic Member vb_dba's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere aloft between the real world and insanity
    Posts
    1,016

    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width