ReactOS  0.4.13-dev-257-gfabbd7c
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 547 of file atlbase.h.

Constructor & Destructor Documentation

◆ CAtlComModule()

ATL::CAtlComModule::CAtlComModule ( )
inline

Definition at line 550 of file atlbase.h.

551  {
552  GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)this, &m_hInstTypeLib);
555  if (FAILED(m_csObjMap.Init()))
556  {
557  ATLASSERT(0);
559  return;
560  }
561  cbSize = sizeof(_ATL_COM_MODULE);
562  }
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
_ATL_COM_MODULE70 _ATL_COM_MODULE
Definition: atlbase.h:162
smooth NULL
Definition: ftsmooth.c:416
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapLast
Definition: atlbase.h:159
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapFirst
Definition: atlbase.h:158
HINSTANCE m_hInstTypeLib
Definition: atlbase.h:157
BOOL WINAPI GetModuleHandleExW(IN DWORD dwFlags, IN LPCWSTR lpwModuleName OPTIONAL, OUT HMODULE *phModule)
Definition: loader.c:873
static bool m_bInitFailed
Definition: atlcore.h:193
CComCriticalSection m_csObjMap
Definition: atlbase.h:160

◆ ~CAtlComModule()

ATL::CAtlComModule::~CAtlComModule ( )
inline

Definition at line 564 of file atlbase.h.

565  {
566  Term();
567  }

Member Function Documentation

◆ RegisterServer()

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

Definition at line 569 of file atlbase.h.

570  {
571  return AtlComModuleRegisterServer(this, bRegTypeLib, pCLSID);
572  }
HRESULT WINAPI AtlComModuleRegisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib, const CLSID *clsid)
Definition: atlbase.h:1724

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

◆ Term()

void ATL::CAtlComModule::Term ( )
inline

Definition at line 580 of file atlbase.h.

581  {
582  if (cbSize != 0)
583  {
586  m_csObjMap.Term();
587  cbSize = 0;
588  }
589  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
smooth NULL
Definition: ftsmooth.c:416
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapLast
Definition: atlbase.h:159
_ATL_OBJMAP_ENTRY ** m_ppAutoObjMapFirst
Definition: atlbase.h:158
CComCriticalSection m_csObjMap
Definition: atlbase.h:160

Referenced by ~CAtlComModule().

◆ UnregisterServer()

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

Definition at line 574 of file atlbase.h.

575  {
576  return AtlComModuleUnregisterServer(this, bUnRegTypeLib, pCLSID);
577  }
HRESULT WINAPI AtlComModuleUnregisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib, const CLSID *clsid)
Definition: atlbase.h:1758

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


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