Condividi tramite


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  
);

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.

Return Value

A standard HRESULT value.

Remarks

Selects a thread and then creates an object in the associated apartment.

Requirements

Header: atlbase.h

See Also

Reference

CComAutoThreadModule Class