- shutdown scripts: difference between shutdown & reboot?
- Posted by FNX on February 17th, 2006
I have a custom shutdown script running (set up in the group policy). Is
there any way to tell the difference between an actual shutdown and a reboot?
I need to synchronise shutting down a secondary PC, but at the moment
rebooting PC1 shuts down PC2 instead of rebooting, as my script has to assume
a shutdown.
--
=======================- http://www.thalesgroup.com/ -=====================
Neil Bird Principal Engineer | A: Yes
mailto:neil.bird@uk.thalesgroup.no.spam.please | Q: Is top-posting bad?
Please replace 'no.spam.please' with 'com' to reply directly.
- Posted by Kellie Fitton on February 17th, 2006
Hi,
When the user chooses to end the windows session by using the
following Win32 functions:
ExitWindowsEx()
InitiateSystemShutdownEx()
The windows message WM_QUERYENDSESSION is sent to your application,
and after processing this message windows can send the message
WM_ENDSESSION with the wParam parameter set to the results of the
windows message WM_QUERYENDSESSION.
http://msdn.microsoft.com/library/de...twindowsex.asp
http://msdn.microsoft.com/library/de...shutdownex.asp
http://msdn.microsoft.com/library/de...endsession.asp
Hope these information helps,
Kellie.
- XP Reboot & Shutdown Problem (Help and Support) by tony1124
- 1517 Warning every shutdown/reboot (Microsoft Windows) by t-man
- Force Automatic Reboot or Shutdown (Security & Administration) by Greg
- computer won't shutdown/reboot (Help and Support) by jeb22
- Continual Reboot on shutdown (Help and Support) by Divard

