Introduction - If you have any usage issues, please Google them yourself
Enumerating and locating specific attach storage devices. (CppStorageEnum)
Introduction
The code sample demonstrates the use of DeviceIoControl and SetupDiGetClassDevs in the everyday operations of enumerating and locating specific attach storage devices.