Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. how to make sound & get the value of battery & memory in C# for PPC ?

how to make sound & get the value of battery & memory in C# for PPC ?

Scheduled Pinned Locked Moved Mobile
csharpperformancehelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    E_Gold
    wrote on last edited by
    #1

    hi how to make sound & get the value of battery & memory in C# for PPC ? thank's alot for any help

    P C 2 Replies Last reply
    0
    • E E_Gold

      hi how to make sound & get the value of battery & memory in C# for PPC ? thank's alot for any help

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • E E_Gold

        hi how to make sound & get the value of battery & memory in C# for PPC ? thank's alot for any help

        C Offline
        C Offline
        Christopher Fairbairn
        wrote on last edited by
        #3

        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/

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups