PC Review Forums Newsgroups Windows XP Windows XP Embedded XPE Restart and Service shutdown

Reply

XPE Restart and Service shutdown

 
Thread Tools Rate Thread
Old 26-05-2005, 12:27 PM   #1
=?Utf-8?B?a21hdGhldw==?=
Guest
 
Posts: n/a
Default XPE Restart and Service shutdown


To restart an XPE system I use "XPE_ReStart". But this does not seem to
shutdown services properly.

What would be a more graceful way to restart XPE? I would like that the
SERVICE_CONTROL_SHUTDOWN control code be sent to services before restarting.

  Reply With Quote
Old 26-05-2005, 02:23 PM   #2
Slobodan Brcin \(eMVP\)
Guest
 
Posts: n/a
Default Re: XPE Restart and Service shutdown

Shutdown.exe would be nice start.

Or Win32 API call: ExitWindowsEx.

Regards,
Slobodan





"kmathew" <kmathew@discussions.microsoft.com> wrote in message news:A353E544-AAE1-4BE1-BB0D-DB1C349BB6A4@microsoft.com...
> To restart an XPE system I use "XPE_ReStart". But this does not seem to
> shutdown services properly.
>
> What would be a more graceful way to restart XPE? I would like that the
> SERVICE_CONTROL_SHUTDOWN control code be sent to services before restarting.
>



  Reply With Quote
Old 26-05-2005, 07:33 PM   #3
KM
Guest
 
Posts: n/a
Default Re: XPE Restart and Service shutdown

Also, you can use InitiateSystemShutdown[Ex]
(http://msdn.microsoft.com/library/d...temshutdown.asp).
You should use it instead of the ExitWindows[Ex] if you are not interactive
user.

For both function calls, make sure the calling thread have SE_SHUTDOWN_NAME
privilege.

Sometimes it is also handy to use Power Management functions to shutdown the
system: SetSuspendState/SetSystemPowerState.
http://msdn.microsoft.com/library/e...mpowerstate.asp.
Again, the SE_SHUTDOWN_NAME privilege is required.

KM

> Shutdown.exe would be nice start.
>
> Or Win32 API call: ExitWindowsEx.
>
> Regards,
> Slobodan
>
>
>
>
>
> "kmathew" <kmathew@discussions.microsoft.com> wrote in message
> news:A353E544-AAE1-4BE1-BB0D-DB1C349BB6A4@microsoft.com...
>> To restart an XPE system I use "XPE_ReStart". But this does not seem to
>> shutdown services properly.
>>
>> What would be a more graceful way to restart XPE? I would like that the
>> SERVICE_CONTROL_SHUTDOWN control code be sent to services before
>> restarting.
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off