Hi All
I want to display a full screen message "sleeping" (for example) or a bitmap
just before going to suspend. I am suspending by issueing a VK_OFF.
What is the correct place to implement this and how to implement. Any
suggestions?

Best regards.

Sohail Tariq

--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200803/1

Re: Shutdown message display by Erwin

Erwin
Mon Mar 17 00:20:48 PDT 2008

Hi Sohail,

In your application you can register yourself to power notifications
(RequestPowerNotifications()). when you call SetSystemPowerState() with the
POWER_STATE_RESET flag you can capture this and do whatever you'd like to
do.

Take a look at the power management component for more details, it is quite
extensive,


Hope This Helps,

Erwin Zwart

"sohailto via PocketPCJunkies.com" <u37977@uwe> wrote in message
news:8133474c04aa0@uwe...
> Hi All
> I want to display a full screen message "sleeping" (for example) or a
> bitmap
> just before going to suspend. I am suspending by issueing a VK_OFF.
> What is the correct place to implement this and how to implement. Any
> suggestions?
>
> Best regards.
>
> Sohail Tariq
>
> --
> Message posted via PocketPCJunkies.com
> http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200803/1
>



Re: Shutdown message display by Dean

Dean
Mon Mar 17 06:24:08 PDT 2008

Except that you'll get the notification after the event has occured. You'll
be notified that the system has suspended, but you'll get the notification
after the device has already resumed. Applications can't intercept the
suspend/resume process (this is by design).

The only way is to manage this behavior via a driver.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Erwin Zwart" <erwin dot zwart at pts dot nl> wrote in message
news:uVMht9$hIHA.3940@TK2MSFTNGP05.phx.gbl...
> Hi Sohail,
>
> In your application you can register yourself to power notifications
> (RequestPowerNotifications()). when you call SetSystemPowerState() with
> the POWER_STATE_RESET flag you can capture this and do whatever you'd like
> to do.
>
> Take a look at the power management component for more details, it is
> quite extensive,
>
>
> Hope This Helps,
>
> Erwin Zwart
>
> "sohailto via PocketPCJunkies.com" <u37977@uwe> wrote in message
> news:8133474c04aa0@uwe...
>> Hi All
>> I want to display a full screen message "sleeping" (for example) or a
>> bitmap
>> just before going to suspend. I am suspending by issueing a VK_OFF.
>> What is the correct place to implement this and how to implement. Any
>> suggestions?
>>
>> Best regards.
>>
>> Sohail Tariq
>>
>> --
>> Message posted via PocketPCJunkies.com
>> http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200803/1
>>
>
>



Re: Shutdown message display by Graeme

Graeme
Thu Mar 27 03:32:01 PDT 2008

Further to this GWES is shutdown before the drivers i think so you can't
write to the screen in power down, if you can alter the power manager you
can move the GWES code, I've done this for modems deregistering from a
network before going into suspend on PPC but thats with access to the BSP...

--
--
GraemeW
Web - http://www.bytesnap.co.uk
Blog - http://ce4all.blogspot.com

"Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
news:e1VIvIDiIHA.4344@TK2MSFTNGP03.phx.gbl...
> Except that you'll get the notification after the event has occured.
> You'll be notified that the system has suspended, but you'll get the
> notification after the device has already resumed. Applications can't
> intercept the suspend/resume process (this is by design).
>
> The only way is to manage this behavior via a driver.
>
> --
> Dean Ramsier - eMVP
> BSQUARE Corporation
>
>
> "Erwin Zwart" <erwin dot zwart at pts dot nl> wrote in message
> news:uVMht9$hIHA.3940@TK2MSFTNGP05.phx.gbl...
>> Hi Sohail,
>>
>> In your application you can register yourself to power notifications
>> (RequestPowerNotifications()). when you call SetSystemPowerState() with
>> the POWER_STATE_RESET flag you can capture this and do whatever you'd
>> like to do.
>>
>> Take a look at the power management component for more details, it is
>> quite extensive,
>>
>>
>> Hope This Helps,
>>
>> Erwin Zwart
>>
>> "sohailto via PocketPCJunkies.com" <u37977@uwe> wrote in message
>> news:8133474c04aa0@uwe...
>>> Hi All
>>> I want to display a full screen message "sleeping" (for example) or a
>>> bitmap
>>> just before going to suspend. I am suspending by issueing a VK_OFF.
>>> What is the correct place to implement this and how to implement. Any
>>> suggestions?
>>>
>>> Best regards.
>>>
>>> Sohail Tariq
>>>
>>> --
>>> Message posted via PocketPCJunkies.com
>>> http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200803/1
>>>
>>
>>
>
>



Re: Shutdown message display by Dean

Dean
Thu Mar 27 06:11:36 PDT 2008

That limitation is true for the legacy power management implementation
(PowerOn/PowerOff calls in stream driver interface). However if the driver
supports the Power Manager interface it will be called synchronously before
any drivers are unloaded. At that point the driver still has full access to
the system and can do anything it wants (including communicating to an
application via a side channel).

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Graeme Wintle" <graememsng@removethis.bytesnap.co.uk> wrote in message
news:evEeLX$jIHA.4076@TK2MSFTNGP05.phx.gbl...
> Further to this GWES is shutdown before the drivers i think so you can't
> write to the screen in power down, if you can alter the power manager you
> can move the GWES code, I've done this for modems deregistering from a
> network before going into suspend on PPC but thats with access to the
> BSP...
>
> --
> --
> GraemeW
> Web - http://www.bytesnap.co.uk
> Blog - http://ce4all.blogspot.com
>
> "Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
> news:e1VIvIDiIHA.4344@TK2MSFTNGP03.phx.gbl...
>> Except that you'll get the notification after the event has occured.
>> You'll be notified that the system has suspended, but you'll get the
>> notification after the device has already resumed. Applications can't
>> intercept the suspend/resume process (this is by design).
>>
>> The only way is to manage this behavior via a driver.
>>
>> --
>> Dean Ramsier - eMVP
>> BSQUARE Corporation
>>
>>
>> "Erwin Zwart" <erwin dot zwart at pts dot nl> wrote in message
>> news:uVMht9$hIHA.3940@TK2MSFTNGP05.phx.gbl...
>>> Hi Sohail,
>>>
>>> In your application you can register yourself to power notifications
>>> (RequestPowerNotifications()). when you call SetSystemPowerState() with
>>> the POWER_STATE_RESET flag you can capture this and do whatever you'd
>>> like to do.
>>>
>>> Take a look at the power management component for more details, it is
>>> quite extensive,
>>>
>>>
>>> Hope This Helps,
>>>
>>> Erwin Zwart
>>>
>>> "sohailto via PocketPCJunkies.com" <u37977@uwe> wrote in message
>>> news:8133474c04aa0@uwe...
>>>> Hi All
>>>> I want to display a full screen message "sleeping" (for example) or a
>>>> bitmap
>>>> just before going to suspend. I am suspending by issueing a VK_OFF.
>>>> What is the correct place to implement this and how to implement. Any
>>>> suggestions?
>>>>
>>>> Best regards.
>>>>
>>>> Sohail Tariq
>>>>
>>>> --
>>>> Message posted via PocketPCJunkies.com
>>>> http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200803/1
>>>>
>>>
>>>
>>
>>
>
>