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

    Shut Down windows

    I am using ExitWindowsEx API.But it shuts down windows.How do I RESTART Windows?
    Thanks


  2. #2
    Join Date
    Aug 1999
    Posts
    3

    Re: Shut Down windows

    ExitWindowsEx (EWX_REBOOT)

    That should do the trick.


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Shut Down windows

    MSDN:
    EWX_REBOOT = 2.

    On NT you should have SE_SHUTDOWN_NAME previlage
    you are supposed yo use AdjustTokenPrevileges fn to enable this

    Life is a comedy for those who think and a tragedy for those who feel

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