2

I found the DiskVolumeInfo property -- I'd like to use it to get some disk information in a clustered setup.

http://msdn.microsoft.com/en-us/library/windows/desktop/bb309235(v=vs.85).aspx

The problem is I have no idea what technology is required to get this data. This doesn't resemble the standard C/C++/C#/VB format of function/method reference.

Question: How do I get the DiskVolumeInfo data?

Ideally I could write the binary output directly to a file, say data.bin.

Any ideas would be helpful, thanks.

Ken White
  • 123,280
  • 14
  • 225
  • 444
jglouie
  • 12,523
  • 6
  • 48
  • 65

2 Answers2

1

The process for getting object properties is described here.

Looks like you need to call the ClusterResourceControl function with a handle to the physical disk resource and the CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES control code. You can then use ResUtilFindBinaryProperty to extract the DiskVolumeInfo property from the property list returned.

Harry Johnston
  • 35,639
  • 6
  • 68
  • 158
0

For anyone still interested:

As given here CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX is a better way to do this.

Anurag Pande
  • 123
  • 8