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

    How can I shut down the machine from an app?

    I want an app to be able to shut off the machine. Any ideas?


  2. #2
    Guest

    Re: How can I shut down the machine from an app?

    Hi!!
    This can be a solution for your question.
    command :
    ExitWindowsEx( EX_SHUTDOWN );

    this command is a API command;
    You can find the detailed help file in MSDN library.
    This command can shutdown , or reset your computer ..


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