Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

I would like to know whether i can get the drive information using the:

SP_DEVICE_INTERFACE_DETAIL_DATA's DevicePath


My device path looks like below:

"\?\usb#vid_04f2&pid_0111#5&39fe81e&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}"


Also please tell me in the winapi they say "To determine whether a drive is a USB-type drive, call SetupDiGetDeviceRegistryProperty and specify the SPDRP_REMOVAL_POLICY property."

I too use SetupDiGetDeviceRegistryProperty like below:

while ( !SetupDiGetDeviceRegistryProperty( hDevInfo,&DeviceInfoData, SPDRP_REMOVAL_POLICY,&DataT,( PBYTE )buffer,buffersize,&buffersize ))


But I don't know how can I get the drive type using the above.

there are lots of c++ gurus here.

please help me to solve my problem.

i have been searching for long days

if any clarification in my question i am ready to explain

so please do me favour
Posted
Updated 7-Jun-10 21:28pm
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900