Jump to content
Macro Express Forums

How Do Reboot Or Shutdown Commands Work?


iceman
 Share

Recommended Posts

All programs, including Macro Express, communicate within Windows via messages. There are specific messages to perform each of these system commands: Reboot, Shutdown and Power Off. There are other specific messages used to perform these other similar system commands: Lock Workstation, Logoff, Suspend Computer, and Hibernate.

 

I noticed that Windows 2000 and XP use different parameters for the shutdown command.
What do you mean?
Link to comment
Share on other sites

You can also use the "Launch Program" and use the 2000/XP/Vista shutdown switches. It's just like typing it in at the Run line. For instance

shutdown /r /t 30

BTW in Vista there are more command line parameters for Shutdown and you can even add comments now like in Windows Server 2003.

Link to comment
Share on other sites

Do you know of any good on-line resources that explain how "All programs, including Macro Express, communicate within Windows via messages."?
We subscribe to Microsoft Developer Network (MSDN). You can view a lot of the MSDN information online.
...sends a message to Windows that forces all applications to close, like the /f command does in shutdown /s /t 30 /f?
Macro Express simply sends the 'Exit Windows EX' (EWX_SHUTDOWN) API message. Windows is in charge of what happens from that point on.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...