ReactOS 0.4.16-dev-321-g63bb46a
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 41 of file CQuickLaunchBand.cpp.

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

Referenced by DllRegisterServer(), and SetRegisterLangBand().

◆ UnregisterComCat()

HRESULT UnregisterComCat ( )

Definition at line 53 of file CQuickLaunchBand.cpp.

54{
55 CComPtr<ICatRegister> pcr;
56 HRESULT hr = CoCreateInstance(CLSID_StdComponentCategoriesMgr, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(ICatRegister, &pcr));
57 if (SUCCEEDED(hr))
58 {
59 CATID catid = CATID_DeskBand;
60 hr = pcr->UnRegisterClassImplCategories(CLSID_QuickLaunchBand, 1, &catid);
61 }
62 return hr;
63}

Referenced by DllUnregisterServer().

Variable Documentation

◆ CLSID_QuickLaunchBand