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.

468 lines
6.3 KiB

  1. #include "shellpch.h"
  2. #pragma hdrstop
  3. #define _COMCTL32_
  4. #include <commctrl.h>
  5. #include <comctrlp.h>
  6. static
  7. WINCOMMCTRLAPI
  8. HPROPSHEETPAGE
  9. WINAPI
  10. CreatePropertySheetPageW (
  11. LPCPROPSHEETPAGEW psp
  12. )
  13. {
  14. return NULL;
  15. }
  16. static
  17. WINCOMMCTRLAPI
  18. HWND
  19. WINAPI
  20. CreateUpDownControl (
  21. DWORD dwStyle, int x, int y, int cx, int cy,
  22. HWND hParent, int nID, HINSTANCE hInst,
  23. HWND hBuddy,
  24. int nUpper, int nLower, int nPos
  25. )
  26. {
  27. return NULL;
  28. }
  29. static
  30. WINCOMMCTRLAPI
  31. BOOL
  32. WINAPI
  33. DestroyPropertySheetPage (
  34. HPROPSHEETPAGE hpage
  35. )
  36. {
  37. return FALSE;
  38. }
  39. static
  40. WINCOMMCTRLAPI
  41. int
  42. WINAPI
  43. ImageList_Add (
  44. HIMAGELIST himl,
  45. HBITMAP hbmImage,
  46. HBITMAP hbmMask
  47. )
  48. {
  49. return -1;
  50. }
  51. static
  52. WINCOMMCTRLAPI
  53. HIMAGELIST
  54. WINAPI
  55. ImageList_Create (
  56. int cx, int cy, UINT flags, int cInitial, int cGrow
  57. )
  58. {
  59. return NULL;
  60. }
  61. static
  62. WINCOMMCTRLAPI
  63. BOOL
  64. WINAPI
  65. ImageList_Destroy (
  66. HIMAGELIST himl
  67. )
  68. {
  69. return FALSE;
  70. }
  71. static
  72. WINCOMMCTRLAPI
  73. BOOL
  74. WINAPI
  75. ImageList_Draw (
  76. HIMAGELIST himl, int i, HDC hdcDst, int x, int y, UINT fStyle
  77. )
  78. {
  79. return FALSE;
  80. }
  81. static
  82. WINCOMMCTRLAPI
  83. HIMAGELIST
  84. WINAPI
  85. ImageList_Duplicate (
  86. HIMAGELIST himl
  87. )
  88. {
  89. return NULL;
  90. }
  91. static
  92. WINCOMMCTRLAPI
  93. HICON
  94. WINAPI
  95. ImageList_GetIcon (
  96. HIMAGELIST himl, int i, UINT flags
  97. )
  98. {
  99. return NULL;
  100. }
  101. static
  102. WINCOMMCTRLAPI
  103. BOOL
  104. WINAPI
  105. ImageList_GetIconSize (
  106. HIMAGELIST himl, int FAR *cx, int FAR *cy
  107. )
  108. {
  109. return FALSE;
  110. }
  111. static
  112. WINCOMMCTRLAPI
  113. HIMAGELIST
  114. WINAPI
  115. ImageList_LoadImageA (
  116. HINSTANCE hi,
  117. LPCSTR lpbmp,
  118. int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags
  119. )
  120. {
  121. return NULL;
  122. }
  123. static
  124. WINCOMMCTRLAPI
  125. HIMAGELIST
  126. WINAPI
  127. ImageList_LoadImageW (
  128. HINSTANCE hi,
  129. LPCWSTR lpbmp,
  130. int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags
  131. )
  132. {
  133. return NULL;
  134. }
  135. static
  136. WINCOMMCTRLAPI
  137. BOOL
  138. WINAPI ImageList_Remove(
  139. HIMAGELIST himl,
  140. int i
  141. )
  142. {
  143. return FALSE;
  144. }
  145. static
  146. WINCOMMCTRLAPI
  147. int
  148. WINAPI
  149. ImageList_ReplaceIcon (
  150. HIMAGELIST himl, int i, HICON hicon
  151. )
  152. {
  153. return -1;
  154. }
  155. static
  156. WINCOMMCTRLAPI
  157. COLORREF
  158. WINAPI
  159. ImageList_SetBkColor (
  160. HIMAGELIST himl,
  161. COLORREF clrBk
  162. )
  163. {
  164. return CLR_NONE;
  165. }
  166. static
  167. WINCOMMCTRLAPI
  168. BOOL
  169. WINAPI
  170. ImageList_SetOverlayImage (
  171. HIMAGELIST himl,
  172. int iImage,
  173. int iOverlay
  174. )
  175. {
  176. return FALSE;
  177. }
  178. static
  179. WINCOMMCTRLAPI
  180. void
  181. WINAPI InitCommonControls (
  182. void
  183. )
  184. {
  185. }
  186. static
  187. WINCOMMCTRLAPI
  188. BOOL
  189. WINAPI
  190. InitCommonControlsEx (
  191. LPINITCOMMONCONTROLSEX icce
  192. )
  193. {
  194. return FALSE;
  195. }
  196. static
  197. WINCOMMCTRLAPI
  198. INT_PTR
  199. WINAPI
  200. PropertySheetW (
  201. LPCPROPSHEETHEADERW psh
  202. )
  203. {
  204. return -1;
  205. }
  206. static
  207. LRESULT
  208. WINAPI
  209. DefSubclassProc(
  210. HWND hWnd,
  211. UINT uMsg,
  212. WPARAM wParam,
  213. LPARAM lParam)
  214. {
  215. return 0;
  216. }
  217. static
  218. WINCOMMCTRLAPI
  219. int
  220. WINAPI
  221. DSA_InsertItem(
  222. HDSA hdsa,
  223. int i,
  224. void *pitem
  225. )
  226. {
  227. return -1;
  228. }
  229. static
  230. WINCOMMCTRLAPI
  231. void
  232. WINAPI
  233. DSA_DestroyCallback(
  234. HDSA hdsa,
  235. PFNDSAENUMCALLBACK pfnCB,
  236. void *pData
  237. )
  238. {
  239. }
  240. static
  241. WINCOMMCTRLAPI
  242. BOOL
  243. WINAPI
  244. Str_SetPtrW(
  245. LPWSTR * ppsz,
  246. LPCWSTR psz
  247. )
  248. {
  249. return FALSE;
  250. }
  251. static
  252. WINCOMMCTRLAPI
  253. void*
  254. WINAPI
  255. DPA_DeletePtr(
  256. HDPA hdpa,
  257. int i
  258. )
  259. {
  260. return NULL;
  261. }
  262. static
  263. WINCOMMCTRLAPI
  264. int
  265. WINAPI
  266. DPA_InsertPtr(
  267. HDPA hdpa,
  268. int i,
  269. void *p)
  270. {
  271. return -1;
  272. }
  273. static
  274. WINCOMMCTRLAPI
  275. BOOL
  276. WINAPI
  277. DPA_DeleteAllPtrs(
  278. HDPA hdpa
  279. )
  280. {
  281. return FALSE;
  282. }
  283. static
  284. WINCOMMCTRLAPI
  285. INT_PTR
  286. WINAPI
  287. PropertySheetA(
  288. LPCPROPSHEETHEADERA psh
  289. )
  290. {
  291. return -1;
  292. }
  293. static
  294. WINCOMMCTRLAPI
  295. void*
  296. WINAPI
  297. DSA_GetItemPtr(
  298. HDSA hdsa,
  299. int i
  300. )
  301. {
  302. return NULL;
  303. }
  304. static
  305. WINCOMMCTRLAPI
  306. BOOL
  307. WINAPI
  308. DPA_Destroy(
  309. HDPA hdpa
  310. )
  311. {
  312. return FALSE;
  313. }
  314. static
  315. WINCOMMCTRLAPI
  316. HDPA
  317. WINAPI
  318. DPA_Create(
  319. int cItemGrow
  320. )
  321. {
  322. return NULL;
  323. }
  324. static
  325. BOOL
  326. WINAPI
  327. SetWindowSubclass(
  328. HWND hWnd,
  329. SUBCLASSPROC pfnSubclass,
  330. UINT_PTR uIdSubclass,
  331. DWORD_PTR dwRefData
  332. )
  333. {
  334. return FALSE;
  335. }
  336. static
  337. BOOL
  338. WINAPI
  339. RemoveWindowSubclass(
  340. HWND hWnd,
  341. SUBCLASSPROC pfnSubclass,
  342. UINT_PTR uIdSubclass
  343. )
  344. {
  345. return FALSE;
  346. }
  347. static
  348. WINCOMMCTRLAPI
  349. HDSA
  350. WINAPI
  351. DSA_Create(
  352. int cbItem,
  353. int cItemGrow
  354. )
  355. {
  356. return NULL;
  357. }
  358. static
  359. WINCOMMCTRLAPI
  360. BOOL
  361. WINAPI
  362. ImageList_DrawIndirect(
  363. IMAGELISTDRAWPARAMS* pimldp
  364. )
  365. {
  366. return FALSE;
  367. }
  368. static
  369. WINCOMMCTRLAPI
  370. void
  371. WINAPI
  372. DoReaderMode(
  373. PREADERMODEINFO prmi
  374. )
  375. {
  376. return;
  377. }
  378. //
  379. // !! WARNING !! The entries below must be in order by ORDINAL
  380. //
  381. DEFINE_ORDINAL_ENTRIES(comctl32)
  382. {
  383. DLOENTRY(16, CreateUpDownControl)
  384. DLOENTRY(17, InitCommonControls)
  385. DLOENTRY(236, Str_SetPtrW)
  386. DLOENTRY(320, DSA_Create)
  387. DLOENTRY(323, DSA_GetItemPtr)
  388. DLOENTRY(324, DSA_InsertItem)
  389. DLOENTRY(328, DPA_Create)
  390. DLOENTRY(329, DPA_Destroy)
  391. DLOENTRY(334, DPA_InsertPtr)
  392. DLOENTRY(336, DPA_DeletePtr)
  393. DLOENTRY(337, DPA_DeleteAllPtrs)
  394. DLOENTRY(383, DoReaderMode)
  395. DLOENTRY(388, DSA_DestroyCallback)
  396. DLOENTRY(410, SetWindowSubclass)
  397. DLOENTRY(412, RemoveWindowSubclass)
  398. DLOENTRY(413, DefSubclassProc)
  399. };
  400. DEFINE_ORDINAL_MAP(comctl32)
  401. //
  402. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  403. //
  404. DEFINE_PROCNAME_ENTRIES(comctl32)
  405. {
  406. DLPENTRY(CreatePropertySheetPageW)
  407. DLPENTRY(DestroyPropertySheetPage)
  408. DLPENTRY(ImageList_Add)
  409. DLPENTRY(ImageList_Create)
  410. DLPENTRY(ImageList_Destroy)
  411. DLPENTRY(ImageList_Draw)
  412. DLPENTRY(ImageList_DrawIndirect)
  413. DLPENTRY(ImageList_Duplicate)
  414. DLPENTRY(ImageList_GetIcon)
  415. DLPENTRY(ImageList_GetIconSize)
  416. DLPENTRY(ImageList_LoadImageA)
  417. DLPENTRY(ImageList_LoadImageW)
  418. DLPENTRY(ImageList_Remove)
  419. DLPENTRY(ImageList_ReplaceIcon)
  420. DLPENTRY(ImageList_SetBkColor)
  421. DLPENTRY(ImageList_SetOverlayImage)
  422. DLPENTRY(InitCommonControlsEx)
  423. DLPENTRY(PropertySheetA)
  424. DLPENTRY(PropertySheetW)
  425. };
  426. DEFINE_PROCNAME_MAP(comctl32)