ReactOS 0.4.15-dev-8236-g99f0937
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 87 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 106 of file atlbase.h.

107 {
108 IUnknown *p;
109 HRESULT hResult;
110
111 p = NULL;
112 if (pfnGetClassObject == NULL)
113 return S_OK;
114
115 hResult = pfnGetClassObject(reinterpret_cast<LPVOID *>(pfnCreateInstance), IID_IUnknown, reinterpret_cast<LPVOID *>(&p));
116 if (SUCCEEDED(hResult))
117 hResult = CoRegisterClassObject(*pclsid, p, dwClsContext, dwFlags, &dwRegister);
118
119 if (p != NULL)
120 p->Release();
121
122 return hResult;
123 }
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
HRESULT WINAPI CoRegisterClassObject(REFCLSID rclsid, LPUNKNOWN pUnk, DWORD dwClsContext, DWORD flags, LPDWORD lpdwRegister)
Definition: compobj.c:2897
GLfloat GLfloat p
Definition: glext.h:8902
#define S_OK
Definition: intsafe.h:52
#define SUCCEEDED(hr)
Definition: intsafe.h:50
_ATL_CREATORFUNC * pfnGetClassObject
Definition: atlbase.h:91
_ATL_CREATORFUNC * pfnCreateInstance
Definition: atlbase.h:92
const CLSID * pclsid
Definition: atlbase.h:89
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176

◆ RevokeClassObject()

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

Definition at line 99 of file atlbase.h.

100 {
101 if (dwRegister == 0)
102 return S_OK;
104 }
HRESULT WINAPI DECLSPEC_HOTPATCH CoRevokeClassObject(DWORD dwRegister)
Definition: compobj.c:1086

◆ void()

ATL::_ATL_OBJMAP_ENTRY30::void ( WINAPI pfnObjectMain)

Member Data Documentation

◆ dwRegister

DWORD ATL::_ATL_OBJMAP_ENTRY30::dwRegister

Definition at line 94 of file atlbase.h.

Referenced by RegisterClassObject(), and RevokeClassObject().

◆ pCF

IUnknown* ATL::_ATL_OBJMAP_ENTRY30::pCF

Definition at line 93 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 92 of file atlbase.h.

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

◆ pfnGetCategoryMap

_ATL_CATMAPFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetCategoryMap

Definition at line 96 of file atlbase.h.

◆ pfnGetClassObject

_ATL_CREATORFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetClassObject

Definition at line 91 of file atlbase.h.

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

◆ pfnGetObjectDescription

_ATL_DESCRIPTIONFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetObjectDescription

Definition at line 95 of file atlbase.h.


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