CComAutoThreadModule::CreateInstance
As of ATL 7.0, CComAutoThreadModule is obsolete: see ATL Module Classes for more details.
HRESULT CreateInstance(
void* pfnCreateInstance,
REFIID riid,
void** ppvObj
);
Параметры
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.
Возвращаемое значение
A standard HRESULT value.
Заметки
Selects a thread and then creates an object in the associated apartment.
Требования
Header: atlbase.h