3.2.4.4.3.34 IVolumeClient3::GetMaxAdjustedFreeSpace (Opnum 37)

The GetMaxAdjustedFreeSpace method retrieves the maximum amount of free space on a disk after adjusting for partition boundaries.

 HRESULT GetMaxAdjustedFreeSpace(
   [in] LdmObjectId diskId,
   [out] LONGLONG* maxAdjustedFreeSpace
 );

diskId: Specifies the OID of the disk to query.

maxAdjustedFreeSpace: Pointer to the maximum free space on the disk, adjusted for partition boundaries.

Return Values: The method MUST return 0 or a nonerror HRESULT on success, or an implementation-specific nonzero error code on failure (as specified in [MS-ERREF]; see also section 2.2.1 for HRESULT values predefined by the Disk Management Remote Protocol).

When the server receives an IVolumeClient3::GetMaxAdjustedFreeSpace message, it MUST process that message, as specified in IVolumeClient2::GetMaxAdjustedFreeSpace (section 3.2.4.4.2.1).