문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

For anyone still interested:

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top