Export (0) Print
Expand All

IMFCaptureEngineClassFactory::CreateInstance method

Creates an instance of the capture engine.

Syntax


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

Parameters

clsid [in]

The CLSID of the object to create. Currently, this parameter must equal CLSID_MFCaptureEngine.

riid [in]

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

ppvObject [out]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

See also

IMFCaptureEngineClassFactory

 

 

Community Additions

ADD
Show:
© 2014 Microsoft