ReactOS  0.4.14-dev-77-gd9e7c48
CRShellClassFactory Class Reference
Inheritance diagram for CRShellClassFactory:
Collaboration diagram for CRShellClassFactory:

Public Member Functions

 CRShellClassFactory ()
 
virtual ~CRShellClassFactory ()
 
HRESULT Initialize (REFGUID clsid)
 
virtual HRESULT WINAPI CreateInstance (LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObject)
 
virtual HRESULT WINAPI LockServer (BOOL fLock)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
- Public Member Functions inherited from IClassFactory
HRESULT CreateInstance ([in, unique] IUnknown *pUnkOuter, [in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
HRESULT RemoteCreateInstance ([in] REFIID riid, [out, iid_is(riid)] IUnknown **ppvObject)
 
HRESULT RemoteLockServer ([in] BOOL fLock)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Private Attributes

CLSID m_Clsid
 

Additional Inherited Members

- Public Types inherited from IClassFactory
typedef IClassFactoryLPCLASSFACTORY
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 

Detailed Description

Definition at line 211 of file misc.cpp.

Constructor & Destructor Documentation

◆ CRShellClassFactory()

CRShellClassFactory::CRShellClassFactory ( )
inline

Definition at line 219 of file misc.cpp.

219 {}

◆ ~CRShellClassFactory()

virtual CRShellClassFactory::~CRShellClassFactory ( )
inlinevirtual

Definition at line 220 of file misc.cpp.

220 {}

Member Function Documentation

◆ CreateInstance()

virtual HRESULT WINAPI CRShellClassFactory::CreateInstance ( LPUNKNOWN  pUnkOuter,
REFIID  riid,
LPVOID ppvObject 
)
inlinevirtual

Definition at line 229 of file misc.cpp.

230  {
231  *ppvObject = NULL;
232 
235 
236  if (IsEqualCLSID(m_Clsid, CLSID_MenuDeskBar))
238 
239  if (IsEqualCLSID(m_Clsid, CLSID_MenuBand))
241 
244 
245  if (IsEqualCLSID(m_Clsid, CLSID_MergedFolder))
247 
249  return ShellObjectCreator<CQuickLaunchBand>(riid, ppvObject);
250 
251  return E_NOINTERFACE;
252  }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
HRESULT WINAPI RSHELL_CMenuBand_CreateInstance(REFIID riid, LPVOID *ppv)
Definition: CMenuBand.cpp:1313
HRESULT WINAPI RSHELL_CMenuSite_CreateInstance(REFIID riid, LPVOID *ppv)
Definition: CMenuSite.cpp:359
smooth NULL
Definition: ftsmooth.c:416
const GUID CLSID_StartMenu
HRESULT WINAPI RSHELL_CStartMenu_CreateInstance(REFIID riid, void **ppv)
Definition: CStartMenu.cpp:418
REFIID LPVOID * ppvObject
Definition: precomp.h:44
const GUID CLSID_MenuBandSite
const GUID CLSID_QuickLaunchBand
HRESULT WINAPI RSHELL_CMenuDeskBar_CreateInstance(REFIID riid, LPVOID *ppv)
HRESULT WINAPI RSHELL_CMergedFolder_CreateInstance(REFIID riid, LPVOID *ppv)
#define IsEqualCLSID(rclsid1, rclsid2)
Definition: guiddef.h:96

◆ Initialize()

HRESULT CRShellClassFactory::Initialize ( REFGUID  clsid)
inline

Definition at line 222 of file misc.cpp.

223  {
224  m_Clsid = clsid;
225  return S_OK;
226  }
REFCLSID clsid
Definition: msctf.c:84
#define S_OK
Definition: intsafe.h:59

◆ LockServer()

virtual HRESULT WINAPI CRShellClassFactory::LockServer ( BOOL  fLock)
inlinevirtual

Implements IClassFactory.

Definition at line 254 of file misc.cpp.

255  {
256  return E_NOTIMPL;
257  }
#define E_NOTIMPL
Definition: ddrawi.h:99

Member Data Documentation

◆ m_Clsid

CLSID CRShellClassFactory::m_Clsid
private

Definition at line 216 of file misc.cpp.

Referenced by CreateInstance(), and Initialize().


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