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. Physical disk information of a remote system

Physical disk information of a remote system

Scheduled Pinned Locked Moved C / C++ / MFC
helpvisual-studiowindows-adminquestion
2 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.
  • K Offline
    K Offline
    kvrnkiran
    wrote on last edited by
    #1

    Hi, I am trying to fetch the information about remote computer. Initially, I need the information of number of physical disks and their sizes. I am taking help of the following registry key to get the number of physical disks (I am opening remote registry and querying these keys): HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI These keys contains the number of disks on the system. But, I am unable to fetch their sizes. CreateFile is not opening physical disks on remote system (returning INVALID_HANDLE_VALUE). Can anybody help resolving this issue? Kiran.

    M 1 Reply Last reply
    0
    • K kvrnkiran

      Hi, I am trying to fetch the information about remote computer. Initially, I need the information of number of physical disks and their sizes. I am taking help of the following registry key to get the number of physical disks (I am opening remote registry and querying these keys): HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI These keys contains the number of disks on the system. But, I am unable to fetch their sizes. CreateFile is not opening physical disks on remote system (returning INVALID_HANDLE_VALUE). Can anybody help resolving this issue? Kiran.

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      I suspect the answer might lie with WMI (Windows Management Instrumentation). In theory this technology can get you the information you want but I can't say I've had much luck with it myself. I'd be interested in any solution you finally come up with though as I've stalled on a similar problem in the past. Microsoft don't seem to publish an interface for talking to the Logical Disk Manager, even locally. If this has changed perhaps somebody else will be able to post a link.

      Nothing is exactly what it seems but everything with seems can be unpicked.

      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