ReactOS  0.4.12-dev-57-g7050ac4
ATL::_ATL_OBJMAP_ENTRY30 Struct Reference

#include <atlbase.h>

Collaboration diagram for ATL::_ATL_OBJMAP_ENTRY30:

Public Member Functions

 HRESULT (WINAPI *pfnUpdateRegistry)(BOOL bRegister)
 
 void (WINAPI *pfnObjectMain)(bool bStarting)
 
HRESULT WINAPI RevokeClassObject ()
 
HRESULT WINAPI RegisterClassObject (DWORD dwClsContext, DWORD dwFlags)
 

Public Attributes

const CLSIDpclsid
 
_ATL_CREATORFUNC * pfnGetClassObject
 
_ATL_CREATORFUNC * pfnCreateInstance
 
IUnknownpCF
 
DWORD dwRegister
 
_ATL_DESCRIPTIONFUNC * pfnGetObjectDescription
 
_ATL_CATMAPFUNCpfnGetCategoryMap
 

Detailed Description

Definition at line 89 of file atlbase.h.

Member Function Documentation

◆ HRESULT()

ATL::_ATL_OBJMAP_ENTRY30::HRESULT ( WINAPI pfnUpdateRegistry)

◆ RegisterClassObject()

HRESULT WINAPI ATL::_ATL_OBJMAP_ENTRY30::RegisterClassObject ( DWORD  dwClsContext,
DWORD  dwFlags 
)
inline

Definition at line 108 of file atlbase.h.

109  {
110  IUnknown *p;
111  HRESULT hResult;
112 
113  p = NULL;
114  if (pfnGetClassObject == NULL)
115  return S_OK;
116 
117  hResult = pfnGetClassObject(reinterpret_cast<LPVOID *>(pfnCreateInstance), IID_IUnknown, reinterpret_cast<LPVOID *>(&p));
118  if (SUCCEEDED(hResult))
119  hResult = CoRegisterClassObject(*pclsid, p, dwClsContext, dwFlags, &dwRegister);
120 
121  if (p != NULL)
122  p->Release();
123 
124  return hResult;
125  }
ULONG Release()
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IUnknown
_ATL_CREATORFUNC * pfnCreateInstance
Definition: atlbase.h:94
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
_ATL_CREATORFUNC * pfnGetClassObject
Definition: atlbase.h:93
HRESULT WINAPI CoRegisterClassObject(REFCLSID rclsid, LPUNKNOWN pUnk, DWORD dwClsContext, DWORD flags, LPDWORD lpdwRegister)
Definition: compobj.c:2809
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902
const CLSID * pclsid
Definition: atlbase.h:91
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ RevokeClassObject()

HRESULT WINAPI ATL::_ATL_OBJMAP_ENTRY30::RevokeClassObject ( )
inline

Definition at line 101 of file atlbase.h.

102  {
103  if (dwRegister == 0)
104  return S_OK;
106  }
HRESULT WINAPI DECLSPEC_HOTPATCH CoRevokeClassObject(DWORD dwRegister)
Definition: compobj.c:1089
#define S_OK
Definition: intsafe.h:59

◆ void()

ATL::_ATL_OBJMAP_ENTRY30::void ( WINAPI pfnObjectMain)

Member Data Documentation

◆ dwRegister

DWORD ATL::_ATL_OBJMAP_ENTRY30::dwRegister

Definition at line 96 of file atlbase.h.

◆ pCF

IUnknown* ATL::_ATL_OBJMAP_ENTRY30::pCF

Definition at line 95 of file atlbase.h.

Referenced by ATL::CComModule::GetClassObject(), and ATL::CComModule::Term().

◆ pclsid

◆ pfnCreateInstance

_ATL_CREATORFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnCreateInstance

Definition at line 94 of file atlbase.h.

Referenced by ATL::CComModule::GetClassObject().

◆ pfnGetCategoryMap

_ATL_CATMAPFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetCategoryMap

Definition at line 98 of file atlbase.h.

Referenced by ATL::AtlComModuleRegisterServer(), and ATL::AtlComModuleUnregisterServer().

◆ pfnGetClassObject

_ATL_CREATORFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetClassObject

Definition at line 93 of file atlbase.h.

Referenced by ATL::CComModule::GetClassObject().

◆ pfnGetObjectDescription

_ATL_DESCRIPTIONFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetObjectDescription

Definition at line 97 of file atlbase.h.


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