ReactOS  0.4.13-dev-235-g7373cb3
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 608 of file atlbase.h.

Constructor & Destructor Documentation

◆ CAtlDllModuleT()

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

Definition at line 611 of file atlbase.h.

612  {
613  }

Member Function Documentation

◆ DllCanUnloadNow()

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

Definition at line 615 of file atlbase.h.

616  {
617  T *pThis;
618 
619  pThis = static_cast<T *>(this);
620  if (pThis->GetLockCount() == 0)
621  return S_OK;
622  return S_FALSE;
623  }
#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 625 of file atlbase.h.

626  {
627  T *pThis;
628 
629  pThis = static_cast<T *>(this);
630  return pThis->GetClassObject(rclsid, riid, ppv);
631  }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define T
Definition: mbstring.h:31

◆ DllRegisterServer()

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

Definition at line 633 of file atlbase.h.

634  {
635  T *pThis;
636  HRESULT hResult;
637 
638  pThis = static_cast<T *>(this);
639  hResult = pThis->RegisterServer(bRegTypeLib);
640  return hResult;
641  }
#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 643 of file atlbase.h.

644  {
645  T *pThis;
646  HRESULT hResult;
647 
648  pThis = static_cast<T *>(this);
649  hResult = pThis->UnregisterServer(bUnRegTypeLib);
650  return hResult;
651  }
#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 653 of file atlbase.h.

654  {
655  return AtlComModuleGetClassObject(&_AtlComModule, rclsid, riid, ppv);
656  }
HRESULT WINAPI AtlComModuleGetClassObject(_ATL_COM_MODULE *pComModule, REFCLSID rclsid, REFIID riid, LPVOID *ppv)
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

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