ReactOS  0.4.13-dev-544-gede3fdd
browseui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USE_CUSTOM_MENUBAND   1
 
#define USE_CUSTOM_MERGEDFOLDER   1
 
#define USE_CUSTOM_ADDRESSBAND   1
 
#define USE_CUSTOM_ADDRESSEDITBOX   1
 
#define USE_CUSTOM_BANDPROXY   1
 
#define USE_CUSTOM_BRANDBAND   1
 
#define USE_CUSTOM_EXPLORERBAND   1
 
#define USE_CUSTOM_INTERNETTOOLBAR   1
 

Functions

HRESULT CAddressBand_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CAddressEditBox_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CBandProxy_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CBrandBand_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CExplorerBand_CreateInstance (REFIID riid, LPVOID *ppv)
 
HRESULT CInternetToolbar_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CMergedFolder_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CMenuBand_CreateInstance (REFIID iid, LPVOID *ppv)
 
HRESULT CShellBrowser_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CTravelLog_CreateInstance (REFIID riid, void **ppv)
 
HRESULT CBaseBar_CreateInstance (REFIID riid, void **ppv, BOOL vertical)
 
HRESULT CBaseBarSite_CreateInstance (REFIID riid, void **ppv, BOOL bVertical)
 
HRESULT CToolsBand_CreateInstance (REFIID riid, void **ppv)
 

Macro Definition Documentation

◆ USE_CUSTOM_ADDRESSBAND

#define USE_CUSTOM_ADDRESSBAND   1

Definition at line 5 of file browseui.h.

◆ USE_CUSTOM_ADDRESSEDITBOX

#define USE_CUSTOM_ADDRESSEDITBOX   1

Definition at line 6 of file browseui.h.

◆ USE_CUSTOM_BANDPROXY

#define USE_CUSTOM_BANDPROXY   1

Definition at line 7 of file browseui.h.

◆ USE_CUSTOM_BRANDBAND

#define USE_CUSTOM_BRANDBAND   1

Definition at line 8 of file browseui.h.

◆ USE_CUSTOM_EXPLORERBAND

#define USE_CUSTOM_EXPLORERBAND   1

Definition at line 9 of file browseui.h.

◆ USE_CUSTOM_INTERNETTOOLBAR

#define USE_CUSTOM_INTERNETTOOLBAR   1

Definition at line 10 of file browseui.h.

◆ USE_CUSTOM_MENUBAND

#define USE_CUSTOM_MENUBAND   1

Definition at line 3 of file browseui.h.

◆ USE_CUSTOM_MERGEDFOLDER

#define USE_CUSTOM_MERGEDFOLDER   1

Definition at line 4 of file browseui.h.

Function Documentation

◆ CAddressBand_CreateInstance()

HRESULT CAddressBand_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 24 of file browseui.cpp.

