it's explained at post #6 but using declare function explained at #8. It's ok for me.
Printable View
it's explained at post #6 but using declare function explained at #8. It's ok for me.
Even though this has been resolved, there is another way, using .Net classes.
Have a look at the SystemState class.
http://msdn.microsoft.com/en-us/libr...stemstate.aspx
It is a goldmine of information.
(Don't forget to first add the assembly "Microsoft.WindowsMobile.Status" (in microsoft.windowsmobile.status.dll))