3

Configured Storage pool (with Physical disk 1 and Physical 2) in the Windows server and created Virtual disk out of storage pool. After creation of virtual disk, able to see the Physical disk 3(Virtual disk) in VDS service.

Power shell command: get-physicaldisk providing the all the physical disk details including physical disk 1 and physical disk 2.

Is there any Windows API equivalent to get-physicaldisk command exists? If yes, please suggest me the API.

Machavity
  • 30,841
  • 27
  • 92
  • 100

1 Answers1

2

Maybe you can use Microsoft WMI - Windows Management Instrumentation to get info through the MSFT_PhysicalDisk class.

Here https://stackoverflow.com/a/33359142/15485 you can find a C sample to start from.

Alessandro Jacopson
  • 18,047
  • 15
  • 98
  • 153