Find System's Drives And Drives Type
-
Hi. How can I Find System's Drives And Drives Type with Windows API(s) Iman Ghasr-e-fakhri
-
Hi. How can I Find System's Drives And Drives Type with Windows API(s) Iman Ghasr-e-fakhri
Hi, Use GetDriveType(). Don't know how to enumerate, though. Paolo ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)
-
Hi. How can I Find System's Drives And Drives Type with Windows API(s) Iman Ghasr-e-fakhri
-
To find system's drives try GetLogicalDrives, it returns a bitmask with all the drives available. Use GetDriveType or GetVolumeInformation for extended information about the selected drive Hope it helps! ORi
> To find system's drives try GetLogicalDrives, > it returns a bitmask with all the drives available.
For Windows < NT5 (aka W2k) it was true. Not so anymore I'm afraid.
For >= W2k you'll have to iterate volumes by using FindFirstVolume/FindNextVolume.
If you however are only interested in the drive-letter assigned volumes, this solution works.