Windows Media Format SDK banner art
PreviousNext

IMDSPDevice::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**  pppwszMimeType,
  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.

  pppwszMimeType

[out]  Pointer to an array that describes 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 an invalid or NULL pointer.
E_FAIL An unspecified error occurred.

Remarks

Memory for the ppFormat and pppwszMimeType 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.