HRESULT CreateInstance( void* pfnCreateInstance, REFIID riid, void** ppvObj );
Return Value
A standard HRESULT value.
Parameters
pfnCreateInstance
[in] A pointer to a creator function.
riid
[in] The IID of the requested interface.
ppvObj
[out] A pointer to the interface pointer identified by riid. If the object does not support this interface, ppvObj is set to NULL.
Remarks
Selects a thread and then creates an object in the associated apartment. Called by CComClassFactoryAutoThread::CreateInstance.