Click here to Skip to main content
15,920,836 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:


My device path looks like below:


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
Updated 7-Jun-10 21:28pm

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