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

97  {
98  IUnknown *p;
99  HRESULT hResult;
100 
101  p = NULL;
102  if (pfnGetClassObject == NULL)
103  return S_OK;
104 
105  hResult = pfnGetClassObject(reinterpret_cast<LPVOID *>(pfnCreateInstance), IID_IUnknown, reinterpret_cast<LPVOID *>(&p));
106  if (SUCCEEDED(hResult))
107  hResult = CoRegisterClassObject(*pclsid, p, dwClsContext, dwFlags, &dwRegister);
108 
109  if (p != NULL)
110  p->Release();
111 
112  return hResult;
113  }
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IUnknown
_ATL_CREATORFUNC * pfnCreateInstance
Definition: atlbase.h:82
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
_ATL_CREATORFUNC * pfnGetClassObject
Definition: atlbase.h:81
HRESULT WINAPI CoRegisterClassObject(REFCLSID rclsid, LPUNKNOWN pUnk, DWORD dwClsContext, DWORD flags, LPDWORD lpdwRegister)
Definition: compobj.c:2806
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902
const CLSID * pclsid
Definition: atlbase.h:79
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ RevokeClassObject()

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

Definition at line 89 of file atlbase.h.

90  {
91  if (dwRegister == 0)
92  return S_OK;
94  }
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 84 of file atlbase.h.

Referenced by RegisterClassObject(), and RevokeClassObject().

◆ pCF

IUnknown* ATL::_ATL_OBJMAP_ENTRY30::pCF

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

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

◆ pfnGetCategoryMap

_ATL_CATMAPFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetCategoryMap

Definition at line 86 of file atlbase.h.

◆ pfnGetClassObject

_ATL_CREATORFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetClassObject

Definition at line 81 of file atlbase.h.

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

◆ pfnGetObjectDescription

_ATL_DESCRIPTIONFUNC* ATL::_ATL_OBJMAP_ENTRY30::pfnGetObjectDescription

Definition at line 85 of file atlbase.h.


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