Is it possible to know HW interface information thru WinRT API? RRS feed

  • Question

  • Hi all,

    I have 2 questions about the HW interface.

    1. Is it possible to know what kind of physical interface (ex. USB, SD, HDMI, etc) existing in this machine thru WinRT API?

    2. If any device is plugged in, is it possible to know which interface it is plugged?

    Ex. When an external storage disk is plugged, is it possible to know it is a USB storage or a SD-card?

    I can know a device is plugged/removed thru watcher. However, I cannot find enough information from watcher to identify which interface the device is plugged.

    Thanks in advance.

    • Edited by nomoney Wednesday, August 1, 2012 10:04 AM
    Wednesday, August 1, 2012 10:03 AM


  • Look at DeviceInformation.FindAllAsync and PnpObject.FindAllAsync.  You can specify additional properties to retrieve such as type of interface.  Properties can be specified either in the form "{guid} id" or one of the canonical names from propkey.h (in the SDK).
    • Marked as answer by nomoney Monday, August 6, 2012 2:14 AM
    Wednesday, August 1, 2012 4:04 PM