c# - Get value of battery level OpenNetCF 2.0 -


i'm working on windows mobile 6.0 project using .net cf , opennet cf. i'm looking value of battery battery life bar. please?

the 2.0 version of sdf old , don't know if contained classes specific power monitoring.

if old 1.4 code base, there control called batterylife can show power level. source control (which simple) contains of p/invokes info.

the newer 2.3 code base has powerstatus class gives information want.

you choose directly p/invoke yourself

[dllimport("codedll", setlasterror = true)] internal static extern bool getsystempowerstatusex2(     powerstatus pstatus, int dwlen, bool fupdate); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -