From: Gary Crean on
I would like to wakeup a unit 40 minuets after suspending.

I've tried using Power notifcations however the suspend does not always
happen. I was considering a dirty hack by API Hooking GwesPowerDown and using
a CeRunAppAtTime for 40 minutes time.

Is there a better way of doing this ?

From: " ctacke/>" on
Not sure why you feel you need to "hook" GwesPowerDown, but yes,
CeRunAppAtTime or CeSetUserNotification is the correct way to do this.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com
"Gary Crean" <GaryCrean(a)discussions.microsoft.com> wrote in message
news:732AF663-57B5-4FD1-9ED0-8EBB193193CF(a)microsoft.com...
>I would like to wakeup a unit 40 minuets after suspending.
>
> I've tried using Power notifcations however the suspend does not always
> happen. I was considering a dirty hack by API Hooking GwesPowerDown and
> using
> a CeRunAppAtTime for 40 minutes time.
>
> Is there a better way of doing this ?
>


From: Gary Crean on
The reason I want to hook GwesPowerDown is i have no way to tell if the
unit is going to suspend. Unless there is another way.

"<ctacke/>" wrote:

> Not sure why you feel you need to "hook" GwesPowerDown, but yes,
> CeRunAppAtTime or CeSetUserNotification is the correct way to do this.
>
>
> --
>
> Chris Tacke, eMVP
> Join the Embedded Developer Community
> http://community.opennetcf.com
> "Gary Crean" <GaryCrean(a)discussions.microsoft.com> wrote in message
> news:732AF663-57B5-4FD1-9ED0-8EBB193193CF(a)microsoft.com...
> >I would like to wakeup a unit 40 minuets after suspending.
> >
> > I've tried using Power notifcations however the suspend does not always
> > happen. I was considering a dirty hack by API Hooking GwesPowerDown and
> > using
> > a CeRunAppAtTime for 40 minutes time.
> >
> > Is there a better way of doing this ?
> >
>
>
>
From: " ctacke/>" on
Doesn't matter what you hook, you won't be able to run any code before you
go to sleep. You can listen to the power notification queue, but the
reality is that the device doesn't wait for receivers to do stuff, so it's
will put the power down notification in the queue and then go to sleep.
You'll get the notification in your code only *after* the device wakes back
up.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


"Gary Crean" <GaryCrean(a)discussions.microsoft.com> wrote in message
news:C2F83E55-39F5-4ED7-9A26-E173ACE9F8F6(a)microsoft.com...
> The reason I want to hook GwesPowerDown is i have no way to tell if the
> unit is going to suspend. Unless there is another way.
>
> "<ctacke/>" wrote:
>
>> Not sure why you feel you need to "hook" GwesPowerDown, but yes,
>> CeRunAppAtTime or CeSetUserNotification is the correct way to do this.
>>
>>
>> --
>>
>> Chris Tacke, eMVP
>> Join the Embedded Developer Community
>> http://community.opennetcf.com
>> "Gary Crean" <GaryCrean(a)discussions.microsoft.com> wrote in message
>> news:732AF663-57B5-4FD1-9ED0-8EBB193193CF(a)microsoft.com...
>> >I would like to wakeup a unit 40 minuets after suspending.
>> >
>> > I've tried using Power notifcations however the suspend does not always
>> > happen. I was considering a dirty hack by API Hooking GwesPowerDown and
>> > using
>> > a CeRunAppAtTime for 40 minutes time.
>> >
>> > Is there a better way of doing this ?
>> >
>>
>>
>>