-
finding drive info
Hello,
I would like my C++ program to find out how many
drives (Floppy, HD, CD-ROM, etc.) there are in a windows system and what labels (A:, C:, etc.) they have... does anybody know what code would do that?
I'd appreciate any help. Thanx in advance,
Mishka
-
Re: finding drive info
The GetLogicalDrives function returns a bitmask representing the currently available disk drives.
The GetLogicalDriveStrings function fills a buffer with strings that specify valid drives in the system.
The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
The above three functions are all Win32 functions.
-
Re: finding drive info