Microsoft DirectX 9.0


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


HRESULT GetParameterRange(
  const GUID*  Api,
  VARIANT*  ValueMin,
  VARIANT*  ValueMax,
  VARIANT*  SteppingDelta



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


[out]  Pointer to a VARIANT type that receives the minimum value of the parameter.


[out]  Pointer to a VARIANT type that receives the maximum value of the parameter.


[out]  Pointer to a VARIANT type that receives the stepping delta, which defines the valid increments from ValueMin to ValueMax.

Return Values

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


The valid range for the parameter is [ValueMin ... ValueMax], with increments of SteppingDelta. If a parameter supports a stepped range of values, it must use one of the following variant types:

By definition, the parameter will return a specific type.

Any stepping value is valid. If the range has no stepping delta (that is, you can increment by any value), the encoder should return an empty value (VT_EMPTY) for SteppingDelta.

See Also