ReactOS 0.4.15-dev-7918-g2a2556c
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 }
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 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 }

Referenced by DllUnregisterServer().

Variable Documentation

◆ CLSID_QuickLaunchBand