views:

40

answers:

1

Hi Geeks,

I need to create a widget which shows battery status(in percentage) inside my qt application. Can anybody suggest me how to get the winXP api to know the battery status. Then as the api will return the percentage I will display on my widget....

A: 

I think this is the function you want.

http://msdn.microsoft.com/en-us/library/aa372693%28v=VS.85%29.aspx

CoreyD