25 {
26 #if USE_CUSTOM_ADDRESSBAND
27  return ShellObjectCreator<CAddressBand>(riid, ppv);
28 #else
29  return CoCreateInstance(CLSID_SH_AddressBand, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(IUnknown, toolsBar));
30 #endif
31 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IID_PPV_ARG(Itype, ppType)
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234

Referenced by CInternetToolbar::InitNew().

◆ CAddressEditBox_CreateInstance()

HRESULT CAddressEditBox_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 33 of file browseui.cpp.

34 {
35 #if USE_CUSTOM_ADDRESSEDITBOX
36  return ShellObjectCreator<CAddressEditBox>(riid, ppv);
37 #else
38  return CoCreateInstance(CLSID_AddressEditBox, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(riid, &ppv));
39 #endif
40 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IID_PPV_ARG(Itype, ppType)
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234

Referenced by CAddressBand::SetSite().

◆ CBandProxy_CreateInstance()

HRESULT CBandProxy_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 42 of file browseui.cpp.

43 {
44 #if USE_CUSTOM_BANDPROXY
45  return ShellObjectCreator<CBandProxy>(riid, ppv);
46 #else
47  return CoCreateInstance(CLSID_BandProxy, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARG(riid, &ppv));
48 #endif
49 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IID_PPV_ARG(Itype, ppType)
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234

Referenced by CInternetToolbar::CreateAndInitBandProxy().

◆ CBaseBar_CreateInstance()

HRESULT CBaseBar_CreateInstance ( REFIID  riid,
void **  ppv,
BOOL  vertical 
)

Definition at line 564 of file CBaseBar.cpp.

565 {
566  return ShellObjectCreatorInit<CBaseBar, BOOL>(vertical, riid, ppv);
567 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CShellBrowser::GetBaseBar().

◆ CBaseBarSite_CreateInstance()

HRESULT CBaseBarSite_CreateInstance ( REFIID  riid,
void **  ppv,
BOOL  bVertical 
)

Definition at line 829 of file basebarsite.cpp.

830 {
831  return ShellObjectCreatorInit<CBaseBarSite, BOOL>(bVertical, riid, ppv);
832 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CShellBrowser::GetBaseBar().

◆ CBrandBand_CreateInstance()

HRESULT CBrandBand_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 51 of file browseui.cpp.

52 {
53 #if USE_CUSTOM_BRANDBAND
54  return ShellObjectCreator<CBrandBand>(riid, ppv);
55 #else
56  return CoCreateInstance(CLSID_BrandBand, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
57 #endif
58 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234

Referenced by CInternetToolbar::InitNew().

◆ CExplorerBand_CreateInstance()

HRESULT CExplorerBand_CreateInstance ( REFIID  riid,
LPVOID ppv 
)

Definition at line 60 of file browseui.cpp.

61 {
62 #if USE_CUSTOM_EXPLORERBAND
63  return ShellObjectCreator<CExplorerBand>(riid, ppv);
64 #else
65  return CoCreateInstance(CLSID_ExplorerBand, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
66 #endif
67 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234

Referenced by CShellBrowser::ShowBand().

◆ CInternetToolbar_CreateInstance()

HRESULT CInternetToolbar_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 69 of file browseui.cpp.

70 {
71 #if USE_CUSTOM_INTERNETTOOLBAR
72  return ShellObjectCreator<CInternetToolbar>(riid, ppv);
73 #else
74  return CoCreateInstance(CLSID_InternetToolbar, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
75 #endif
76 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234

Referenced by CShellBrowser::Initialize().

◆ CMenuBand_CreateInstance()

HRESULT CMenuBand_CreateInstance ( REFIID  iid,
LPVOID ppv 
)

Definition at line 102 of file browseui.cpp.

103 {
104 #if USE_CUSTOM_MENUBAND
105  HMODULE hRShell = GetModuleHandleW(L"rshell.dll");
106 
107  if (!hRShell)
108  hRShell = LoadLibraryW(L"rshell.dll");
109 
110  if (hRShell)
111  {
112  PMENUBAND_CREATEINSTANCE func = (PMENUBAND_CREATEINSTANCE) GetProcAddress(hRShell, "CMenuBand_CreateInstance");
113  if (func)
114  {
115  return func(iid , ppv);
116  }
117  }
118 #endif
119  return CoCreateInstance(CLSID_MenuBand, NULL, CLSCTX_INPROC_SERVER, iid, ppv);
120 }
GLenum func
Definition: glext.h:6028
HRESULT(WINAPI * PMENUBAND_CREATEINSTANCE)(REFIID riid, void **ppv)
Definition: browseui.cpp:78
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define LoadLibraryW(x)
Definition: compat.h:404
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR L[]
Definition: oid.c:1250
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:845
#define GetProcAddress(x, y)
Definition: compat.h:410

◆ CMergedFolder_CreateInstance()

HRESULT CMergedFolder_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 81 of file browseui.cpp.

82 {
83 #if USE_CUSTOM_MERGEDFOLDER
84  HMODULE hRShell = GetModuleHandle(L"rshell.dll");
85  if (!hRShell)
86  hRShell = LoadLibrary(L"rshell.dll");
87 
88  if (hRShell)
89  {
90  PMERGEDFOLDER_CREATEINSTANCE pCMergedFolder_CreateInstance = (PMERGEDFOLDER_CREATEINSTANCE)
91  GetProcAddress(hRShell, "CMergedFolder_CreateInstance");
92 
93  if (pCMergedFolder_CreateInstance)
94  {
95  return pCMergedFolder_CreateInstance(riid, ppv);
96  }
97  }
98 #endif
99  return CoCreateInstance(CLSID_MergedFolder, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
100 }
HRESULT(WINAPI * PMERGEDFOLDER_CREATEINSTANCE)(REFIID riid, void **ppv)
Definition: browseui.cpp:79
#define LoadLibrary
Definition: winbase.h:3676
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR L[]
Definition: oid.c:1250
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3234
#define GetModuleHandle
Definition: winbase.h:3641
#define GetProcAddress(x, y)
Definition: compat.h:410

◆ CShellBrowser_CreateInstance()

HRESULT CShellBrowser_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 3784 of file shellbrowser.cpp.

3785 {
3786  return ShellObjectCreatorInit<CShellBrowser>(riid, ppv);
3787 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by ExplorerMessageLoop().

◆ CToolsBand_CreateInstance()

HRESULT CToolsBand_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 419 of file toolsband.cpp.

420 {
421  return ShellObjectCreator<CToolsBand>(riid, ppv);
422 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CInternetToolbar::InitNew().

◆ CTravelLog_CreateInstance()

HRESULT CTravelLog_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 626 of file travellog.cpp.

627 {
628  return ShellObjectCreatorInit<CTravelLog>(riid, ppv);
629 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CShellBrowser::GetTravelLog().