how to make sound & get the value of battery & memory in C# for PPC ?
-
hi how to make sound & get the value of battery & memory in C# for PPC ? thank's alot for any help
Have you come up with any good ideas?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
-
hi how to make sound & get the value of battery & memory in C# for PPC ? thank's alot for any help
Hi, You can query the current battery details by using some Platform Invoke code to access a native system API called GetSystemPowerStatusEx2. David Kline has a good example of how to do this via C# on his blog entry - "Is my device running on battery or AC?" available at http://blogs.msdn.com/davidklinems/archive/2005/02/10/370591.aspx[^] With respect to the memory status. This would depend upon exactly which figure / memory statistic you want to obtain. Are you wanting to know the total RAM within your device, or the amount currently available to your application for example? Hope this helps, Christopher Fairbairn Windows Mobile Development blog http://www.christec.co.nz/blog/