How to identify SD card reader from removable devices in c++ windows?

Viewed 162

I want to differentiate between pen-drives and an SD card reader Since both are in the same category as Removable Devices.

I have used UINT GetDriveTypeA(lpRootPathName) to know the device type and from this, I found the category of devices.

when the return value of GetDriveTypeA function is 2 then the corresponding device is REMOVABLE.

But next how to differentiate between normal pen-drives and SD card reader since both fall in the same category.

Is there any way to achieve this?

I will be very thankful to you.

1 Answers
Related