Partager via


CComAutoThreadModule::Init

As of ATL 7.0, CComAutoThreadModule is obsolete: see ATL Module Classes for more details.

HRESULT Init(
   _ATL_OBJMAP_ENTRY* p,
   HINSTANCE h,
   const GUID* plibid = NULL,
   int nThreads = GetDefaultThreads( )
);

Parameters

  • p
    [in] A pointer to an array of object map entries.

  • h
    [in] The HINSTANCE passed to DLLMain or WinMain.

  • plibid
    [in] A pointer to the LIBID of the type library associated with the project.

  • nThreads
    [in] The number of threads to be created. By default, nThreads is the value returned by GetDefaultThreads.

Remarks

Initializes data members and creates the number of threads specified by nThreads.

Requirements

Header: atlbase.h

See Also

Reference

CComAutoThreadModule Class

CComAutoThreadModule::m_nThreads

Other Resources

CComAutoThreadModule Members