Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Windows Portable Device experiment has an issue I don't understand. I query WPD_DEVICE_POWER_LEVEL and WPD_DEVICE_DATETIME. But the values aren't updated, even between program restarts. Once after device (re)connection the values are read form the device, all other times Windows seems to just deliver cached values. Not really usefull for monitoring the battery level... Any idea what could be wrong?
Posted
Comments
Rage 28-May-14 11:23am    
Can you somehow force a refresh ? I just went through the API but could not spot anything like it on the fly.
Member 2304430 28-May-14 12:08pm    
That's my problem. And what could be a better refresh than a program restart? But the value "survives" this.

Too bad I can't build the "Portable Devices COM API Sample" because I just have VS 2013 Express.
KarstenK 28-May-14 14:06pm    
sounds like Windows is NOT getting new values => the device isnt working!!!
Member 2304430 3-Jun-14 17:25pm    
could be => u have working device???
KarstenK 4-Jun-14 1:30am    
Not at all. But I know your error case is "most" that the device isnt working :-O

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900