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

    Arguments for Reebooting Windows

    what are the arguments that ExitWindowsEx ( or ExitWindows) API takes for reebooting windows.
    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Arguments for Reebooting Windows

    you cannot "reboot windows".
    you can reboot your PC, which means that the PC is rebooted and you are confronted with the windows start menu.
    There used to be an EW_RESTARTWINDOWS flag, but that was only in Win16 (WfW) AFAIK.
    All you can do is reboot your PC IMHO using ExitWindowsEx(EWX_REBOOT)


  3. #3
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Re: Arguments for Reebooting Windows

    Thank You for the solution .When I said rebooting Windows I meant rebooting the PC.However I have already tried this argument but it does not work .Perhaps the problem lies somewhere else.In any case I am going to try again.
    Thanks


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Arguments for Reebooting Windows

    if you do that under Windows NT, the process is rather difficult. You need to use the AdjustTokenPrivilege API to give yourself the privileges for shutting down Windows (NT).


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