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 d开发者_StackOverflowisplay on my widget....
I think this is the function you want.
http://msdn.microsoft.com/en-us/library/aa372693%28v=VS.85%29.aspx
精彩评论