开发者

How to get the drive letter of pendrive

开发者 https://www.devze.com 2022-12-27 10:05 出处:网络
I want to get the drive letter of pendrive or e开发者_开发问答xternal harddisk connected through USB.

I want to get the drive letter of pendrive or e开发者_开发问答xternal harddisk connected through USB. Is it possible to get the Drive letter. I am using VC++


GetLogicalDriveStrings lists all existing drive letters and GetDriveType can determine whether the drive is removable. GetDriveType help suggests using SetupDiGetDeviceRegistryProperty to make sure the drive is USB one.

0

精彩评论

暂无评论...
验证码 换一张
取 消