Leaked source code of windows server 2003
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.

285 lines
3.7 KiB

  1. #include "shellpch.h"
  2. #pragma hdrstop
  3. static
  4. LPTSTR
  5. STDAPICALLTYPE
  6. PathAddBackslashW(
  7. LPTSTR lpszPath
  8. )
  9. {
  10. return NULL;
  11. }
  12. static
  13. BOOL
  14. STDAPICALLTYPE
  15. PathAppendW(
  16. LPTSTR pszPath,
  17. LPCTSTR pszMore
  18. )
  19. {
  20. return FALSE;
  21. }
  22. static
  23. LPTSTR
  24. STDAPICALLTYPE
  25. PathCombineW(
  26. LPTSTR lpszDest,
  27. LPCTSTR lpszDir,
  28. LPCTSTR lpszFile)
  29. {
  30. return NULL;
  31. }
  32. static
  33. HRESULT
  34. STDAPICALLTYPE
  35. PathCreateFromUrlW(
  36. LPCTSTR pszUrl,
  37. LPTSTR pszPath,
  38. LPDWORD pcchPath,
  39. DWORD dwReserved
  40. )
  41. {
  42. return E_FAIL;
  43. }
  44. static
  45. LPTSTR
  46. STDAPICALLTYPE
  47. PathFindFileNameW(
  48. LPCTSTR pPath
  49. )
  50. {
  51. return (LPTSTR)pPath;
  52. }
  53. static
  54. BOOL
  55. STDAPICALLTYPE
  56. PathIsRootW(
  57. LPCWSTR pszPath
  58. )
  59. {
  60. return FALSE;
  61. }
  62. static
  63. BOOL
  64. STDAPICALLTYPE
  65. PathIsUNCW(
  66. LPCTSTR pszPath
  67. )
  68. {
  69. return FALSE;
  70. }
  71. static
  72. LPTSTR
  73. STDAPICALLTYPE
  74. PathRemoveBackslashW(
  75. LPTSTR lpszPath
  76. )
  77. {
  78. return NULL;
  79. }
  80. static
  81. BOOL
  82. STDAPICALLTYPE
  83. PathRemoveFileSpecW(
  84. LPTSTR pFile
  85. )
  86. {
  87. return FALSE;
  88. }
  89. static
  90. void
  91. STDAPICALLTYPE
  92. PathSetDlgItemPathW(
  93. HWND hDlg,
  94. int id,
  95. LPCTSTR pszPath
  96. )
  97. {
  98. return;
  99. }
  100. static
  101. HRESULT STDAPICALLTYPE
  102. SHAutoComplete(HWND hwndEdit, DWORD dfwFlags)
  103. {
  104. return E_FAIL;
  105. }
  106. static
  107. BOOL
  108. WINAPI
  109. SHGetFileDescriptionW(
  110. LPCWSTR pszPath,
  111. LPCWSTR pszVersionKeyIn,
  112. LPCWSTR pszCutListIn,
  113. LPWSTR pszDesc,
  114. UINT *pcchDesc
  115. )
  116. {
  117. return FALSE;
  118. }
  119. static
  120. LPWSTR
  121. StrCatW(LPWSTR pszDst, LPCWSTR pszSrc)
  122. {
  123. return pszDst;
  124. }
  125. static
  126. HRESULT STDAPICALLTYPE
  127. UrlCanonicalizeW(
  128. LPCWSTR pszUrl,
  129. LPWSTR pszCanonicalized,
  130. LPDWORD pcchCanonicalized,
  131. DWORD dwFlags
  132. )
  133. {
  134. return E_FAIL;
  135. }
  136. static
  137. BOOL
  138. WINAPI
  139. IsOS(
  140. DWORD dwOS
  141. )
  142. {
  143. return FALSE;
  144. }
  145. static
  146. LPWSTR
  147. WINAPI
  148. StrStrIW(
  149. LPCWSTR lpFirst,
  150. LPCWSTR lpSrch
  151. )
  152. {
  153. return NULL;
  154. }
  155. static
  156. BOOL
  157. WINAPI
  158. StrTrimW(
  159. IN OUT LPWSTR pszTrimMe,
  160. LPCWSTR pszTrimChars
  161. )
  162. {
  163. return FALSE;
  164. }
  165. static
  166. HPALETTE
  167. WINAPI
  168. SHCreateShellPalette(
  169. HDC hdc
  170. )
  171. {
  172. return NULL;
  173. }
  174. static
  175. DWORD
  176. WINAPI
  177. SHDeleteKeyW(
  178. IN HKEY hkey,
  179. IN LPCWSTR pwszSubKey
  180. )
  181. {
  182. return ERROR_PROC_NOT_FOUND;
  183. }
  184. static
  185. int
  186. wnsprintfA(
  187. LPSTR lpOut,
  188. int cchLimitIn,
  189. LPCSTR lpFmt,
  190. ...
  191. )
  192. {
  193. *lpOut = 0;
  194. return 0;
  195. }
  196. static
  197. int
  198. wnsprintfW(
  199. LPWSTR lpOut,
  200. int cchLimitIn,
  201. LPCWSTR lpFmt,
  202. ...
  203. )
  204. {
  205. *lpOut = 0;
  206. return 0;
  207. }
  208. static
  209. int
  210. WINAPI
  211. wvnsprintfW(
  212. LPWSTR lpOut,
  213. int cchLimitIn,
  214. LPCWSTR lpFmt,
  215. va_list arglist
  216. )
  217. {
  218. *lpOut = 0;
  219. return 0;
  220. }
  221. //
  222. // !! WARNING !! The entries below must be in order by ORDINAL
  223. //
  224. DEFINE_ORDINAL_ENTRIES(shlwapi)
  225. {
  226. DLOENTRY(348, SHGetFileDescriptionW)
  227. DLOENTRY(437, IsOS)
  228. };
  229. DEFINE_ORDINAL_MAP(shlwapi)
  230. //
  231. // !! WARNING !! The entries below must be in alphabetical order
  232. // and are CASE SENSITIVE (i.e., lower case comes last!)
  233. //
  234. DEFINE_PROCNAME_ENTRIES(shlwapi)
  235. {
  236. DLPENTRY(PathAddBackslashW)
  237. DLPENTRY(PathAppendW)
  238. DLPENTRY(PathCombineW)
  239. DLPENTRY(PathCreateFromUrlW)
  240. DLPENTRY(PathFindFileNameW)
  241. DLPENTRY(PathIsRootW)
  242. DLPENTRY(PathIsUNCW)
  243. DLPENTRY(PathRemoveBackslashW)
  244. DLPENTRY(PathRemoveFileSpecW)
  245. DLPENTRY(PathSetDlgItemPathW)
  246. DLPENTRY(SHAutoComplete)
  247. DLPENTRY(SHCreateShellPalette)
  248. DLPENTRY(SHDeleteKeyW)
  249. DLPENTRY(StrCatW)
  250. DLPENTRY(StrStrIW)
  251. DLPENTRY(StrTrimW)
  252. DLPENTRY(UrlCanonicalizeW)
  253. DLPENTRY(wnsprintfA)
  254. DLPENTRY(wnsprintfW)
  255. DLPENTRY(wvnsprintfW)
  256. };
  257. DEFINE_PROCNAME_MAP(shlwapi)