Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. C / C++ / MFC
  3. Find System's Drives And Drives Type

Find System's Drives And Drives Type

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Ghasrfakhri
    wrote on last edited by
    #1

    Hi. How can I Find System's Drives And Drives Type with Windows API(s) Iman Ghasr-e-fakhri

    P O 2 Replies Last reply
    0
    • G Ghasrfakhri

      Hi. How can I Find System's Drives And Drives Type with Windows API(s) Iman Ghasr-e-fakhri

      P Offline
      P Offline
      Paolo Messina
      wrote on last edited by
      #2

      Hi, Use GetDriveType(). Don't know how to enumerate, though. Paolo ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)

      1 Reply Last reply
      0
      • G Ghasrfakhri

        Hi. How can I Find System's Drives And Drives Type with Windows API(s) Iman Ghasr-e-fakhri

        O Offline
        O Offline
        ORi x
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • O ORi x

          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

          M Offline
          M Offline
          Mike Nordell
          wrote on last edited by
          #4

          > 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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups