Hello
I have run into problems with the Battery Icon update & Battery poll interval.
I want the system to stop the automatic polling of the battery and instead
force a manually poll with the SetEvent() function.
The manual polling via SetEvent() is now working OK, but I can't get the
system to stop polling automatically even if the registrysettings:
[HKEY_LOCAL_MACHINE\Software\Microsoft\ssupdate]
"BatteryEarly"=dword:0
"BatteryLate"=dword:0
is included as proposed in the Windows Help documentantion.
Another problem is that even if the 'forced polling' updates the
SYSTEM_POWER_STATUS_EX2 structure as supposed to, the battery icon on the
screen is not updated. (Not until the automatic battery polling is performed).
Does anyone have knowledge about this ?
/Rune L.
02-04-2007 01:00 AM
Clinton Fitch, MVP-Mobile Devices
Re: Shell updates battery icon slowly
Herry,
Have you posted this into the microsoft.public.pocketpc.developer
group? You will likely get an answer there a bit quicker as that
group focuses - as the name implies - on development. :-)
Cheers,
Clinton Fitch, MVP-Mobile Devices
Clinton Fitch (Dot) Com!
http://www.clintonfitch.com
On Sat, 3 Feb 2007 23:35:18 +0800, "Herry" <herry.chiu******.com>
wrote:
>Hi all,
>
>I refer the WM document to turn off the battery polling.
>(topic: Polling the Battery on a Windows Mobile-based Device)
>
>Regarding the document, I add these settings in the registry
>
>-----------------------------------------------------------------------------
>[HKEY_LOCAL_MACHINE\Software\Microsoft\ssupdate]
> "BatteryEarly"=dword:0
> "BatteryLate"=dword:0
>------------------------------------------------------------------------------
>
>Then I use the SetEvent() function to notify battery status change.
>-------------------------------------------------------------------------------
>hevent = CreateEvent(NULL, FALSE, FALSE, TEXT("SSUpdatePower"));
>SetEvent(hevent);
>-------------------------------------------------------------------------------
>It seems the function doesn't work and the battery icon is still updated
>slowly.
>
>Does anyone know what problem it is ?
>
>Herry
>