Microsoft DirectX 9.0


This topic applies to Windows XP only.

The get_FeaturesActive method retrieves the features that are currently active.


HRESULT get_FeaturesActive(
  IMSVidFeatures**  ppVal



[out]  Address of a variable that receives an IMSVidFeatures interface pointer.

Return Values

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


If no features are active, the method might return NULL in the pVal parameter. Otherwise, it returns a collection of feature objects. Use the returned IMSVidFeatures pointer to enumerate the collection.

The returned IMSVidFeatures interface has an outstanding reference count. The caller must release the interface.

Example Code

CComPtr<IMSVidFeatures> pFeatures;
hr = m_pVideoControl->get_FeaturesActive(&pFeatures);
if (SUCCEEDED(hr) && pFeatures)
    long c;
    /* Enumerate the features */

See Also