ReactOS  0.4.14-dev-583-g2a1ba2c
CQuickLaunchBand.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CQuickLaunchBand
 

Functions

HRESULT RegisterComCat ()
 
HRESULT UnregisterComCat ()
 

Variables

const GUID CLSID_QuickLaunchBand
 

Function Documentation

◆ RegisterComCat()

HRESULT RegisterComCat ( )

Definition at line 43 of file CQuickLaunchBand.cpp.

44  {
45  CComPtr<ICatRegister> pcr;
46  HRESULT hr = CoCreateInstance(CLSID_StdComponentCategoriesMgr, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(ICatRegister, &pcr));
47  if (SUCCEEDED(hr))
48  {
49  CATID catid = CATID_DeskBand;
50  hr = pcr->RegisterClassImplCategories(CLSID_QuickLaunchBand, 1, &catid);
51  }
52  return hr;
53  }
HRESULT hr
Definition: shlfolder.c:183
#define IID_PPV_ARG(Itype, ppType)
smooth NULL
Definition: ftsmooth.c:416
GUID catid
Definition: msctf.idl:608
LONG HRESULT
Definition: typedefs.h:77
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
const GUID CLSID_QuickLaunchBand
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by DllRegisterServer().

◆ UnregisterComCat()

HRESULT UnregisterComCat ( )

Definition at line 55 of file CQuickLaunchBand.cpp.

56  {
57  CComPtr<ICatRegister> pcr;
58  HRESULT hr = CoCreateInstance(CLSID_StdComponentCategoriesMgr, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(ICatRegister, &pcr));
59  if (SUCCEEDED(hr))
60  {
61  CATID catid = CATID_DeskBand;
62  hr = pcr->UnRegisterClassImplCategories(CLSID_QuickLaunchBand, 1, &catid);
63  }
64  return hr;
65  }
HRESULT hr
Definition: shlfolder.c:183
#define IID_PPV_ARG(Itype, ppType)
smooth NULL
Definition: ftsmooth.c:416
GUID catid
Definition: msctf.idl:608
LONG HRESULT
Definition: typedefs.h:77
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
const GUID CLSID_QuickLaunchBand
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by DllUnregisterServer().

Variable Documentation

◆ CLSID_QuickLaunchBand