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. General Programming
  3. C / C++ / MFC
  4. HKEY_LOCAL_MACHINE\SYSTEM\DISK

HKEY_LOCAL_MACHINE\SYSTEM\DISK

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
4 Posts 2 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.
  • C Offline
    C Offline
    Cyrus Dang
    wrote on last edited by
    #1

    How to interpret the content of the key "HKEY_LOCAL_MACHINE\SYSTEM\DISK\Information"? I want it to locate all volumes under Windows NT 4.0. If the content of this key was not documented, what is the other way to locate a specific volume under WinNT 4.0? Thanks. Best regards.

    D 1 Reply Last reply
    0
    • C Cyrus Dang

      How to interpret the content of the key "HKEY_LOCAL_MACHINE\SYSTEM\DISK\Information"? I want it to locate all volumes under Windows NT 4.0. If the content of this key was not documented, what is the other way to locate a specific volume under WinNT 4.0? Thanks. Best regards.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Are either of these what you are looking for:

      GetLogicalDriveStrings()
      GetLogicalDrives()
      GetVolumeInformation()
      FindFirstVolume()


      "Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow

      C 1 Reply Last reply
      0
      • D David Crow

        Are either of these what you are looking for:

        GetLogicalDriveStrings()
        GetLogicalDrives()
        GetVolumeInformation()
        FindFirstVolume()


        "Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow

        C Offline
        C Offline
        Cyrus Dang
        wrote on last edited by
        #3

        Thanks for your reply, However, what I need is the location of each volume. For example, what is the starting offset and length of the volumn C: and, of course, which physical disk this volume belongs to. In other words, I want a similar function (works in WinNT 4.0) with IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, which does not work under Windows NT 4.0 I think the approach to key HKEY_LOCAL_MACHINE\SYSTEM\DISK\Information is correct. But the content of this REG_BIN value is still unknown. Best regards.

        D 1 Reply Last reply
        0
        • C Cyrus Dang

          Thanks for your reply, However, what I need is the location of each volume. For example, what is the starting offset and length of the volumn C: and, of course, which physical disk this volume belongs to. In other words, I want a similar function (works in WinNT 4.0) with IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, which does not work under Windows NT 4.0 I think the approach to key HKEY_LOCAL_MACHINE\SYSTEM\DISK\Information is correct. But the content of this REG_BIN value is still unknown. Best regards.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Tuan Dang wrote: I think the approach to key HKEY_LOCAL_MACHINE\SYSTEM\DISK\Information is correct. Except that that key does not always exist. The two machines on my desk do not have that key.


          "Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow

          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