How to differentiate SD card and USB drive from an application if both are connected to a USB port RRS feed

  • Question

  • I need to access SD card from my application if it is inserted into a USB card reader and also i need to block all other mass storage USB devices.

    I have tried using IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL to identify a SD card but that works only if SD card is inserted into inbuilt SD card slot not on USB card reader.

    I also tried querying the media using WIN32_DiskDrive Class but it returns media type as removable media for both SD card and USB drive.

    Is there any way to identify the SD card properties if it is inserted into a USB card reader.?

    Friday, July 28, 2017 9:51 AM