Windows Media Format SDK banner art
PreviousNext

IWMDMDevice::GetFormatSupport

The GetFormatSupport method retrieves all the formats supported by the device, including codecs, file formats, and DRM schemes.

Syntax

HRESULT GetFormatSupport(
  _WAVEFORMATEX**  ppFormat,
  UINT*  pnFormatCount,
  LPWSTR**  ppwszMimeType,
  UINT*  pnMimeTypeCount
);

Parameters

  ppFormat

[out]  Pointer to an array of _WAVEFORMATEX structures containing information about codecs and bit rates supported by the device.

  pnFormatCount

[out]  Pointer to the number of elements in the ppFormat array.

  ppwszMimeType

[out]  Pointer to an array describing file formats and DRM schemes supported by the device.

  pnMimeTypeCount

[out]  Pointer to the number of elements in the ppwszMimeType array.

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 invalid or a NULL pointer.
E_FAIL An unspecified error occurred.

Remarks

Memory for the ppFormat and ppwszMimeType parameters is allocated by this method and must be freed by the caller using CoTaskMemFree, a standard Win32 function.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.