Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

209 lines
3.4 KiB

  1. #include "shellpch.h"
  2. #pragma hdrstop
  3. #define _BROWSEUI_
  4. #include <shlobj.h>
  5. #include <shlobjp.h>
  6. #include <objidl.h>
  7. #include <comctrlp.h>
  8. #include <shellapi.h>
  9. #include <browseui.h>
  10. #undef BROWSEUIAPI
  11. #define BROWSEUIAPI HRESULT STDAPICALLTYPE
  12. #undef BROWSEUIAPI_
  13. #define BROWSEUIAPI_(type) type STDAPICALLTYPE
  14. static
  15. BROWSEUIAPI_(HRESULT)
  16. Channel_QuickLaunch()
  17. {
  18. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  19. }
  20. static
  21. BROWSEUIAPI_(void)
  22. SHCreateSavedWindows()
  23. {
  24. }
  25. static
  26. BROWSEUIAPI_(BOOL)
  27. SHParseIECommandLine(
  28. LPCWSTR * ppszCmdLine,
  29. IETHREADPARAM * piei
  30. )
  31. {
  32. return FALSE;
  33. }
  34. static
  35. BROWSEUIAPI
  36. SHCreateBandForPidl(
  37. LPCITEMIDLIST pidl,
  38. IUnknown** ppunk,
  39. BOOL fAllowBrowserBand
  40. )
  41. {
  42. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  43. }
  44. static
  45. BROWSEUIAPI_(DWORD)
  46. IDataObject_GetDeskBandState(
  47. IDataObject *pdtobj
  48. )
  49. {
  50. return 0;
  51. }
  52. static
  53. BROWSEUIAPI_(BOOL)
  54. SHOpenFolderWindow(
  55. IETHREADPARAM* pieiIn
  56. )
  57. {
  58. // we leak some memebers, but we at least free piei
  59. LocalFree(pieiIn);
  60. return FALSE;
  61. }
  62. static
  63. BROWSEUIAPI_(IETHREADPARAM*)
  64. SHCreateIETHREADPARAM(
  65. LPCWSTR pszCmdLineIn,
  66. int nCmdShowIn,
  67. ITravelLog *ptlIn,
  68. IEFreeThreadedHandShake* piehsIn
  69. )
  70. {
  71. return NULL;
  72. }
  73. static
  74. BROWSEUIAPI_(void)
  75. SHDestroyIETHREADPARAM(
  76. IETHREADPARAM* piei
  77. )
  78. {
  79. // we leak som memebers, but we at least free piei
  80. LocalFree(piei);
  81. }
  82. static
  83. BROWSEUIAPI_(BOOL)
  84. SHOnCWMCommandLine(
  85. LPARAM lParam
  86. )
  87. {
  88. return FALSE;
  89. }
  90. static
  91. BROWSEUIAPI_(LPITEMIDLIST)
  92. Channel_GetFolderPidl()
  93. {
  94. return NULL;
  95. }
  96. static
  97. BROWSEUIAPI
  98. IUnknown_SetBandInfoSFB(
  99. IUnknown *punkBand,
  100. BANDINFOSFB *pbi
  101. )
  102. {
  103. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  104. }
  105. static
  106. BROWSEUIAPI_(void)
  107. Channels_SetBandInfoSFB(
  108. IUnknown* punkBand
  109. )
  110. {
  111. }
  112. static
  113. BROWSEUIAPI_(IDeskBand *)
  114. ChannelBand_Create(
  115. LPCITEMIDLIST pidlDefault
  116. )
  117. {
  118. return NULL;
  119. }
  120. static
  121. BROWSEUIAPI_(HRESULT)
  122. SHGetNavigateTarget(
  123. IShellFolder *psf,
  124. LPCITEMIDLIST pidl,
  125. LPITEMIDLIST *ppidl,
  126. DWORD *pdwAttribs
  127. )
  128. {
  129. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  130. }
  131. static
  132. BROWSEUIAPI_(BOOL)
  133. GetInfoTip(
  134. IShellFolder* psf,
  135. LPCITEMIDLIST pidl,
  136. LPTSTR pszText,
  137. int cchTextMax
  138. )
  139. {
  140. *pszText = 0;
  141. return FALSE;
  142. }
  143. static
  144. BROWSEUIAPI_(BOOL)
  145. SHCreateFromDesktop(
  146. PNEWFOLDERINFO pfi
  147. )
  148. {
  149. return TRUE;
  150. }
  151. static
  152. BROWSEUIAPI
  153. SHOpenNewFrame(
  154. LPITEMIDLIST pidlNew,
  155. ITravelLog *ptl,
  156. DWORD dwBrowserIndex,
  157. UINT uFlags
  158. )
  159. {
  160. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  161. }
  162. //
  163. // !! WARNING !! The entries below must be in order by ORDINAL
  164. //
  165. DEFINE_ORDINAL_ENTRIES(browseui)
  166. {
  167. DLOENTRY(102, SHOpenFolderWindow)
  168. DLOENTRY(103, SHOpenNewFrame)
  169. DLOENTRY(105, SHCreateSavedWindows)
  170. DLOENTRY(106, SHCreateFromDesktop)
  171. DLOENTRY(120, SHCreateBandForPidl)
  172. DLOENTRY(122, IDataObject_GetDeskBandState)
  173. DLOENTRY(123, SHCreateIETHREADPARAM)
  174. DLOENTRY(125, SHParseIECommandLine)
  175. DLOENTRY(126, SHDestroyIETHREADPARAM)
  176. DLOENTRY(127, SHOnCWMCommandLine)
  177. DLOENTRY(128, Channel_GetFolderPidl)
  178. DLOENTRY(129, ChannelBand_Create)
  179. DLOENTRY(130, Channels_SetBandInfoSFB)
  180. DLOENTRY(131, IUnknown_SetBandInfoSFB)
  181. DLOENTRY(133, Channel_QuickLaunch)
  182. DLOENTRY(134, SHGetNavigateTarget)
  183. DLOENTRY(135, GetInfoTip)
  184. };
  185. DEFINE_ORDINAL_MAP(browseui)