ReactOS  0.4.12-dev-102-g4b7f1e0
ATL::CAtlComModule Class Reference

#include <atlbase.h>

Inheritance diagram for ATL::CAtlComModule:
Collaboration diagram for ATL::CAtlComModule:

Public Member Functions

 CAtlComModule ()
 
 ~CAtlComModule ()
 
HRESULT RegisterServer (BOOL bRegTypeLib=FALSE, const CLSID *pCLSID=NULL)
 
HRESULT UnregisterServer (BOOL bUnRegTypeLib, const CLSID *pCLSID=NULL)
 
void Term ()
 

Additional Inherited Members

- Public Attributes inherited from ATL::_ATL_COM_MODULE70
UINT cbSize
 
HINSTANCE m_hInstTypeLib
 
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapFirst
 
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapLast
 
CComCriticalSection m_csObjMap
 

Detailed Description

Definition at line 559 of file atlbase.h.

Constructor & Destructor Documentation

◆ CAtlComModule()

ATL::CAtlComModule::CAtlComModule ( )
inline

Definition at line 562 of file atlbase.h.

563  {
564  GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)this, &m_hInstTypeLib);
567  if (FAILED(m_csObjMap.Init()))
568  {
569  ATLASSERT(0);
571  return;
572  }
573  cbSize = sizeof(_ATL_COM_MODULE);
574  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
_ATL_COM_MODULE70 _ATL_COM_MODULE
Definition: atlbase.h:174
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
smooth NULL
Definition: ftsmooth.c:416
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapLast
Definition: atlbase.h:171
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapFirst
Definition: atlbase.h:170
HINSTANCE m_hInstTypeLib
Definition: atlbase.h:169
BOOL WINAPI GetModuleHandleExW(IN DWORD dwFlags, IN LPCWSTR lpwModuleName OPTIONAL, OUT HMODULE *phModule)
Definition: loader.c:873
static bool m_bInitFailed
Definition: atlcore.h:189
CComCriticalSection m_csObjMap
Definition: atlbase.h:172

◆ ~CAtlComModule()

ATL::CAtlComModule::~CAtlComModule ( )
inline

Definition at line 576 of file atlbase.h.

577  {
578  Term();
579  }

Member Function Documentation

◆ RegisterServer()

HRESULT ATL::CAtlComModule::RegisterServer ( BOOL  bRegTypeLib = FALSE,
const CLSID pCLSID = NULL 
)
inline

Definition at line 581 of file atlbase.h.

Referenced by ATL::CAtlModuleT< CComModule >::RegisterServer().

582  {
583  return AtlComModuleRegisterServer(this, bRegTypeLib, pCLSID);
584  }
HRESULT WINAPI AtlComModuleRegisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib, const CLSID *clsid)
Definition: atlbase.h:1732

◆ Term()

void ATL::CAtlComModule::Term ( )
inline

Definition at line 592 of file atlbase.h.

593  {
594  if (cbSize != 0)
595  {
598  m_csObjMap.Term();
599  cbSize = 0;
600  }
601  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
smooth NULL
Definition: ftsmooth.c:416
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapLast
Definition: atlbase.h:171
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapFirst
Definition: atlbase.h:170
CComCriticalSection m_csObjMap
Definition: atlbase.h:172

◆ UnregisterServer()

HRESULT ATL::CAtlComModule::UnregisterServer ( BOOL  bUnRegTypeLib,
const CLSID pCLSID = NULL 
)
inline

Definition at line 586 of file atlbase.h.

Referenced by ATL::CAtlModuleT< CComModule >::UnregisterServer().

587  {
588  return AtlComModuleUnregisterServer(this, bUnRegTypeLib, pCLSID);
589  }
HRESULT WINAPI AtlComModuleUnregisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib, const CLSID *clsid)
Definition: atlbase.h:1766

The documentation for this class was generated from the following file: