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.

1512 lines
29 KiB

  1. __foldwin32sstuff __foldwin32sstuff;
  2. foldstyleinitialization = true;
  3. enablemapdirect3216 = true;
  4. flatthunks = true;
  5. #include "types.thk"
  6. #include "gditypes.thk"
  7. /* _GetCharWidthA@16 converts wLastChar to nCnt for the thunk compiler's
  8. * benefit. We use the "push" macro to convert it back.
  9. */
  10. BOOL GetCharWidth( HDC hDC, UINT wFirstChar, UINT nCnt, LPINT lpBuffer) =
  11. BOOL GetCharWidthAWrapper( HDC hDC, UINT wFirstChar, UINT nCnt, LPINT lpBuffer)
  12. {
  13. nCnt = push;
  14. nCnt = countof lpBuffer;
  15. lpBuffer = output;
  16. faulterrorcode = 0;
  17. }
  18. BOOL GetCharWidthW( HDC hDC, UINT wFirstChar, UINT nCnt, LPINT lpBuffer) =
  19. BOOL GetCharWidthWWrapper( HDC hDC, UINT wFirstChar, UINT nCnt, LPINT lpBuffer)
  20. {
  21. nCnt = push;
  22. nCnt = countof lpBuffer;
  23. lpBuffer = output;
  24. faulterrorcode = 0;
  25. }
  26. /* _GetCharABCWidthsA@16 converts wLastChar to nCnt for the thunk compiler's
  27. * benefit. We use the "push" macro to convert it back.
  28. */
  29. BOOL GetCharABCWidths(HDC, UINT, UINT nCnt, LPABC lpabc) =
  30. BOOL GetCharABCWidthsAWrapper(HDC, UINT, UINT nCnt, LPABC lpabc)
  31. {
  32. nCnt = push;
  33. nCnt = countof lpabc;
  34. lpabc = output;
  35. faulterrorcode = 0;
  36. }
  37. /* CreateDIBSection needs an extra parameter in the thunk so the 16-bit
  38. * can distinguish whether it was called from Win32 or Win16. It returns
  39. * pointer as a linear address or sel:off accordingly.
  40. */
  41. HANDLE CDSInternal(HDC, LPSTR, UINT, LPSTR, DWORD, DWORD, BOOL) =
  42. HANDLE ThkCreateDIBSection(HDC, LPSTR, UINT, LPSTR, DWORD, DWORD, BOOL)
  43. {
  44. faulterrorcode = 0;
  45. }
  46. /* DrawEscape may need a buffer that is greater than 64K for lpszInData.
  47. * The 16-bit entry point will handle this by calling SetSelectorBase()
  48. * on the selector before calling the driver. It does not restore the
  49. * selector base on return, however.
  50. */
  51. LONG DrawEscape( HDC hdc, LONG nEscape, LONG cbInput, LPSTR lpszInData) =
  52. LONG DrawEscape( HDC hdc, LONG nEscape, LONG cbInput, LPSTR lpszInData)
  53. {
  54. faulterrorcode = -1;
  55. }
  56. BOOL Polyline( HDC, LPPOINT lpPoints, UINT nCount) =
  57. BOOL Polyline( HDC, LPPOINT lpPoints, UINT nCount)
  58. {
  59. nCount = countof lpPoints;
  60. faulterrorcode = 0;
  61. }
  62. BOOL PolylineTo( HDC, LPPOINT lpPoints, UINT nCount) =
  63. BOOL PolylineTo( HDC, LPPOINT lpPoints, UINT nCount)
  64. {
  65. nCount = countof lpPoints;
  66. faulterrorcode = 0;
  67. }
  68. BOOL Polygon( HDC, LPPOINT lpPoints, UINT nCount) =
  69. BOOL Polygon( HDC, LPPOINT lpPoints, UINT nCount)
  70. {
  71. nCount = countof lpPoints;
  72. faulterrorcode = 0;
  73. }
  74. HRGN CreatePolygonRgn( LPPOINT lpPoints, UINT nCount, INT) =
  75. HRGN CreatePolygonRgn( LPPOINT lpPoints, UINT nCount, INT)
  76. {
  77. nCount = countof lpPoints;
  78. faulterrorcode = 0;
  79. }
  80. BOOL PolyBezier(HDC, LPPOINT lpPoints, UINT nCount) =
  81. BOOL PolyBezier(HDC, LPPOINT lpPoints, UINT nCount)
  82. {
  83. nCount = countof lpPoints;
  84. faulterrorcode = 0;
  85. }
  86. BOOL PolyBezierTo(HDC, LPPOINT lpPoints, UINT nCount) =
  87. BOOL PolyBezierTo(HDC, LPPOINT lpPoints, UINT nCount)
  88. {
  89. nCount = countof lpPoints;
  90. faulterrorcode = 0;
  91. }
  92. /* Notes:
  93. * - ppt and pcnt have already been packed to shorts
  94. */
  95. BOOL PolyPolygon(HDC, DWORD *ppt, DWORD *pcnt, UINT nCount) =
  96. BOOL ThkPolyPolygon(HDC, DWORD *ppt, DWORD *pcnt, UINT nCount)
  97. {
  98. faulterrorcode = 0;
  99. }
  100. /* Notes:
  101. * - ppt and pcnt have already been packed to shorts
  102. */
  103. HRGN CreatePolyPolygonRgn(DWORD *ppt, DWORD *pcnt, UINT nPolys, UINT fillMode) =
  104. HRGN ThkCreatePolyPolygonRgn(DWORD *ppt, DWORD *pcnt, UINT nPolys, UINT fillMode)
  105. {
  106. faulterrorcode = 0;
  107. }
  108. /* Notes:
  109. * - _PolyPolyline@16 computes the sum of lpct and passes it in as nPt.
  110. * - nPt remains a DWORD because 16-bit wrapper uses it for scratch space.x
  111. */
  112. UINT PolyPolylineWrapper(DWORD nPt, HDC hdc, LPPOINT lppt, LPINT lpct, UINT nCt) =
  113. UINT PolyPolylineWrapper(DWORD nPt, HDC hdc, LPPOINT lppt, LPINT lpct, UINT nCt)
  114. {
  115. nCt = countof lpct;
  116. nPt = countof lppt;
  117. faulterrorcode = 0;
  118. }
  119. BOOL DPtoLP( HDC, LPPOINT lpPoints, UINT nCount) =
  120. BOOL DPtoLP( HDC, LPPOINT lpPoints, UINT nCount)
  121. {
  122. nCount = countof lpPoints;
  123. lpPoints = inout;
  124. faulterrorcode = 0;
  125. }
  126. BOOL LPtoDP( HDC, LPPOINT lpPoints, UINT nCount) =
  127. BOOL LPtoDP( HDC, LPPOINT lpPoints, UINT nCount)
  128. {
  129. nCount = countof lpPoints;
  130. lpPoints = inout;
  131. faulterrorcode = 0;
  132. }
  133. BOOL ExtTextOut( HDC hDC, INT X, INT Y, UINT fOptions,
  134. LPRECT lpRect, LPSTR lpString, UINT nCount, LPINT lpDx) =
  135. BOOL ExtTextOutA( HDC hDC, INT X, INT Y, UINT fOptions,
  136. LPRECT lpRect, LPSTR lpString, UINT nCount, LPINT lpDx)
  137. {
  138. nCount = countof lpDx;
  139. faulterrorcode = 0;
  140. }
  141. BOOL ExtTextOutW( HDC hDC, INT X, INT Y, UINT fOptions,
  142. LPRECT lpRect, LPSTR lpString, UINT nCount, LPINT lpDx) =
  143. BOOL ExtTextOutW( HDC hDC, INT X, INT Y, UINT fOptions,
  144. LPRECT lpRect, LPSTR lpString, UINT nCount, LPINT lpDx)
  145. {
  146. nCount = countof lpDx;
  147. faulterrorcode = 0;
  148. }
  149. HMF GetMetaFileEx( LPSTR, BOOL) =
  150. HMF GetMetaFileEx( LPSTR, BOOL)
  151. {
  152. faulterrorcode = 0;
  153. }
  154. HMF CopyMetaFile( HMF, LPSTR) =
  155. HMF CopyMetaFileA( HMF, LPSTR)
  156. {
  157. faulterrorcode = 0;
  158. }
  159. HMF CreateMetaFile( LPSTR) =
  160. HMF CreateMetaFileA( LPSTR)
  161. {
  162. faulterrorcode = 0;
  163. }
  164. HBRUSH CreateBrushIndirect( PLOGBRUSH) =
  165. HBRUSH ThkCreateBrushIndirect( PLOGBRUSH)
  166. {
  167. faulterrorcode = 0;
  168. }
  169. HRGN CreateRectRgnIndirect( LPRECT) =
  170. HRGN ThkCreateRectRgnIndirect( LPRECT)
  171. {
  172. faulterrorcode = 0;
  173. }
  174. HRGN CreateEllipticRgnIndirect( LPRECT) =
  175. HRGN ThkCreateEllipticRgnIndirect( LPRECT)
  176. {
  177. faulterrorcode = 0;
  178. }
  179. INT GetClipBox( HDC, LPRECT lpRect) =
  180. INT GetClipBox( HDC, LPRECT lpRect)
  181. {
  182. lpRect = output;
  183. faulterrorcode = 0;
  184. }
  185. HPALETTE CreateHalftonePalette(HDC) =
  186. HPALETTE CreateHalftonePalette(HDC)
  187. {
  188. faulterrorcode = 0;
  189. }
  190. HPALETTE CreatePalette( LPLOGPALETTE) =
  191. HPALETTE CreatePalette( LPLOGPALETTE)
  192. {
  193. faulterrorcode = 0;
  194. }
  195. /*
  196. * LPPALETTEENTRY does not need to be repacked.
  197. */
  198. void AnimatePalette( HPALETTE, WORD, WORD cEntries, LPPALETTEENTRY lppe) =
  199. voidtotrue void AnimatePalette( HPALETTE, DWORD, DWORD cEntries, LPPALETTEENTRY lppe)
  200. {
  201. faulterrorcode = 0;
  202. }
  203. /*
  204. * LPPALETTEENTRY does not need to be repacked.
  205. */
  206. WORD SetPaletteEntries( HPALETTE, WORD, WORD cEntries, LPPALETTEENTRY lppe) =
  207. DWORD SetPaletteEntries( HPALETTE, DWORD, DWORD cEntries, LPPALETTEENTRY lppe)
  208. {
  209. faulterrorcode = 0;
  210. }
  211. /*
  212. * LPPALETTEENTRY does not need to be repacked.
  213. */
  214. WORD GetPaletteEntries( HPALETTE, WORD, WORD cEntries, LPPALETTEENTRY lppe) =
  215. DWORD GetPaletteEntries( HPALETTE, DWORD, DWORD cEntries, LPPALETTEENTRY lppe)
  216. {
  217. faulterrorcode = 0;
  218. }
  219. /*
  220. * LPPALETTEENTRY does not need to be repacked.
  221. */
  222. WORD GetSystemPaletteEntries( HDC, WORD, WORD cEntries, LPPALETTEENTRY lppe) =
  223. DWORD GetSystemPaletteEntries( HDC, DWORD, DWORD cEntries, LPPALETTEENTRY lppe)
  224. {
  225. faulterrorcode = 0;
  226. }
  227. /* lpPoint actually is LPSIZE */
  228. BOOL GetBitmapDimensionEx( HBITMAP, LPPOINT lpPoint) =
  229. BOOL GetBitmapDimensionEx( HBITMAP, LPPOINT lpPoint)
  230. { lpPoint = output;
  231. faulterrorcode = 0;
  232. }
  233. /* lpPoint actually is LPSIZE */
  234. BOOL GetTextExtentPoint( HDC, LPSTR, INT, LPPOINT lpPoint) =
  235. BOOL GetTextExtentPointA( HDC, LPSTR, INT, LPPOINT lpPoint)
  236. {
  237. lpPoint = output;
  238. faulterrorcode = 0;
  239. }
  240. /* lpPoint actually is LPSIZE */
  241. BOOL GetTextExtentPoint( HDC, LPSTR, INT, LPPOINT lpPoint) =
  242. BOOL GetTextExtentPoint32A( HDC, LPSTR, INT, LPPOINT lpPoint)
  243. {
  244. lpPoint = output;
  245. faulterrorcode = 0;
  246. }
  247. /* lpPoint actually is LPSIZE */
  248. BOOL GetTextExtentPointW( HDC, LPSTR, INT, LPPOINT lpPoint) =
  249. BOOL GetTextExtentPointW( HDC, LPSTR, INT, LPPOINT lpPoint)
  250. {
  251. lpPoint = output;
  252. faulterrorcode = 0;
  253. }
  254. /* lpPoint actually is LPSIZE */
  255. BOOL GetTextExtentPointW( HDC, LPSTR, INT, LPPOINT lpPoint) =
  256. BOOL GetTextExtentPoint32W( HDC, LPSTR, INT, LPPOINT lpPoint)
  257. {
  258. lpPoint = output;
  259. faulterrorcode = 0;
  260. }
  261. BOOL OffsetViewportOrgEx( HDC, INT, INT, LPPOINT lpPoint) =
  262. BOOL OffsetViewportOrgEx( HDC, INT, INT, LPPOINT lpPoint)
  263. { lpPoint = output;
  264. faulterrorcode = 0;
  265. }
  266. BOOL OffsetWindowOrgEx( HDC, INT, INT, LPPOINT lpPoint) =
  267. BOOL OffsetWindowOrgEx( HDC, INT, INT, LPPOINT lpPoint)
  268. { lpPoint = output;
  269. faulterrorcode = 0;
  270. }
  271. BOOL ScaleViewportExtEx( HDC, INT, INT, INT, INT, LPPOINT lpPoint) =
  272. BOOL ScaleViewportExtEx( HDC, INT, INT, INT, INT, LPPOINT lpPoint)
  273. { lpPoint = output;
  274. faulterrorcode = 0;
  275. }
  276. BOOL ScaleWindowExtEx( HDC, INT, INT, INT, INT, LPPOINT lpPoint) =
  277. BOOL ScaleWindowExtEx( HDC, INT, INT, INT, INT, LPPOINT lpPoint)
  278. { lpPoint = output;
  279. faulterrorcode = 0;
  280. }
  281. /* lpPoint actually is LPSIZE */
  282. BOOL SetBitmapDimensionEx( HBITMAP, INT, INT, LPPOINT lpPoint) =
  283. BOOL SetBitmapDimensionEx( HBITMAP, INT, INT, LPPOINT lpPoint)
  284. { lpPoint = output;
  285. faulterrorcode = 0;
  286. }
  287. /* lpPoint actually is LPSIZE */
  288. BOOL SetViewportExtEx( HDC, INT, INT, LPPOINT lpPoint) =
  289. BOOL SetViewportExtEx( HDC, INT, INT, LPPOINT lpPoint)
  290. { lpPoint = output;
  291. faulterrorcode = 0;
  292. }
  293. /* lpPoint actually is LPSIZE */
  294. BOOL SetViewportOrgEx( HDC, INT, INT, LPPOINT lpPoint) =
  295. BOOL SetViewportOrgEx( HDC, INT, INT, LPPOINT lpPoint)
  296. { lpPoint = output;
  297. faulterrorcode = 0;
  298. }
  299. /* lpPoint actually is LPSIZE */
  300. BOOL SetWindowExtEx( HDC, INT, INT, LPPOINT lpPoint) =
  301. BOOL SetWindowExtEx( HDC, INT, INT, LPPOINT lpPoint)
  302. { lpPoint = output;
  303. faulterrorcode = 0;
  304. }
  305. BOOL SetWindowOrgEx( HDC, INT, INT, LPPOINT lpPoint) =
  306. BOOL SetWindowOrgEx( HDC, INT, INT, LPPOINT lpPoint)
  307. { lpPoint = output;
  308. faulterrorcode = 0;
  309. }
  310. BOOL MoveToEx( HDC, INT, INT, LPPOINT lpPoint) =
  311. BOOL MoveToEx( HDC, INT, INT, LPPOINT lpPoint)
  312. { lpPoint = output;
  313. faulterrorcode = 0;
  314. }
  315. BOOL AbortPath(HDC) =
  316. BOOL AbortPath(HDC)
  317. {
  318. faulterrorcode = 0;
  319. }
  320. BOOL BeginPath(HDC) =
  321. BOOL BeginPath(HDC)
  322. {
  323. faulterrorcode = 0;
  324. }
  325. BOOL CloseFigure(HDC) =
  326. BOOL CloseFigure(HDC)
  327. {
  328. faulterrorcode = 0;
  329. }
  330. BOOL EndPath(HDC) =
  331. BOOL EndPath(HDC)
  332. {
  333. faulterrorcode = 0;
  334. }
  335. BOOL FillPath(HDC) =
  336. BOOL FillPath(HDC)
  337. {
  338. faulterrorcode = 0;
  339. }
  340. BOOL FlattenPath(HDC) =
  341. BOOL FlattenPath(HDC)
  342. {
  343. faulterrorcode = 0;
  344. }
  345. BOOL PathToRegion(HDC) =
  346. BOOL PathToRegion(HDC)
  347. {
  348. faulterrorcode = 0;
  349. }
  350. BOOL SelectClipPath(HDC, INT) =
  351. BOOL SelectClipPath(HDC, INT)
  352. {
  353. faulterrorcode = 0;
  354. }
  355. BOOL StrokeAndFillPath(HDC) =
  356. BOOL StrokeAndFillPath(HDC)
  357. {
  358. faulterrorcode = 0;
  359. }
  360. BOOL StrokePath(HDC) =
  361. BOOL StrokePath(HDC)
  362. {
  363. faulterrorcode = 0;
  364. }
  365. BOOL WidenPath(HDC) =
  366. BOOL WidenPath(HDC)
  367. {
  368. faulterrorcode = 0;
  369. }
  370. INT GetArcDirection(HDC) =
  371. INT GetArcDirection(HDC)
  372. {
  373. faulterrorcode = 0;
  374. }
  375. INT SetArcDirection(HDC, INT) =
  376. INT SetArcDirection(HDC, INT)
  377. {
  378. faulterrorcode = 0;
  379. }
  380. BOOL GetMiterLimit(HDC, LPDWORD) =
  381. BOOL GetMiterLimit(HDC, LPDWORD)
  382. {
  383. faulterrorcode = 0;
  384. }
  385. BOOL SetMiterLimit(HDC, DWORD, LPDWORD) =
  386. BOOL SetMiterLimit(HDC, DWORD, LPDWORD)
  387. {
  388. faulterrorcode = 0;
  389. }
  390. BOOL ExtCreatePen(DWORD, DWORD, LPNTLOGBRUSH, DWORD, DWORD) =
  391. BOOL ExtCreatePen(DWORD, DWORD, LPNTLOGBRUSH, DWORD, DWORD)
  392. {
  393. faulterrorcode = 0;
  394. }
  395. INT ExtSelectClipRgn(HDC, HRGN, INT) =
  396. INT ExtSelectClipRgn(HDC, HRGN, INT)
  397. {
  398. faulterrorcode = 0;
  399. }
  400. INT SetMetaRgn(HDC) =
  401. INT SetMetaRgn(HDC)
  402. {
  403. faulterrorcode = 0;
  404. }
  405. HEMF CloseEnhMetaFile(HDC) =
  406. HEMF CloseEnhMetaFile(HDC)
  407. {
  408. faulterrorcode = 0;
  409. }
  410. BOOL MF_GdiCommentWindowsMetaFile(HDC, DWORD, LPSTR) =
  411. BOOL MF_GdiCommentWindowsMetaFile(HDC, DWORD, LPSTR)
  412. {
  413. faulterrorcode = 0;
  414. }
  415. HEMF CopyEnhMetaFile(HEMF, LPFILENAME) =
  416. HEMF CopyEnhMetaFileA(HEMF, LPFILENAME)
  417. {
  418. faulterrorcode = 0;
  419. }
  420. /* LPSTR is a description string which may exceed 64k. We'll truncate
  421. * it on the 16-bit side so as not to fault. !!!
  422. */
  423. HDC CreateEnhMetaFile(HDC, LPFILENAME, LPRECTL, LPSTR) =
  424. HDC CreateEnhMetaFileA(HDC, LPFILENAME, LPRECTL, LPSTR)
  425. {
  426. faulterrorcode = 0;
  427. }
  428. BOOL DeleteEnhMetaFile(HEMF) =
  429. BOOL DeleteEnhMetaFile(HEMF)
  430. {
  431. faulterrorcode = 0;
  432. }
  433. HEMF GetEnhMetaFile(LPFILENAME) =
  434. HEMF GetEnhMetaFileA(LPFILENAME)
  435. {
  436. faulterrorcode = 0;
  437. }
  438. ULONG GetEnhMetaFileHeader(HEMF, ULONG, LPENHMETAHEADER) =
  439. ULONG GetEnhMetaFileHeader(HEMF, ULONG, LPENHMETAHEADER)
  440. {
  441. faulterrorcode = 0;
  442. }
  443. UINT GetDIBColorTable(HDC, UINT, UINT, LPRGBQUAD) =
  444. UINT GetDIBColorTable(HDC, UINT, UINT, LPRGBQUAD)
  445. {
  446. faulterrorcode = 0;
  447. }
  448. UINT SetDIBColorTable(HDC, UINT, UINT, LPRGBQUAD) =
  449. UINT SetDIBColorTable(HDC, UINT, UINT, LPRGBQUAD)
  450. {
  451. faulterrorcode = 0;
  452. }
  453. HANDLE SetObjectOwner(HANDLE, hinstance) =
  454. HANDLE ThkSetObjectOwner(HANDLE, hinstance)
  455. {
  456. faulterrorcode = 0;
  457. }
  458. void WalkGDIHeaps(WORD, WORD) =
  459. void ThkWalkGDIHeaps(WORD, WORD)
  460. {
  461. faulterrorcode = 0;
  462. }
  463. INT SetICMMode(HDC, INT) =
  464. INT SetICMMode(HDC, INT)
  465. {
  466. faulterrorcode = 0;
  467. }
  468. BOOL CheckColorsInGamut(HDC,LPSTR,LPSTR,DWORD) =
  469. BOOL CheckColorsInGamut(HDC,LPSTR,LPSTR,DWORD)
  470. {
  471. faulterrorcode = 0;
  472. }
  473. HANDLE GetColorSpace(HDC) =
  474. HANDLE GetColorSpace(HDC)
  475. {
  476. faulterrorcode = 0;
  477. }
  478. BOOL GetLogColorSpace(HCOLORSPACE,LPVOID,WORD) =
  479. BOOL GetLogColorSpaceA(HCOLORSPACE,LPVOID,DWORD)
  480. {
  481. faulterrorcode = 0;
  482. }
  483. HCOLORSPACE CreateColorSpace(LPLOGCOLORSPACE) =
  484. HCOLORSPACE CreateColorSpaceA(LPLOGCOLORSPACE)
  485. {
  486. faulterrorcode = 0;
  487. }
  488. BOOL SetColorSpace(HDC,HCOLORSPACE) =
  489. BOOL SetColorSpace(HDC,HCOLORSPACE)
  490. {
  491. faulterrorcode = 0;
  492. }
  493. BOOL DeleteColorSpace(HCOLORSPACE) =
  494. BOOL DeleteColorSpace(HCOLORSPACE)
  495. {
  496. faulterrorcode = 0;
  497. }
  498. BOOL ColorMatchToTarget(HDC,HDC,WORD) =
  499. BOOL ColorMatchToTarget(HDC,HDC,DWORD)
  500. {
  501. faulterrorcode = 0;
  502. }
  503. BOOL GetICMProfile(HDC,LPINT,LPSTR) =
  504. BOOL GetICMProfileA(HDC,LPINT,LPSTR)
  505. {
  506. faulterrorcode = 0;
  507. }
  508. BOOL SetICMProfile(HDC,LPSTR) =
  509. BOOL SetICMProfileA(HDC,LPSTR)
  510. {
  511. faulterrorcode = 0;
  512. }
  513. BOOL GetDeviceGammaRamp(HDC,LPVOID) =
  514. BOOL GetDeviceGammaRamp(HDC,LPVOID)
  515. {
  516. faulterrorcode = 0;
  517. }
  518. BOOL SetDeviceGammaRamp(HDC,LPVOID) =
  519. BOOL SetDeviceGammaRamp(HDC,LPVOID)
  520. {
  521. faulterrorcode = 0;
  522. }
  523. INT ColorCorrectPalette(HDC, HPALETTE, WORD, WORD) =
  524. INT ColorCorrectPalette(HDC, HPALETTE, DWORD, DWORD)
  525. {
  526. faulterrorcode = 0;
  527. }
  528. BOOL UnrealizeObject( HBRUSH) =
  529. BOOL UnrealizeObject( HBRUSH)
  530. {
  531. faulterrorcode = 0;
  532. }
  533. HDC CreateCompatibleDC( HDC) =
  534. HDC CreateCompatibleDC( HDC)
  535. {
  536. faulterrorcode = 0;
  537. }
  538. BOOL DeleteDC( HDC hDC) =
  539. BOOL DeleteDC( HDC hDC)
  540. {
  541. faulterrorcode = 0;
  542. }
  543. INT SaveDC( HDC) =
  544. INT SaveDC( HDC)
  545. {
  546. faulterrorcode = 0;
  547. }
  548. BOOL RestoreDC( HDC, INT) =
  549. BOOL RestoreDC( HDC, INT)
  550. {
  551. faulterrorcode = 0;
  552. }
  553. BOOL LineTo( HDC, INT, INT) =
  554. BOOL LineTo( HDC, INT, INT)
  555. {
  556. faulterrorcode = 0;
  557. }
  558. BOOL Rectangle( HDC, INT, INT, INT, INT) =
  559. BOOL Rectangle( HDC, INT, INT, INT, INT)
  560. {
  561. faulterrorcode = 0;
  562. }
  563. BOOL RoundRect( HDC, INT, INT, INT, INT, INT, INT) =
  564. BOOL RoundRect( HDC, INT, INT, INT, INT, INT, INT)
  565. {
  566. faulterrorcode = 0;
  567. }
  568. BOOL Ellipse( HDC, INT, INT, INT, INT) =
  569. BOOL Ellipse( HDC, INT, INT, INT, INT)
  570. {
  571. faulterrorcode = 0;
  572. }
  573. BOOL Arc( HDC, INT, INT, INT, INT, INT, INT, INT, INT) =
  574. BOOL Arc( HDC, INT, INT, INT, INT, INT, INT, INT, INT)
  575. {
  576. faulterrorcode = 0;
  577. }
  578. BOOL Chord( HDC, INT, INT, INT, INT, INT, INT, INT, INT) =
  579. BOOL Chord( HDC, INT, INT, INT, INT, INT, INT, INT, INT)
  580. {
  581. faulterrorcode = 0;
  582. }
  583. BOOL Pie( HDC, INT, INT, INT, INT, INT, INT, INT, INT) =
  584. BOOL Pie( HDC, INT, INT, INT, INT, INT, INT, INT, INT)
  585. {
  586. faulterrorcode = 0;
  587. }
  588. BOOL PatBlt( HDC, INT, INT, INT, INT, DWORD) =
  589. BOOL PatBlt( HDC, INT, INT, INT, INT, DWORD)
  590. {
  591. faulterrorcode = 0;
  592. }
  593. BOOL BitBlt( HDC, INT, INT, INT, INT, HDC, INT, INT, DWORD) =
  594. BOOL BitBlt( HDC, INT, INT, INT, INT, HDC, INT, INT, DWORD)
  595. {
  596. faulterrorcode = 0;
  597. }
  598. BOOL StretchBlt( HDC, INT, INT, INT, INT, HDC, INT, INT, INT, INT, DWORD) =
  599. BOOL StretchBlt( HDC, INT, INT, INT, INT, HDC, INT, INT, INT, INT, DWORD)
  600. {
  601. faulterrorcode = 0;
  602. }
  603. DWORD SetPixel( HDC, INT, INT, DWORD) =
  604. DWORD SetPixel( HDC, INT, INT, DWORD)
  605. {
  606. faulterrorcode = -1;
  607. }
  608. DWORD GetPixel( HDC, INT, INT) =
  609. DWORD GetPixel( HDC, INT, INT)
  610. {
  611. faulterrorcode = -1;
  612. }
  613. BOOL ExtFloodFill( HDC, INT, INT, DWORD, WORD) =
  614. BOOL ExtFloodFill( HDC, INT, INT, DWORD, DWORD)
  615. {
  616. faulterrorcode = 0;
  617. }
  618. BOOL FloodFill( HDC, INT, INT, DWORD) =
  619. BOOL FloodFill( HDC, INT, INT, DWORD)
  620. {
  621. faulterrorcode = 0;
  622. }
  623. HPEN CreatePen( INT, INT, DWORD) =
  624. HPEN CreatePen( INT, INT, DWORD)
  625. {
  626. faulterrorcode = 0;
  627. }
  628. HBRUSH CreateSolidBrush( DWORD) =
  629. HBRUSH CreateSolidBrush( DWORD)
  630. { faulterrorcode = 0;
  631. }
  632. HBRUSH CreatePatternBrush( HBITMAP) =
  633. HBRUSH CreatePatternBrush( HBITMAP)
  634. { faulterrorcode = 0;
  635. }
  636. HBITMAP CreateCompatibleBitmap( HDC, INT, INT) =
  637. HBITMAP CreateCompatibleBitmap( HDC, INT, INT)
  638. { faulterrorcode = 0;
  639. }
  640. INT SelectClipRgn( HDC, HRGN) =
  641. INT SelectClipRgn( HDC, HRGN)
  642. {
  643. faulterrorcode = 0;
  644. }
  645. HRGN CreateRectRgn( INT, INT, INT, INT) =
  646. HRGN ThkCreateRectRgn( INT, INT, INT, INT)
  647. {
  648. faulterrorcode = 0;
  649. }
  650. void SetRectRgn( HRGN, INT, INT, INT, INT) =
  651. void ThkSetRectRgn( HRGN, INT, INT, INT, INT)
  652. {
  653. faulterrorcode = 0;
  654. }
  655. HRGN CreateEllipticRgn( INT, INT, INT, INT) =
  656. HRGN ThkCreateEllipticRgn( INT, INT, INT, INT)
  657. {
  658. faulterrorcode = 0;
  659. }
  660. HRGN CreateRoundRectRgn( INT, INT, INT, INT, INT, INT) =
  661. HRGN ThkCreateRoundRectRgn( INT, INT, INT, INT, INT, INT)
  662. {
  663. faulterrorcode = 0;
  664. }
  665. BOOL DeleteObject( HGDI hObj) =
  666. BOOL DeleteObject( HGDI hObj)
  667. {
  668. faulterrorcode = 0;
  669. }
  670. HGDI SelectObject( HDC, HGDI) =
  671. HGDI SelectObject( HDC, HGDI)
  672. {
  673. faulterrorcode = 0;
  674. }
  675. DWORD SetBkColor( HDC, DWORD) =
  676. DWORD ThkSetBkColor( HDC, DWORD)
  677. {
  678. faulterrorcode = -1;
  679. }
  680. INT SetBkMode( HDC, INT) =
  681. INT SetBkMode( HDC, INT)
  682. {
  683. faulterrorcode = 0;
  684. }
  685. DWORD SetTextColor( HDC, DWORD) =
  686. DWORD ThkSetTextColor( HDC, DWORD)
  687. {
  688. faulterrorcode = -1;
  689. }
  690. WORD SetTextAlign( HDC, WORD) =
  691. DWORD SetTextAlign( HDC, DWORD)
  692. { faulterrorcode = -1;
  693. }
  694. INT GetDeviceCaps( HDC, INT) =
  695. INT ThkGetDeviceCaps( HDC, INT)
  696. {
  697. faulterrorcode = 0;
  698. }
  699. DWORD SetMapperFlags( HDC, DWORD) =
  700. DWORD SetMapperFlags( HDC, DWORD)
  701. { faulterrorcode = -1;
  702. }
  703. DWORD GetNearestColor( HDC, DWORD) =
  704. DWORD GetNearestColor( HDC, DWORD)
  705. { faulterrorcode = -1;
  706. }
  707. INT SetROP2( HDC, INT) =
  708. INT SetROP2( HDC, INT)
  709. {
  710. faulterrorcode = 0;
  711. }
  712. INT SetStretchBltMode( HDC, INT) =
  713. INT SetStretchBltMode( HDC, INT)
  714. {
  715. faulterrorcode = 0;
  716. }
  717. INT SetPolyFillMode( HDC, INT) =
  718. INT SetPolyFillMode( HDC, INT)
  719. {
  720. faulterrorcode = 0;
  721. }
  722. INT SetMapMode( HDC, INT) =
  723. INT SetMapMode( HDC, INT)
  724. {
  725. faulterrorcode = 0;
  726. }
  727. INT IntersectClipRect32( HDC, INT, INT, INT, INT) =
  728. INT IntersectClipRect( HDC, INT, INT, INT, INT)
  729. {
  730. faulterrorcode = 0;
  731. }
  732. INT OffsetClipRgn( HDC, INT, INT) =
  733. INT OffsetClipRgn( HDC, INT, INT)
  734. {
  735. faulterrorcode = 0;
  736. }
  737. INT ExcludeClipRect32( HDC, INT, INT, INT, INT) =
  738. INT ExcludeClipRect( HDC, INT, INT, INT, INT)
  739. {
  740. faulterrorcode = 0;
  741. }
  742. BOOL PtVisible( HDC, INT, INT) =
  743. BOOL PtVisible( HDC, INT, INT)
  744. {
  745. faulterrorcode = 0;
  746. }
  747. INT CombineRgn( HRGN, HRGN, HRGN, INT) =
  748. INT ThkCombineRgn( HRGN, HRGN, HRGN, INT)
  749. {
  750. faulterrorcode = 0;
  751. }
  752. BOOL EqualRgn( HRGN, HRGN) =
  753. BOOL EqualRgn( HRGN, HRGN)
  754. {
  755. faulterrorcode = 0;
  756. }
  757. INT OffsetRgn( HRGN, INT, INT) =
  758. INT OffsetRgn( HRGN, INT, INT)
  759. {
  760. faulterrorcode = 0;
  761. }
  762. INT SetTextJustification( HDC, INT, INT) =
  763. INT SetTextJustification( HDC, INT, INT)
  764. {
  765. faulterrorcode = 0;
  766. }
  767. INT SetTextCharacterExtra( HDC, INT) =
  768. INT SetTextCharacterExtra( HDC, INT)
  769. {
  770. faulterrorcode = 0;
  771. }
  772. INT GetTextCharacterExtra( HDC) =
  773. INT GetTextCharacterExtra( HDC)
  774. {
  775. faulterrorcode = 0;
  776. }
  777. BOOL PlayMetaFile( HDC, HMF) =
  778. BOOL PlayMetaFile( HDC, HMF)
  779. {
  780. faulterrorcode = 0;
  781. }
  782. HMF CloseMetaFile( HDC) =
  783. HMF CloseMetaFile( HDC)
  784. {
  785. faulterrorcode = 0;
  786. }
  787. INT UpdateColors( HDC hdc) =
  788. voidtotrue INT UpdateColors( HDC hdc)
  789. {
  790. faulterrorcode = 0;
  791. }
  792. WORD GetNearestPaletteIndex( HPALETTE, DWORD) =
  793. DWORD GetNearestPaletteIndex( HPALETTE, DWORD)
  794. {
  795. faulterrorcode = -1;
  796. }
  797. BOOL ResizePalette( HPALETTE, WORD) =
  798. BOOL ResizePalette( HPALETTE, DWORD)
  799. {
  800. faulterrorcode = 0;
  801. }
  802. WORD GetSystemPaletteUse( HDC) =
  803. DWORD GetSystemPaletteUse( HDC)
  804. {
  805. faulterrorcode = 0;
  806. }
  807. WORD SetSystemPaletteUse( HDC, WORD) =
  808. DWORD SetSystemPaletteUse( HDC, DWORD)
  809. {
  810. faulterrorcode = 0;
  811. }
  812. HBRUSH ThkCreateDIBPatternBrushPt( LPSTR, WORD, DWORD) =
  813. HBRUSH ThkCreateDIBPatternBrushPt( LPSTR, DWORD, DWORD)
  814. {
  815. faulterrorcode = 0;
  816. }
  817. BOOL TextOut( HDC, INT, INT, LPSTR, INT) =
  818. BOOL TextOutA( HDC, INT, INT, LPSTR, INT)
  819. {
  820. faulterrorcode = 0;
  821. }
  822. BOOL TextOutW( HDC, INT, INT, LPSTR, INT) =
  823. BOOL TextOutW( HDC, INT, INT, LPSTR, INT)
  824. {
  825. faulterrorcode = 0;
  826. }
  827. INT GetTextFace( HDC, INT, LPSTR) =
  828. INT GetTextFaceA( HDC, INT, LPSTR)
  829. {
  830. faulterrorcode = 0;
  831. }
  832. INT GetTextCharset(HDC)=
  833. INT GetTextCharset(HDC)
  834. {
  835. faulterrorcode = -1;
  836. }
  837. INT GetTextCharsetAndHff(HDC, DWORD *) =
  838. INT GetTextCharsetAndHff(HDC, DWORD *)
  839. {
  840. faulterrorcode = -1;
  841. }
  842. HDC CreateDC( LPSTR lpDriverName, LPSTR lpDeviceName,
  843. LPSTR lpOutput, LPSTR lpInitData) =
  844. HDC ThkCreateDC(LPSTR lpDriverName, LPSTR lpDeviceName,
  845. LPSTR lpOutput, LPSTR lpInitData)
  846. {
  847. faulterrorcode = 0;
  848. }
  849. HDC CreateIC( LPSTR lpDriverName, LPSTR lpDeviceName,
  850. LPSTR lpOutput, LPSTR lpInitData) =
  851. HDC ThkCreateIC(LPSTR lpDriverName, LPSTR lpDeviceName,
  852. LPSTR lpOutput, LPSTR lpInitData)
  853. {
  854. faulterrorcode = 0;
  855. }
  856. HDC ResetDC( HDC, LPSTR lpDevMode) =
  857. HDC ResetDCA(HDC, LPSTR lpDevMode)
  858. {
  859. faulterrorcode = 0;
  860. }
  861. HFONT CreateFont( int nHeight, int nWidth, int nEscapement,
  862. int nOrientation, int nWeight,
  863. BYTE cItalic, BYTE cUnderline, BYTE cStrikeOut, BYTE cCharSet,
  864. BYTE cOutputPrecision, BYTE cClipPrecision,
  865. BYTE cQuality, BYTE cPitchAndFamily, LPSTR lpFacename) =
  866. HFONT CreateFontA( int nHeight, int nWidth, int nEscapement,
  867. int nOrientation, int nWeight,
  868. DWORD cItalic, DWORD cUnderline, DWORD cStrikeOut, DWORD cCharSet,
  869. DWORD cOutputPrecision, DWORD cClipPrecision,
  870. DWORD cQuality, DWORD cPitchAndFamily, LPSTR lpFacename)
  871. {
  872. faulterrorcode = 0;
  873. }
  874. /*
  875. * Win32/DOS:
  876. * If hi word null, module handle, so GetModuleFileName.
  877. * Would be nice if GMFN would tell us how big the name is.
  878. *
  879. * Win32s:
  880. * AddFontModule just calls here, so passifhinull is still necessary.
  881. */
  882. int AddFontResource( LPSTR lpFilename) =
  883. int AddFontResourceA( LPSTR lpFilename)
  884. {
  885. lpFilename = passifhinull;
  886. faulterrorcode = -1;
  887. }
  888. HFONT CreateFontIndirect( LPLOGFONT lpLogFont) =
  889. HFONT CreateFontIndirectA( LPLOGFONT lpLogFont)
  890. {
  891. faulterrorcode = 0;
  892. }
  893. HBRUSH CreateHatchBrush( UINT nIndex, DWORD crColor) =
  894. HBRUSH CreateHatchBrush( UINT nIndex, DWORD crColor)
  895. {
  896. faulterrorcode = 0;
  897. }
  898. HPEN CreatePenIndirect( LPLOGPEN lpLogPen) =
  899. HPEN CreatePenIndirect( LPLOGPEN lpLogPen)
  900. {
  901. faulterrorcode = 0;
  902. }
  903. BOOL InvertRgn( HDC hDC, HRGN hRgn) =
  904. BOOL ThkInvertRgn( HDC hDC, HRGN hRgn)
  905. {
  906. faulterrorcode = 0;
  907. }
  908. BOOL PaintRgn( HDC hDC, HRGN hRgn) =
  909. BOOL ThkPaintRgn( HDC hDC, HRGN hRgn)
  910. {
  911. faulterrorcode = 0;
  912. }
  913. BOOL PtInRegion( HRGN, INT x, INT y) =
  914. BOOL PtInRegion( HRGN, INT x, INT y)
  915. {
  916. faulterrorcode = 0;
  917. }
  918. BOOL RectVisible( HDC, LPRECT) =
  919. BOOL ThkRectVisible( HDC, LPRECT)
  920. {
  921. faulterrorcode = 0;
  922. }
  923. BOOL FillRgn( HDC hDC, HRGN hRgn, HBRUSH hBrush) =
  924. BOOL ThkFillRgn( HDC hDC, HRGN hRgn, HBRUSH hBrush)
  925. {
  926. faulterrorcode = 0;
  927. }
  928. BOOL FrameRgn( HDC hDC, HRGN hRgn, HBRUSH hBrush, int nWidth, int nHeight) =
  929. BOOL ThkFrameRgn( HDC hDC, HRGN hRgn, HBRUSH hBrush, int nWidth, int nHeight)
  930. {
  931. faulterrorcode = 0;
  932. }
  933. BOOL RectInRegion( HRGN hRegion, LPRECT lpRect) =
  934. BOOL RectInRegion( HRGN hRegion, LPRECT lpRect)
  935. {
  936. faulterrorcode = 0;
  937. }
  938. HRGN ExtCreateRegion(LPXFORM lpxfm, DWORD cby, LPBYTE lpby) =
  939. HRGN ExtCreateRegion(LPXFORM lpxfm, DWORD cby, LPBYTE lpby)
  940. {
  941. faulterrorcode = 0;
  942. }
  943. /*
  944. * Win32/DOS:
  945. * If hi word null, module handle, so RemoveFontModule (Krn handle
  946. * mapping).
  947. *
  948. * Win32s:
  949. * RemoveFontModule just calls here, so passifhinull is still necessary.
  950. */
  951. int RemoveFontResource( LPSTR lpFilename) =
  952. int RemoveFontResourceA( LPSTR lpFilename)
  953. {
  954. lpFilename = passifhinull;
  955. faulterrorcode = 0;
  956. }
  957. int AbortDoc(HDC hdc) =
  958. int AbortDoc(HDC hdc)
  959. {
  960. faulterrorcode = -1;
  961. }
  962. int EndDoc(HDC hDC) =
  963. int EndDoc(HDC hDC)
  964. {
  965. faulterrorcode = 0;
  966. }
  967. int EndPage(HDC hDC) =
  968. int EndPage(HDC hDC)
  969. {
  970. faulterrorcode = -1;
  971. }
  972. int StartPage(HDC hDC) =
  973. int StartPage(HDC hDC)
  974. {
  975. faulterrorcode = -1;
  976. }
  977. BOOL QueryAbort(HDC hdc, int Reserved) =
  978. BOOL QueryAbort(HDC hdc, int Reserved)
  979. {
  980. faulterrorcode = 0;
  981. }
  982. BOOL CreateScalableFontResource(UINT, LPSTR, LPSTR, LPSTR) =
  983. BOOL CreateScalableFontResourceA(UINT, LPSTR, LPSTR, LPSTR)
  984. {
  985. faulterrorcode = 0;
  986. }
  987. BOOL GetRasterizerCaps(LPSTR, int) =
  988. BOOL GetRasterizerCaps(LPSTR, int)
  989. {
  990. faulterrorcode = 0;
  991. }
  992. UINT GetBoundsRect(HDC, LPRECT lprc, UINT) =
  993. UINT GetBoundsRect(HDC, LPRECT lprc, UINT)
  994. { lprc = output;
  995. faulterrorcode = 0;
  996. }
  997. UINT SetBoundsRect(HDC, LPRECT, UINT) =
  998. UINT SetBoundsRect(HDC, LPRECT, UINT)
  999. {
  1000. faulterrorcode = 0;
  1001. }
  1002. DWORD GetCharacterPlacement( HDC hdc, LPSTR lpString, INT nCount, INT nMaxExt,
  1003. LPGCP_RESULTS lpGCP, DWORD dwFlags) =
  1004. DWORD ThkGetCharacterPlacement( HDC hdc, LPSTR lpString, INT nCount, INT nMaxExt,
  1005. LPGCP_RESULTS lpGCP, DWORD dwFlags)
  1006. {
  1007. lpGCP = inout;
  1008. faulterrorcode = 0;
  1009. }
  1010. DWORD GetFontLanguageInfo(HDC hdc) =
  1011. DWORD GetFontLanguageInfo(HDC hdc)
  1012. {
  1013. faulterrorcode = -1 ;
  1014. }
  1015. /*ifdef_FE_APIS
  1016. BOOL EnableEUDC(BOOL) =
  1017. BOOL EnableEUDC(BOOL)
  1018. {
  1019. faulterrorcode = 0;
  1020. }
  1021. endif_FE_APIS*/
  1022. /*****************************************************************************
  1023. * PRIVATE APIs. This section provides thunks for GDI16 helper routines. *
  1024. *****************************************************************************/
  1025. short PlayBack(HDC hDC, HANDLE hemf, BOOL bDeSpool) =
  1026. short PlayBack(HDC hDC, HANDLE hemf, BOOL bDeSpool)
  1027. {
  1028. faulterrorcode = 0;
  1029. }
  1030. BOOL SetPrinterInfo(HDC hDC, short wID, DWORD id) =
  1031. BOOL SetPrinterInfo(HDC hDC, short wID, DWORD id)
  1032. {
  1033. faulterrorcode = 0;
  1034. }
  1035. /* EnumFonts32Helper is used by EnumFontsA to do font enumeration
  1036. * without requiring the Win16Lock to be taken during callback.
  1037. */
  1038. int EnumFonts32Helper(HDC, LPSTR, UINT, LPSTR, UINT) =
  1039. int EnumFonts32Helper(HDC, LPSTR, UINT, LPSTR, UINT)
  1040. {
  1041. faulterrorcode = 0;
  1042. }
  1043. /* GDI32GlobalFree performs a GlobalUnfix/GlobalFree on a memory handle
  1044. * provided by a helper routine. This basically saves one thunk roundtrip.
  1045. */
  1046. void GDI32GlobalFree(HANDLE) =
  1047. void GDI32GlobalFree(HANDLE)
  1048. {
  1049. faulterrorcode = 0;
  1050. }
  1051. /* CallDevInstall16 call 16 bit printer driver DevInstall function
  1052. * Private thunk for 32 bit spooler
  1053. */
  1054. int GDI_CallDevInstall16(DWORD, HWND, LPSTR, LPSTR, LPSTR) =
  1055. int GDI_CallDevInstall16(DWORD, HWND, LPSTR, LPSTR, LPSTR)
  1056. {
  1057. faulterrorcode = 0;
  1058. }
  1059. /* CallExtDeviceModePropSheet16 call 16 bit printer driver ExtDeviceModePropSheet function
  1060. * Private thunk for 32 bit spooler
  1061. */
  1062. int GDI_CallExtDeviceModePropSheet16(HWND, LPSTR, LPSTR, LPSTR) =
  1063. int GDI_CallExtDeviceModePropSheet16(HWND, LPSTR, LPSTR, LPSTR)
  1064. {
  1065. faulterrorcode = 0;
  1066. }
  1067. /* CallExtDeviceMode16 call 16 bit printer driver ExtDeviceMode function
  1068. * Private thunk for 32 bit spooler
  1069. */
  1070. int GDI_CallExtDeviceMode16(HWND, LPSTR, LPSTR, LPSTR, LPSTR, LPSTR, WORD) =
  1071. int GDI_CallExtDeviceMode16(HWND, LPSTR, LPSTR, LPSTR, LPSTR, LPSTR, WORD)
  1072. {
  1073. faulterrorcode = 0;
  1074. }
  1075. /* CallAdvancedSetupDialog16 call 16 bit printer driver ExtDeviceMode function
  1076. * Private thunk for 32 bit spooler
  1077. */
  1078. int GDI_CallAdvancedSetupDialog16(HWND, LPSTR, LPSTR, LPSTR) =
  1079. int GDI_CallAdvancedSetupDialog16(HWND, LPSTR, LPSTR, LPSTR)
  1080. {
  1081. faulterrorcode = 0;
  1082. }
  1083. /* For NT compatability, we need to export DeviceCapabilities
  1084. * from winspool.lib.
  1085. */
  1086. DWORD
  1087. DeviceCapabilities(
  1088. LPSTR pDevice,
  1089. LPSTR pPort,
  1090. WORD fwCapability,
  1091. LPSTR pOutput,
  1092. LPSTR pDevMode
  1093. ) =
  1094. DWORD
  1095. GDI_CallDeviceCapabilities16(
  1096. LPSTR pDevice,
  1097. LPSTR pPort,
  1098. WORD fwCapability,
  1099. LPSTR pOutput,
  1100. LPSTR pDevMode
  1101. )
  1102. {
  1103. faulterrorcode = 0;
  1104. }
  1105. /* The following two thunks are private thunks used by the Win32 API
  1106. * GetWinMetaFileBits() to synchronize the entry and the exit of the
  1107. * potentially long EMF conversion process. They pass a structure
  1108. * which does not have to be repacked.
  1109. */
  1110. BOOL bThkGetWMFBitsEntry(LPSTR) =
  1111. BOOL bThkGetWMFBitsEntry(LPSTR)
  1112. {
  1113. faulterrorcode = 0;
  1114. }
  1115. void vThkGetWMFBitsExit(LPSTR) =
  1116. void vThkGetWMFBitsExit(LPSTR)
  1117. {
  1118. faulterrorcode = 0;
  1119. }
  1120. /* The following two thunks are private thunks used by EnumMetaFile. */
  1121. BOOL InitEnumMF32(HDC, HANDLE, LPSTR) =
  1122. BOOL InitEnumMF32(HDC, HANDLE, LPSTR)
  1123. {
  1124. faulterrorcode = 0;
  1125. }
  1126. BOOL TermEnumMF32(HDC, HANDLE, LPSTR, LPSTR) =
  1127. BOOL TermEnumMF32(HDC, HANDLE, LPSTR, LPSTR)
  1128. {
  1129. faulterrorcode = 0;
  1130. }
  1131. /* The following two thunks are private thunks used by EnumEnhMetaFile. */
  1132. BOOL bInternalInitPlayEMF(HDC, HANDLE, LPSTR, LPSTR) =
  1133. BOOL bInternalInitPlayEMF(HDC, HANDLE, LPSTR, LPSTR)
  1134. {
  1135. faulterrorcode = 0;
  1136. }
  1137. void vInternalTermPlayEMF(HDC, HANDLE, LPSTR) =
  1138. void vInternalTermPlayEMF(HDC, HANDLE, LPSTR)
  1139. {
  1140. faulterrorcode = 0;
  1141. }
  1142. HRGN GetRandomRgn(HDC, HRGN, INT) =
  1143. HRGN ThkGetRandomRgn(HDC, HRGN, INT)
  1144. {
  1145. faulterrorcode = 0;
  1146. }
  1147. BOOL FarGetDeviceInfoFromHDC(HDC, DWORD, LPVOID, DWORD) =
  1148. BOOL FarGetDeviceInfoFromHDC(HDC, DWORD, LPVOID, DWORD)
  1149. {
  1150. }
  1151. BOOL SetMagicColors(HDC, DWORD, WORD) =
  1152. BOOL SetMagicColors(HDC, DWORD, DWORD)
  1153. {
  1154. }