3.4.5.2.23.1 IVdsDisk3::GetProperties2 (Opnum 3)

The GetProperties2 method retrieves the properties of the disk that the object exposing this interface and method represents.

 HRESULT GetProperties2(
   [out] VDS_DISK_PROP2* pDiskProperties
 );

pDiskProperties: A pointer to a VDS_DISK_PROP2 (section 2.2.2.10.2.1) structure that, if the operation is successfully completed, receives the properties of the disk.

Return Values: The method MUST return zero or a non-error HRESULT (as specified in [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service Remote Protocol, see section 2.2.3.

When the server receives this message, it MUST validate the following parameter:

  • Verify that pDiskProperties is not NULL.

The server MUST populate the VDS_DISK_PROP2 structure that pDiskProperties references with the properties of the disk and return an HRESULT that indicates failure or success.