Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered Accessing Battery/Power/Running tasks,etc with winrt

  • 2012년 2월 10일 금요일 오후 5:01
     
     

    Can someone point me at the winrt calls that are used to find device specific information that might be used in a performance monitoring app.  That is, tasks running, cpu used, battery level, battery lifetime etc.

    Thanks


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider

모든 응답

  • 2012년 2월 16일 목요일 오후 9:42
    중재자
     
     답변됨

    Hi Peter,

    That isn't the sort of information that is available to Metro style apps. You would need to write that app as a desktop app.

    --Rob

  • 2012년 2월 16일 목요일 오후 9:53
     
     
    Rob, Are you sure? that means that all the apps that dev's like me write for the IPad and Android tablets that monitor power information will only be able to be provided by Microsoft? Somehow, that does not seem like it could be correct.  I'm talking about windows 8 tablets with only winrt, not desktop computers or notebooks that have win32.

    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider

  • 2012년 4월 23일 월요일 오후 10:06
     
     

    Peter

           Were you able find any WinRT APIs that support querying Battery/Power information?

    Thank you

    PB

  • 2012년 4월 23일 월요일 오후 11:30
     
     
    No I was not. I still would like to know.

    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider

  • 2013년 1월 8일 화요일 오후 6:57
     
     

    Now that RT has shipped, and I see zero apps to help me get a status of my battery life, I'm thinking about writing a Modern UI tile to display this.  But I am guessing the answer is still NO access to GetSystemPowerStatus API?