Shutdown in WinXPe

  • Thread starter Thread starter Ashok
  • Start date Start date
A

Ashok

Hi,

My Application running on XPe is controlling the System Shutdown by
intercepting the WM_POWERBROADCAST. When it receives this message, the
applicaiton sends out a message to all the applications it has launched to
close. Once it receives a confirmation, it initiates shutdown by calling
InitiateSystemShutdown( ).

It works fine on WinXP professional but when I try the same on the Hardware
with WinXPe, it does not. We have a Explorer shell running on WindowsXPe and
whenever I press the shutdown button, I am getting the messages from
WM_POWERBROADCAST message handler but it is not sending any messages to the
Applications for graceful closing, instead hardware shuts the power to the
processor immediately. Please let me know if you have any idea about this.

Thanks,
Ashok
 
Ashok,
According to your description, your "application sends out a message to all
the applications it has launched to close." This sounds like a problem with
your application as opposed to anything to do with system handling of
WM_POWERBROADCAST. Are you asking why your application is behaving
differently in XPe compared to XP Pro? If yes, then I think your question
cannot be answered unless you show some code.

LA
 
Back
Top