CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    6

    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


  2. #2
    Guest

    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.


  3. #3
    Guest

    Re: finding drive info

    thanx!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured