Windows Shutdown
Results 1 to 3 of 3

Thread: Windows Shutdown

  1. #1
    Senior Member
    Join Date
    Dec 2004

    Windows Shutdown

    Anyone know, when windows shuts down, does explorer call another program or is it a integrated part of explorer ? I mean what is the program that is actually responsable for shuting the computer down ? like /sbin/shutdown in linux.
    The fool doth think he is wise, but the wiseman knows himself to be a fool - Good Ole Bill Shakespeare

  2. #2
    Join Date
    Nov 2003
    San Diego

    For options type shutdown -? at the command prompt
    When death sleeps it dreams of you...

  3. #3
    Senior Member
    Join Date
    Jan 2005
    windows is shutdown using API calls

    Public Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    it makes a call to user32.dll and tells it to either shutdown / reboot / logoff etc etc

    im pretty sure shutdown.exe would just have that code in it.

    also typing 'rundll user32.dll,ExitWindowsEx' or something similar (cant remember the actual command) will also tell user32.dll to tell the rest of the computer to shutdown.

    It would be a kernel thing, not just explorer, explorer would only be responsible for handling programs not closing and to offer the user the Shutdown Menu

    Note: I maybe wrong, dont take my word for it

    thats how other programmers get windows to shutdown
    If You\'ve Done Something Right. People Wont Know You\'ve Done Anything At All - God (futurama)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts