Re: Detect when suspended
- From: "Tom Gensel \(eMVP\)" <nospam@xxxxxxxxxx>
- Date: 7 Nov 2005 19:16:37 -0600
There is a sample application in the Windows Mobile 5.0 SDK called PMSAMPLE
(directory \Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Powermanager)
that shows how to use CreateMsgQueue and RequestPowerNotifications to do
what you want to do. The app isn't MFC, just plain ole WIN32, but I think
the translation to MFC should be fairly trivial, mostly concerned with
creating the power notification thread.
The message queue used for power notifications is a CE point-to-point
message queue, which is a very efficient interprocess communication
mechanism unrelated to the windows message queues of GWES.
As for whether or not you will receive these notifications in the emulator
or not, I have not tested it myself, but I would strongly suspect that you
would. The mechanism is part of the core functionality of the CE power
manager, and it should be implemented fully in the emulator.
Tom Gensel (eMVP)
.
- References:
- Re: Detect when suspended
- From: Tom Gensel \(eMVP\)
- Re: Detect when suspended
- Prev by Date: Re: Detect when suspended
- Next by Date: Re: Printing from the Windows CE 5.0
- Previous by thread: Re: Detect when suspended
- Next by thread: Re: Detect when suspended
- Index(es):
Relevant Pages
|