shutdown PC

Discussion in 'Computer Science & Culture' started by Vivi, Mar 14, 2003.

Thread Status:
Not open for further replies.
  1. Vivi Registered Member

    Messages:
    1
    Hi all,
    Does any know how to shutdown PC or Windows from C++ program or from C#? or anyone can tell me this from java?

    help needed...plz help...?

    thanx,
    Vivi....

    Please Register or Log in to view the hidden image!

    Please Register or Log in to view the hidden image!

     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. LSatyl Registered Senior Member

    Messages:
    44
    If you need to know anything about Microsoft's API's, MSDN (the MicroSoft Developer Network) provides all the answers. Use the advanced search option (top left of the page), and check the "API, Class Library and Language References in the MSDN Library" option, and its suboption "Windows API". You can also uncheck the other options to return only api information.

    Having done that, the API call for shutdown is described on the following page:

    msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32shutdown_method_in_class_win32_operatingsystem.asp

    you have to cut & paste the url, since it's too long for the reply entry form

    Please Register or Log in to view the hidden image!



    hth
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
Thread Status:
Not open for further replies.

Share This Page