Welcome to Vista Banter. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
|
Hardware and Windows Vista Hardware issues in relation to Windows Vista. (microsoft.public.windows.vista.hardware_devices) |
|
LinkBack | Thread Tools | Display Modes |
|
|||
How could I get a USB Flash disk's drive letter?
In XP, I used these functions to get a usb device volume to compare, but it
cannot work in Vista SetupDiGetClassDev == get GUID_DEVINTERFACE_VOLUME device SetupDiEnumDeviceInterface == get all volume device CM_Get_Parent twice == get device id for USB GetVolumeNameForVolumeMountPoint == compare Might anybody help me? Thx, |
|
|||
How could I get a USB Flash disk's drive letter?
ChuYuan wrote:
In XP, I used these functions to get a usb device volume to compare, but it cannot work in Vista SetupDiGetClassDev == get GUID_DEVINTERFACE_VOLUME device SetupDiEnumDeviceInterface == get all volume device CM_Get_Parent twice == get device id for USB GetVolumeNameForVolumeMountPoint == compare Might anybody help me? Yes, this has changed in Vista. DRIVE_REMOVABLE drives are now handled as DRIVE_FIXED drives are under XP. Have a look at my sample project, it explains it: http://www.codeproject.com/system/Re...veByLetter.asp Uwe |