ReactOS 0.4.15-dev-7906-g1b85a5f
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_SEARCHBAND   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 CSearchBar_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)
 
HRESULT IEGetNameAndFlags (LPITEMIDLIST pidl, SHGDNF uFlags, LPWSTR pszBuf, UINT cchBuf, SFGAOF *rgfInOut)
 

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 11 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.

◆ USE_CUSTOM_SEARCHBAND

#define USE_CUSTOM_SEARCHBAND   1

Definition at line 10 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}
#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
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IID_PPV_ARG(Itype, ppType)

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}

Referenced by CSearchBar::OnInitDialog(), and 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}

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}

Referenced by CShellBrowser::GetBaseBar().

◆ CBaseBarSite_CreateInstance()

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

Definition at line 830 of file basebarsite.cpp.

831{
832 return ShellObjectCreatorInit<CBaseBarSite, BOOL>(bVertical, riid, ppv);
833}

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}

Referenced by CInternetToolbar::InitNew().

◆ CExplorerBand_CreateInstance()

HRESULT CExplorerBand_CreateInstance ( REFIID  riid,
LPVOID ppv 
)

Definition at line 69 of file browseui.cpp.

70{
71#if USE_CUSTOM_EXPLORERBAND
72 return ShellObjectCreator<CExplorerBand>(riid, ppv);
73#else
74 return CoCreateInstance(CLSID_ExplorerBand, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
75#endif
76}

Referenced by CShellBrowser::ShowBand().

◆ CInternetToolbar_CreateInstance()

HRESULT CInternetToolbar_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 78 of file browseui.cpp.

79{
80#if USE_CUSTOM_INTERNETTOOLBAR
81 return ShellObjectCreator<CInternetToolbar>(riid, ppv);
82#else
83 return CoCreateInstance(CLSID_InternetToolbar, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
84#endif
85}

Referenced by CShellBrowser::Initialize().

◆ CMenuBand_CreateInstance()

HRESULT CMenuBand_CreateInstance ( REFIID  iid,
LPVOID ppv 
)

Definition at line 111 of file browseui.cpp.

112{
113#if USE_CUSTOM_MENUBAND
114 HMODULE hRShell = GetModuleHandleW(L"rshell.dll");
115
116 if (!hRShell)
117 hRShell = LoadLibraryW(L"rshell.dll");
118
119 if (hRShell)
120 {
121 PMENUBAND_CREATEINSTANCE func = (PMENUBAND_CREATEINSTANCE) GetProcAddress(hRShell, "CMenuBand_CreateInstance");
122 if (func)
123 {
124 return func(iid , ppv);
125 }
126 }
127#endif
128 return CoCreateInstance(CLSID_MenuBand, NULL, CLSCTX_INPROC_SERVER, iid, ppv);
129}
HRESULT(WINAPI * PMENUBAND_CREATEINSTANCE)(REFIID riid, void **ppv)
Definition: browseui.cpp:87
#define GetProcAddress(x, y)
Definition: compat.h:753
#define LoadLibraryW(x)
Definition: compat.h:747
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
GLenum func
Definition: glext.h:6028
#define L(x)
Definition: ntvdm.h:50

◆ CMergedFolder_CreateInstance()

HRESULT CMergedFolder_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 90 of file browseui.cpp.

91{
92#if USE_CUSTOM_MERGEDFOLDER
93 HMODULE hRShell = GetModuleHandle(L"rshell.dll");
94 if (!hRShell)
95 hRShell = LoadLibrary(L"rshell.dll");
96
97 if (hRShell)
98 {
99 PMERGEDFOLDER_CREATEINSTANCE pCMergedFolder_CreateInstance = (PMERGEDFOLDER_CREATEINSTANCE)
100 GetProcAddress(hRShell, "CMergedFolder_CreateInstance");
101
102 if (pCMergedFolder_CreateInstance)
103 {
104 return pCMergedFolder_CreateInstance(riid, ppv);
105 }
106 }
107#endif
108 return CoCreateInstance(CLSID_MergedFolder, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
109}
HRESULT(WINAPI * PMERGEDFOLDER_CREATEINSTANCE)(REFIID riid, void **ppv)
Definition: browseui.cpp:88
#define LoadLibrary
Definition: winbase.h:3862
#define GetModuleHandle
Definition: winbase.h:3827

◆ CSearchBar_CreateInstance()

HRESULT CSearchBar_CreateInstance ( REFIID  riid,
LPVOID ppv 
)

Definition at line 60 of file browseui.cpp.

61{
62#if USE_CUSTOM_SEARCHBAND
63 return ShellObjectCreator<CSearchBar>(riid, ppv);
64#else
65 return CoCreateInstance(CLSID_FileSearchBand, NULL, CLSCTX_INPROC_SERVER, riid, ppv);
66#endif
67}

Referenced by CShellBrowser::ShowBand().

◆ CShellBrowser_CreateInstance()

HRESULT CShellBrowser_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 3905 of file shellbrowser.cpp.

3906{
3907 return ShellObjectCreatorInit<CShellBrowser>(riid, ppv);
3908}

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}

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}

Referenced by CShellBrowser::GetTravelLog().

◆ IEGetNameAndFlags()

HRESULT IEGetNameAndFlags ( LPITEMIDLIST  pidl,
SHGDNF  uFlags,
LPWSTR  pszBuf,
UINT  cchBuf,
SFGAOF rgfInOut 
)

Definition at line 922 of file shellbrowser.cpp.

923{
924 return IEGetNameAndFlagsEx(pidl, uFlags, 0, pszBuf, cchBuf, rgfInOut);
925}
UINT uFlags
Definition: api.c:59
HRESULT IEGetNameAndFlagsEx(LPITEMIDLIST pidl, SHGDNF uFlags, long param10, LPWSTR pszBuf, UINT cchBuf, SFGAOF *rgfInOut)

Referenced by CShellBrowser::BrowseToPath(), CAddressEditBox::RefreshAddress(), and CShellBrowser::UpdateWindowTitle().