Windows Media Format SDK banner art
PreviousNext

IWMDMStorageGlobals::GetTotalFree

The GetTotalFree method retrieves the total amount of free space on the storage medium, in bytes.

Syntax

HRESULT GetTotalFree(
  DWORD*  pdwFreeLow,
  DWORD*  pdwFreeHigh
);

Parameters

  pdwFreeLow

[out]  Pointer to a double word containing the low-order part of the free space value.

  pdwFreeHigh

[out]  Pointer to a double word containing the high-order part of the free space value.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
E_INVALIDARG A parameter is an invalid or NULL pointer.
E_FAIL An unspecified error occurred.

Remarks

To determine the amount of storage space in use by the medium for file management, subtract the number of bad bytes identified with GetTotalBad from the number of free bytes identified with GetTotalFree.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.