IMFCaptureEngineClassFactory::CreateInstance method (mfcaptureengine.h)

Creates an instance of the capture engine.

Syntax

HRESULT CreateInstance(
  [in]  REFCLSID clsid,
  [in]  REFIID   riid,
  [out] LPVOID   *ppvObject
);

Parameters

[in] clsid

The CLSID of the object to create.

Currently, this parameter must equal CLSID_MFCaptureEngine.

[in] riid

The IID of the requested interface. The capture engine supports the IMFCaptureEngine interface.

[out] ppvObject

Receives a pointer to the requested interface. The caller must release the interface.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Before calling this method, call the MFStartup function.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfcaptureengine.h

See also

IMFCaptureEngineClassFactory