Microsoft DirectX 9.0

ICodecAPI::GetParameterValues

The GetParameterValues method returns the list of supported values for a given parameter. This method applies to parameters that support a list of specific values, as opposed to a stepped range of values.

Syntax

HRESULT GetParameterValues(
  const GUID*  Api,
  VARIANT**  Values
  ULONG*  ValuesCount,

);

Parameters

Api

[in]  Pointer to a GUID that specifies the parameter.

Values

[out]  Address of a variable that receives a pointer to an array of VARIANT types. The array contains the list of values the encoder supports for this parameter. The caller must free the array by calling the CoTaskMemFree function.

ValuesCount

[out]  Pointer to a variable that receives the number of elements in the array.

Return Values

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

See Also