need turn off to actually restart unit

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

To meet my customers specs I need a registry entry that will restart windows even if my customer accidentally selects Turn Off instead of Restart. Does anyone know of such a registry entry?
 
Paul,

Try [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon], "PowerdownAfterShutdown"=dword:0
I don't know if the registry works on XPe. You will need to test it.

Have you also tried assigning shutdown script to force the restart? http://support.microsoft.com/default.aspx?scid=kb;en-us;q322241

--
KM,
BSquare Corporation
To meet my customers specs I need a registry entry that will restart windows even if my customer accidentally selects Turn Off
instead of Restart. Does anyone know of such a registry entry?
 
Just one more theoretical idea:
White a small app that handles WM_POWERBROADCAST message. If wParam==PBT_APMSUSPEND, you can abort the shutdown (e.g, shutdown -a)
and reboot the device (shutdown -r, xpepm, ExitWindows[Ex](EWX_REBOOT,...), etc.).

You may also try to handle WM_QUERYENDSESSION/WM_ENDSESSION messages but your code will be more complicated.

--
KM,
BSquare Corporation
Paul,

Try [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon], "PowerdownAfterShutdown"=dword:0
I don't know if the registry works on XPe. You will need to test it.

Have you also tried assigning shutdown script to force the restart? http://support.microsoft.com/default.aspx?scid=kb;en-us;q322241

--
KM,
BSquare Corporation
To meet my customers specs I need a registry entry that will restart windows even if my customer accidentally selects Turn Off
instead of Restart. Does anyone know of such a registry entry?
 
Back
Top