CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    6

    rebooting windows

    does anybody know how to reboot windows (95/98)?
    (for example when the ok-button is pressed...)

    thanks in advance





  2. #2
    Join Date
    Apr 1999
    Posts
    72

    Re: rebooting windows

    I think it is: ExitWindowsEx( EXW_SHUTDOWN,0);


    That prompts the user to shut down, but if you want to close all programs and not prompt the user, use: ExitWindowsEx( EXW_SHUTDOWN | EXW_FORCE,0);




  3. #3
    Join Date
    Apr 1999
    Location
    Finland
    Posts
    68

    Re: rebooting windows

    That actually shuts down the computer, to reboot computer you should use EWX_REBOOT instead of EWX_SHUTDOWN


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

Featured