Can I distinguish removable drive (eg. USB flash drive) from fixed drive containing removable medium (eg. SD card reader or DVD-ROM)

Proposed Can I distinguish removable drive (eg. USB flash drive) from fixed drive containing removable medium (eg. SD card reader or DVD-ROM)

  • Sunday, May 06, 2012 9:08 AM
     
     

    Hello,

    Context:

    • Using Visual C/C++
    • Targeting Windows Vista and later (but if a solution is available for WinXP too, it would be welcome)
    • What is available to perform an operation: admin rights, regular application (exe), drivers of various types (including volume filter and device filter).


    Problem:

    Is there a way to distinguish between the following classes of storage devices?

    I) A non-removable device that can contain a removable medium (such as DVD-ROM or SD card reader).

    II) A removable drive that cannot contain any removable medium (such as USB flash drive).

    Thank you very much.



All Replies