locked
how to identify a device is embedded or external device? RRS feed

  • Question

  • I want to identify whether a device(could be mass storage, data card, speakers) is external or internal via programmatic-ally. I didn't find any helpful information on the net.

    Need help here.. Thanks in advance.


    Windows CE,Mobile developer.
    Monday, February 21, 2011 11:37 AM

All replies

  • Venkat_G wrote:
    >
    >I want to identify whether a device(could be mass storage, data card,
    >speakers) is external or internal via programmatically. I didn't find
    >any helpful information on the net.
     
    Pavel's suggestion is more or less tongue-in-cheek. There is no way to
    find this information for an arbitrary device. In many cases, the
    operating system simply does not know this. Indeed, the very terms
    "external" and "internal" are not precise.
    --
    Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.
     

    Tim Roberts, DDK MVP
    Wednesday, February 23, 2011 6:55 AM
  • Pavel A wrote:
    >
    >>There is no way to find this information for an arbitrary device. In
    >>many cases, the operating system simply does not know this.
    >
    >But this information still does exist somewhere for any given machine.
    >The user can know it. "No way" is a too strong statement.
     
    I'm not convinced that's true. In a new machine as shipped from the
    factory, you might be able to learn this from the ACPI database. But throw
    a few arbitrary foreign peripherals, and that situation changes.
     
    And, as I said, the definitions of external and internal are not universal.
    Does it only mean inside the case vs outside the case? What about an ESATA
    drive that happens to be inside the case?
    --
    Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.
     

    Tim Roberts, DDK MVP
    Friday, February 25, 2011 5:22 AM