Hello.

I am trying to make a simple test application that makes a WM device sleep
and resume continuously.

I made a routine for sleep with the API, SetSystemPowerState, but I can't
find the API for wakeup in several hunders seconds after sleep.

Plz, give me a even little tip of how to make it.

Thanks!

--
Engineer
(Developing Windows Mobile PDAs)

Message posted via http://www.pocketpcjunkies.com

Re: Sleep and Resume Test application by Bruce

Bruce
Thu Jun 05 05:45:44 PDT 2008

http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/50f895717e8497c4/5c8f09cdd66fbd14?lnk=st&q=cerunappattime+group%3Amicrosoft.public.windowsce.platbuilder#5c8f09cdd66fbd14

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"KidsReturn via PocketPCJunkies.com" <u25670@uwe> wrote in message
news:85380cd89818d@uwe...
> Hello.
>
> I am trying to make a simple test application that makes a WM device sleep
> and resume continuously.
>
> I made a routine for sleep with the API, SetSystemPowerState, but I can't
> find the API for wakeup in several hunders seconds after sleep.
>
> Plz, give me a even little tip of how to make it.
>
> Thanks!
>
> --
> Engineer
> (Developing Windows Mobile PDAs)
>
> Message posted via http://www.pocketpcjunkies.com
>



Re: Sleep and Resume Test application by Bradley

Bradley
Thu Jun 05 10:40:44 PDT 2008

On Jun 5, 5:20 am, "KidsReturn via PocketPCJunkies.com" <u25670@uwe>
wrote:
> I made a routine for sleep with the API, SetSystemPowerState, but I can't
> find the API for wakeup in several hunders seconds after sleep.

See the Notifications API http://msdn.microsoft.com/en-us/library/aa920984.aspx
You will likely also want to pay attention to
IOCTL_KLIB_GETALARMRESOLUTION which is mentioned in the link.

Regards,
Brad.

Re: Sleep and Resume Test application by KidsReturn

KidsReturn
Sun Jun 08 17:57:42 PDT 2008

Thanks for ur advice!
I found another API to figure it out.
CeSetUserNotificationEx was recommanded to wake-up the device in a book.

Bruce Eitman [eMVP] wrote:
>http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/50f895717e8497c4/5c8f09cdd66fbd14?lnk=st&q=cerunappattime+group%3Amicrosoft.public.windowsce.platbuilder#5c8f09cdd66fbd14
>
>> Hello.
>>
>[quoted text clipped - 7 lines]
>>
>> Thanks!

--
Engineer
(Developing Windows Mobile PDAs)

Message posted via http://www.pocketpcjunkies.com


Re: Sleep and Resume Test application by KidsReturn

KidsReturn
Sun Jun 08 17:58:24 PDT 2008

Thanks a lot!

I used the API and figured it out.


Bradley Remedios wrote:
>On Jun 5, 5:20 am, "KidsReturn via PocketPCJunkies.com" <u25670@uwe>
>wrote:
>> I made a routine for sleep with the API, SetSystemPowerState, but I can't
>> find the API for wakeup in several hunders seconds after sleep.
>
>See the Notifications API http://msdn.microsoft.com/en-us/library/aa920984.aspx
>You will likely also want to pay attention to
>IOCTL_KLIB_GETALARMRESOLUTION which is mentioned in the link.
>
>Regards,
>Brad.

--
Engineer
(Developing Windows Mobile PDAs)

Message posted via http://www.pocketpcjunkies.com