I want to get the literal name of a pendrive or external hard drive connected via USB. Is it possible to get the drive letter. I am using VC ++
GetLogicalDriveStrings lists all existing drive letters and GetDriveType can determine if the drive is removable. GetDriveTypehelp suggests using SetupDiGetDeviceRegistryPropertyto make sure that there is only one USB drive.
GetDriveType
SetupDiGetDeviceRegistryProperty
Source: https://habr.com/ru/post/1742073/More articles:Saving specific row or column in HTML table fixed - htmlWPF: IEditableCollectionView and CanAddNew and empty collections - wpfChanging the keyboard layout in the focus of the application - automationjava.net.UnknownHostException в файле://метод - javaThe maximum number of lines per file? - coding-stylewhat to "confidently kill" when it comes to the NFS mount option? - killPDF search and shared library - searchOpenGL ES displaying a HUD display has no color on top of textured 3D objects - iphoneHow to make unwashed image in WPF 3d - .netmatching multiple lines in python - pythonAll Articles