ReactOS 0.4.15-dev-5829-g6b6a045
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 ()
 
virtual HRESULT AddCommonRGSReplacements (IRegistrarBase *)=0
 
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 609 of file atlbase.h.

Constructor & Destructor Documentation

◆ CAtlDllModuleT()

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

Definition at line 612 of file atlbase.h.

613 {
614 }

Member Function Documentation

◆ DllCanUnloadNow()

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

Definition at line 616 of file atlbase.h.

617 {
618 T *pThis;
619
620 pThis = static_cast<T *>(this);
621 if (pThis->GetLockCount() == 0)
622 return S_OK;
623 return S_FALSE;
624 }
#define S_OK
Definition: intsafe.h:52
#define T
Definition: mbstring.h:31
#define S_FALSE
Definition: winerror.h:2357

◆ DllGetClassObject()

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

Definition at line 626 of file atlbase.h.

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

◆ DllRegisterServer()

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

Definition at line 634 of file atlbase.h.

635 {
636 T *pThis;
637 HRESULT hResult;
638
639 pThis = static_cast<T *>(this);
640 hResult = pThis->RegisterServer(bRegTypeLib);
641 return hResult;
642 }

◆ DllUnregisterServer()

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

Definition at line 644 of file atlbase.h.

645 {
646 T *pThis;
647 HRESULT hResult;
648
649 pThis = static_cast<T *>(this);
650 hResult = pThis->UnregisterServer(bUnRegTypeLib);
651 return hResult;
652 }

◆ GetClassObject()

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

Definition at line 654 of file atlbase.h.

655 {
656 return AtlComModuleGetClassObject(&_AtlComModule, rclsid, riid, ppv);
657 }
HRESULT WINAPI AtlComModuleGetClassObject(_ATL_COM_MODULE *pComModule, REFCLSID rclsid, REFIID riid, LPVOID *ppv)

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