Windows Media Format SDK banner art
PreviousNext

IWMDMStorageGlobals::GetTotalBad

The GetTotalBad method retrieves the total amount of unusable space on the storage medium, in bytes.

Syntax

HRESULT GetTotalBad(
  DWORD*  pdwBadLow,
  DWORD*  pdwBadHigh
);

Parameters

  pdwBadLow

[out]  Pointer to a double word containing the low-order bytes identifying the amount of unusable space.

  pdwBadHigh

[out]  Pointer to a double word containing the high-order bytes identifying the amount of unusable space.

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.