Battery power Ramaining
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi How Can find the total battery remaining time ( or % ) in notebook ? is there any dll for this work ? Regards' Amir Jalaly
-
Hi How Can find the total battery remaining time ( or % ) in notebook ? is there any dll for this work ? Regards' Amir Jalaly
Amir Jalaly wrote: How Can find the total battery remaining time (or %) in notebook? Is there any dll for this work? This kind of function can be found in the Power Management[^] part of the Win32 API. I your case you'll have to PInvoke GetSystemPowerStatus()[^] (there is even an example on how to use it in C# on MSDN: Using Win32 and Other Libraries[^]). Best regards Dennis