Click to See Complete Forum and Search --> : finding drive info


mishka
May 16th, 1999, 05:40 AM
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

May 16th, 1999, 09:33 AM
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.

May 16th, 1999, 04:14 PM
thanx!