ReactOS  0.4.12-dev-57-g7050ac4
ATL::CAtlDllModuleT< T > Class Template Reference

#include <atlbase.h>

Inheritance diagram for ATL::CAtlDllModuleT< T >:
Collaboration diagram for ATL::CAtlDllModuleT< T >:

Public Member Functions

 CAtlDllModuleT ()
 
HRESULT DllCanUnloadNow ()
 
HRESULT DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
HRESULT DllRegisterServer (BOOL bRegTypeLib=TRUE)
 
HRESULT DllUnregisterServer (BOOL bUnRegTypeLib=TRUE)
 
HRESULT GetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
- Public Member Functions inherited from ATL::CAtlModuleT< T >
HRESULT RegisterServer (BOOL bRegTypeLib=FALSE, const CLSID *pCLSID=NULL)
 
HRESULT UnregisterServer (BOOL bUnRegTypeLib, const CLSID *pCLSID=NULL)
 
virtual HRESULT AddCommonRGSReplacements (IRegistrarBase *pRegistrar)
 
- Public Member Functions inherited from ATL::CAtlModule
 CAtlModule ()
 
virtual LONG GetLockCount ()
 
virtual LONG Lock ()
 
virtual LONG Unlock ()
 
HRESULT WINAPI UpdateRegistryFromResource (LPCTSTR lpszRes, BOOL bRegister, struct _ATL_REGMAP_ENTRY *pMapEntries=NULL)
 
HRESULT WINAPI UpdateRegistryFromResource (UINT nResID, BOOL bRegister, struct _ATL_REGMAP_ENTRY *pMapEntries=NULL)
 

Additional Inherited Members

- Static Public Member Functions inherited from ATL::CAtlModuleT< T >
static LPCOLESTR GetAppId ()
 
- Public Attributes inherited from ATL::_ATL_MODULE70
UINT cbSize
 
LONG m_nLockCnt
 
_ATL_TERMFUNC_ELEMm_pTermFuncs
 
CComCriticalSection m_csStaticDataInitAndTypeInfo
 
- Static Public Attributes inherited from ATL::CAtlModule
static GUID m_libid
 

Detailed Description

template<class T>
class ATL::CAtlDllModuleT< T >

Definition at line 617 of file atlbase.h.

Constructor & Destructor Documentation

◆ CAtlDllModuleT()

template<class T >
ATL::CAtlDllModuleT< T >::CAtlDllModuleT ( )
inline

Definition at line 620 of file atlbase.h.

621  {
622  }

Member Function Documentation

◆ DllCanUnloadNow()

template<class T >
HRESULT ATL::CAtlDllModuleT< T >::DllCanUnloadNow ( )
inline

Definition at line 624 of file atlbase.h.

625  {
626  T *pThis;
627 
628  pThis = static_cast<T *>(this);
629  if (pThis->GetLockCount() == 0)
630  return S_OK;
631  return S_FALSE;
632  }
#define T
Definition: mbstring.h:31
#define S_FALSE
Definition: winerror.h:2357
#define S_OK
Definition: intsafe.h:59

◆ DllGetClassObject()

template<class T >
HRESULT ATL::CAtlDllModuleT< T >::DllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppv 
)
inline

Definition at line 634 of file atlbase.h.

635  {
636  T *pThis;
637 
638  pThis = static_cast<T *>(this);
639  return pThis->GetClassObject(rclsid, riid, ppv);
640  }
REFIID riid
Definition: precomp.h:44
#define T
Definition: mbstring.h:31

◆ DllRegisterServer()

template<class T >
HRESULT ATL::CAtlDllModuleT< T >::DllRegisterServer ( BOOL  bRegTypeLib = TRUE)
inline

Definition at line 642 of file atlbase.h.

643  {
644  T *pThis;
645  HRESULT hResult;
646 
647  pThis = static_cast<T *>(this);
648  hResult = pThis->RegisterServer(bRegTypeLib);
649  return hResult;
650  }
#define T
Definition: mbstring.h:31
LONG HRESULT
Definition: typedefs.h:77

◆ DllUnregisterServer()

template<class T >
HRESULT ATL::CAtlDllModuleT< T >::DllUnregisterServer ( BOOL  bUnRegTypeLib = TRUE)
inline

Definition at line 652 of file atlbase.h.

653  {
654  T *pThis;
655  HRESULT hResult;
656 
657  pThis = static_cast<T *>(this);
658  hResult = pThis->UnregisterServer(bUnRegTypeLib);
659  return hResult;
660  }
#define T
Definition: mbstring.h:31
LONG HRESULT
Definition: typedefs.h:77

◆ GetClassObject()

template<class T >
HRESULT ATL::CAtlDllModuleT< T >::GetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppv 
)
inline

Definition at line 662 of file atlbase.h.

663  {
664  return AtlComModuleGetClassObject(&_AtlComModule, rclsid, riid, ppv);
665  }
HRESULT WINAPI AtlComModuleGetClassObject(_ATL_COM_MODULE *pComModule, REFCLSID rclsid, REFIID riid, LPVOID *ppv)
REFIID riid
Definition: precomp.h:44
CAtlComModule _AtlComModule
Definition: atlbase.cpp:28

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