c++ Programming Glossary: hvol
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 _T . devicepath 4 driveletter DWORD dwRet 0 HANDLE hVol CreateFile devicepath GENERIC_READ FILE_SHARE_WRITE NULL OPEN_EXISTING.. GENERIC_READ FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hVol INVALID_HANDLE_VALUE return if DeviceIoControl hVol FSCTL_LOCK_VOLUME.. if hVol INVALID_HANDLE_VALUE return if DeviceIoControl hVol FSCTL_LOCK_VOLUME 0 0 0 0 dwRet 0 return if DeviceIoControl..
List Of Physical Storage Devices win32 C++ http://stackoverflow.com/questions/7584627/list-of-physical-storage-devices-win32-c ' volName len 1 0 len printf OpenVol s n volName HANDLE hVol CreateFile volName 0 FILE_SHARE_READ FILE_SHARE_WRITE NULL OPEN_EXISTING.. FILE_SHARE_WRITE NULL OPEN_EXISTING 0 NULL if hVol INVALID_HANDLE_VALUE continue STORAGE_DEVICE_NUMBER sdn 0 if.. continue STORAGE_DEVICE_NUMBER sdn 0 if DeviceIoControl hVol IOCTL_STORAGE_GET_DEVICE_NUMBER NULL 0 sdn sizeof sdn bytes..
|