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

    How To ShutDown Windows Through Program





    Hi


    How To ShutDown Windows Through Program..


    Polpal

  2. #2
    Join Date
    Apr 1999
    Posts
    11

    ExitWindowsEx



    Hi,


    use ExitWindowsEx(EWX_SHUTDOWN,0);


    good luck


    Raphael



  3. #3
    Join Date
    Mar 1999
    Posts
    2

    Re: How To ShutDown Windows Through Program



    Hi,


    you can shellexecute the following:

    rundll32 user.exe,exitwindows


    this will windows shutdown at anytime, I discovered that the ExitWindowsEx function doesn't work in all cases...


    grtz,

    Ruben

  4. #4
    Join Date
    Jun 1999
    Posts
    12

    Re: How To ShutDown Windows Through Program

    i tried but i was unsuccessful can you send me a sample program......
    regards
    murthy


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

    Re: How To ShutDown Windows Through Program

    use the search function to search for "Shutdown"- I posted sample code a few hours ago that takes care of setting privileges for ExitWindowsEx on 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