CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Windows API

  1. #1
    Join Date
    Jul 1999
    Location
    India
    Posts
    15

    Windows API

    I am using windows API to shutdown the system from my application.
    I want to display the Shutdown window which is displayed when
    we choose the startMenu -> shutdown. How to do this and shutdown the windows.



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

    Re: Windows API

    check out the ExitWindowsEx and IntiateSystemShutdown APIs.
    And be aware of differences between NT and Win95/98. In NT you need to call AdjustTokenPrivileges to give your process the necessary privileges for shutting down.


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