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.

293 lines
3.9 KiB

  1. #include "windowspch.h"
  2. #pragma hdrstop
  3. static
  4. DWORD
  5. WINAPI
  6. GetObjectType(
  7. IN HGDIOBJ h
  8. )
  9. {
  10. SetLastError(ERROR_PROC_NOT_FOUND);
  11. return 0;
  12. }
  13. static
  14. BOOL
  15. WINAPI
  16. SetViewportOrgEx(
  17. IN HDC hDC,
  18. IN int x,
  19. IN int y,
  20. OUT LPPOINT lppt
  21. )
  22. {
  23. SetLastError(ERROR_PROC_NOT_FOUND);
  24. return FALSE;
  25. }
  26. static
  27. int
  28. WINAPI
  29. GetDeviceCaps(
  30. IN HDC hDC,
  31. IN int nIndex
  32. )
  33. {
  34. SetLastError(ERROR_PROC_NOT_FOUND);
  35. return 0;
  36. }
  37. static
  38. HGDIOBJ
  39. WINAPI
  40. GetStockObject(
  41. IN int nObj
  42. )
  43. {
  44. SetLastError(ERROR_PROC_NOT_FOUND);
  45. return NULL;
  46. }
  47. static
  48. BOOL
  49. WINAPI
  50. SetViewportExtEx(
  51. IN HDC hdc,
  52. IN int x,
  53. IN int y,
  54. OUT LPSIZE lpsize
  55. )
  56. {
  57. SetLastError(ERROR_PROC_NOT_FOUND);
  58. return FALSE;
  59. }
  60. static
  61. BOOL
  62. WINAPI
  63. SetWindowExtEx(
  64. IN HDC hdc,
  65. IN int x,
  66. IN int y,
  67. OUT LPSIZE lpsize
  68. )
  69. {
  70. SetLastError(ERROR_PROC_NOT_FOUND);
  71. return FALSE;
  72. }
  73. static
  74. int
  75. WINAPI
  76. SetMapMode(
  77. IN HDC hdc,
  78. IN int mode
  79. )
  80. {
  81. SetLastError(ERROR_PROC_NOT_FOUND);
  82. return 0;
  83. }
  84. static
  85. BOOL
  86. WINAPI
  87. DeleteDC(
  88. IN HDC hdc
  89. )
  90. {
  91. SetLastError(ERROR_PROC_NOT_FOUND);
  92. return FALSE;
  93. }
  94. static
  95. BOOL
  96. WINAPI
  97. DeleteObject(
  98. IN HGDIOBJ hobj
  99. )
  100. {
  101. SetLastError(ERROR_PROC_NOT_FOUND);
  102. return FALSE;
  103. }
  104. static
  105. BOOL
  106. WINAPI
  107. BitBlt(
  108. IN HDC hdc,
  109. IN int x,
  110. IN int y,
  111. IN int cx,
  112. IN int cy,
  113. IN HDC hdcSrc,
  114. IN int xs,
  115. IN int ys,
  116. IN DWORD flags
  117. )
  118. {
  119. SetLastError(ERROR_PROC_NOT_FOUND);
  120. return FALSE;
  121. }
  122. static
  123. HGDIOBJ
  124. WINAPI
  125. SelectObject(
  126. IN HDC hdc,
  127. IN HGDIOBJ hobj
  128. )
  129. {
  130. SetLastError(ERROR_PROC_NOT_FOUND);
  131. return NULL;
  132. }
  133. static
  134. HBITMAP
  135. WINAPI
  136. CreateCompatibleBitmap(
  137. IN HDC hdc,
  138. IN int x,
  139. IN int y
  140. )
  141. {
  142. SetLastError(ERROR_PROC_NOT_FOUND);
  143. return NULL;
  144. }
  145. static
  146. HDC
  147. WINAPI
  148. CreateCompatibleDC(
  149. IN HDC hdc
  150. )
  151. {
  152. SetLastError(ERROR_PROC_NOT_FOUND);
  153. return NULL;
  154. }
  155. static
  156. UINT
  157. WINAPI
  158. RealizePalette(
  159. IN HDC hdc
  160. )
  161. {
  162. SetLastError(ERROR_PROC_NOT_FOUND);
  163. return 0;
  164. }
  165. static
  166. HPALETTE
  167. WINAPI
  168. SelectPalette(
  169. IN HDC hdc,
  170. IN HPALETTE hpal,
  171. IN BOOL b
  172. )
  173. {
  174. SetLastError(ERROR_PROC_NOT_FOUND);
  175. return NULL;
  176. }
  177. static
  178. HPALETTE
  179. WINAPI
  180. CreatePalette(
  181. IN CONST LOGPALETTE * lplogp
  182. )
  183. {
  184. SetLastError(ERROR_PROC_NOT_FOUND);
  185. return NULL;
  186. }
  187. static
  188. UINT
  189. WINAPI
  190. GetSystemPaletteEntries(
  191. IN HDC hdc,
  192. IN UINT u1,
  193. IN UINT u2,
  194. OUT LPPALETTEENTRY lpentry
  195. )
  196. {
  197. SetLastError(ERROR_PROC_NOT_FOUND);
  198. return 0;
  199. }
  200. static
  201. UINT
  202. WINAPI
  203. SetSystemPaletteUse(
  204. IN HDC hdc,
  205. IN UINT u
  206. )
  207. {
  208. SetLastError(ERROR_PROC_NOT_FOUND);
  209. return 0;
  210. }
  211. static
  212. HBITMAP
  213. WINAPI
  214. CreateDIBSection(
  215. IN HDC hdc,
  216. IN CONST BITMAPINFO * lpbmpinfo,
  217. IN UINT u,
  218. OUT VOID ** ppv,
  219. IN HANDLE h,
  220. IN DWORD dw
  221. )
  222. {
  223. SetLastError(ERROR_PROC_NOT_FOUND);
  224. return NULL;
  225. }
  226. //
  227. // !! WARNING !! The entries below must be in alphabetical order,
  228. // and are CASE SENSITIVE (eg lower case comes last!)
  229. //
  230. DEFINE_PROCNAME_ENTRIES(gdi32)
  231. {
  232. DLPENTRY(BitBlt)
  233. DLPENTRY(CreateCompatibleBitmap)
  234. DLPENTRY(CreateCompatibleDC)
  235. DLPENTRY(CreateDIBSection)
  236. DLPENTRY(CreatePalette)
  237. DLPENTRY(DeleteDC)
  238. DLPENTRY(DeleteObject)
  239. DLPENTRY(GetDeviceCaps)
  240. DLPENTRY(GetObjectType)
  241. DLPENTRY(GetStockObject)
  242. DLPENTRY(GetSystemPaletteEntries)
  243. DLPENTRY(RealizePalette)
  244. DLPENTRY(SelectObject)
  245. DLPENTRY(SelectPalette)
  246. DLPENTRY(SetMapMode)
  247. DLPENTRY(SetSystemPaletteUse)
  248. DLPENTRY(SetViewportExtEx)
  249. DLPENTRY(SetViewportOrgEx)
  250. DLPENTRY(SetWindowExtEx)
  251. };
  252. DEFINE_PROCNAME_MAP(gdi32)