| c++ Programming Glossary: setupdigetdeviceregistrypropertyhow to get vendor id and product id of a plugged usb device on windows http://stackoverflow.com/questions/2935184/how-to-get-vendor-id-and-product-id-of-a-plugged-usb-device-on-windows  i  DWORD DataT LPTSTR buffer NULL DWORD buffersize 0 while SetupDiGetDeviceRegistryProperty hInfo DeviceInfoData SPDRP_DEVICEDESC DataT PBYTE buffer buffersize.. 
 Get drive type with SetupDiGetDeviceRegistryProperty http://stackoverflow.com/questions/2989713/get-drive-type-with-setupdigetdeviceregistryproperty  drive type with SetupDiGetDeviceRegistryProperty  I would like to know whether i can get the drive information.. say To determine whether a drive is a USB type drive call SetupDiGetDeviceRegistryProperty and specify the SPDRP_REMOVAL_POLICY property. i too use SetupDiGetDeviceRegistryProperty.. and specify the SPDRP_REMOVAL_POLICY property. i too use SetupDiGetDeviceRegistryProperty like below while SetupDiGetDeviceRegistryProperty hDevInfo DeviceInfoData.. 
 SetupDiGetDeviceProperty http://stackoverflow.com/questions/3438366/setupdigetdeviceproperty  device instance ID _tprintf TEXT s n szDeviceInstanceID if SetupDiGetDeviceRegistryProperty hDevInfo DeviceInfoData SPDRP_DEVICEDESC    dwPropertyRegDataType..    dwSize _tprintf TEXT Device Description s n szDesc if SetupDiGetDeviceRegistryProperty hDevInfo DeviceInfoData SPDRP_HARDWAREID    dwPropertyRegDataType.. 
 Find and eject a USB device based on its VID/PID http://stackoverflow.com/questions/4065473/find-and-eject-a-usb-device-based-on-its-vid-pid  I can find the device by using SetupDiEnumDeviceInfo and SetupDiGetDeviceRegistryProperty and matching the VID PID numbers in the HARDWAREID string but.. 
 |