Windows NT 4.0 source code leak
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.

7659 lines
148 KiB

4 years ago
  1. /*++
  2. File: Zgdi.c
  3. Profiling dll for GDI32.dll
  4. NOTE: This file is generated by WRAPPER code generator
  5. --*/
  6. #include <nt.h>
  7. #include <ntrtl.h>
  8. #include <nturtl.h>
  9. #include "windows.h"
  10. #include "drivinit.h"
  11. #include "zwingdi.h"
  12. #include "api32prf.h" //Data Structures
  13. extern BOOLEAN fInitDone;
  14. int ZAbortDoc (HDC Arg1)
  15. {
  16. int RetVal;
  17. SHORT sTimerHandle;
  18. ULONG ulElapsedTime;
  19. if (fInitDone == FALSE) {
  20. ApfInitDll();
  21. }
  22. TimerOpen(&sTimerHandle,MICROSECONDS);
  23. TimerInit(sTimerHandle);
  24. //
  25. // Call the api
  26. //
  27. RetVal = AbortDoc(Arg1);
  28. //
  29. // Get the elapsed time
  30. //
  31. ulElapsedTime = TimerRead(sTimerHandle);
  32. ApfRecordInfo(I_AbortDoc, ulElapsedTime);
  33. TimerClose(sTimerHandle);
  34. return(RetVal);
  35. }
  36. BOOL ZAbortPath (HDC Arg1)
  37. {
  38. BOOL RetVal;
  39. SHORT sTimerHandle;
  40. ULONG ulElapsedTime;
  41. if (fInitDone == FALSE) {
  42. ApfInitDll();
  43. }
  44. TimerOpen(&sTimerHandle,MICROSECONDS);
  45. TimerInit(sTimerHandle);
  46. //
  47. // Call the api
  48. //
  49. RetVal = AbortPath(Arg1);
  50. //
  51. // Get the elapsed time
  52. //
  53. ulElapsedTime = TimerRead(sTimerHandle);
  54. ApfRecordInfo(I_AbortPath, ulElapsedTime);
  55. TimerClose(sTimerHandle);
  56. return(RetVal);
  57. }
  58. int ZAddFontResourceA (LPCSTR Arg1)
  59. {
  60. int RetVal;
  61. SHORT sTimerHandle;
  62. ULONG ulElapsedTime;
  63. if (fInitDone == FALSE) {
  64. ApfInitDll();
  65. }
  66. TimerOpen(&sTimerHandle,MICROSECONDS);
  67. TimerInit(sTimerHandle);
  68. //
  69. // Call the api
  70. //
  71. RetVal = AddFontResourceA(Arg1);
  72. //
  73. // Get the elapsed time
  74. //
  75. ulElapsedTime = TimerRead(sTimerHandle);
  76. ApfRecordInfo(I_AddFontResourceA, ulElapsedTime);
  77. TimerClose(sTimerHandle);
  78. return(RetVal);
  79. }
  80. int ZAddFontResourceW (LPCWSTR Arg1)
  81. {
  82. int RetVal;
  83. SHORT sTimerHandle;
  84. ULONG ulElapsedTime;
  85. if (fInitDone == FALSE) {
  86. ApfInitDll();
  87. }
  88. TimerOpen(&sTimerHandle,MICROSECONDS);
  89. TimerInit(sTimerHandle);
  90. //
  91. // Call the api
  92. //
  93. RetVal = AddFontResourceW(Arg1);
  94. //
  95. // Get the elapsed time
  96. //
  97. ulElapsedTime = TimerRead(sTimerHandle);
  98. ApfRecordInfo(I_AddFontResourceW, ulElapsedTime);
  99. TimerClose(sTimerHandle);
  100. return(RetVal);
  101. }
  102. BOOL ZAngleArc (HDC Arg1,int Arg2,int Arg3,DWORD Arg4,FLOAT Arg5,FLOAT Arg6)
  103. {
  104. BOOL RetVal;
  105. SHORT sTimerHandle;
  106. ULONG ulElapsedTime;
  107. if (fInitDone == FALSE) {
  108. ApfInitDll();
  109. }
  110. TimerOpen(&sTimerHandle,MICROSECONDS);
  111. TimerInit(sTimerHandle);
  112. //
  113. // Call the api
  114. //
  115. RetVal = AngleArc(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  116. //
  117. // Get the elapsed time
  118. //
  119. ulElapsedTime = TimerRead(sTimerHandle);
  120. ApfRecordInfo(I_AngleArc, ulElapsedTime);
  121. TimerClose(sTimerHandle);
  122. return(RetVal);
  123. }
  124. BOOL ZAnimatePalette (HPALETTE Arg1,UINT Arg2,UINT Arg3,const PALETTEENTRY* Arg4)
  125. {
  126. BOOL RetVal;
  127. SHORT sTimerHandle;
  128. ULONG ulElapsedTime;
  129. if (fInitDone == FALSE) {
  130. ApfInitDll();
  131. }
  132. TimerOpen(&sTimerHandle,MICROSECONDS);
  133. TimerInit(sTimerHandle);
  134. //
  135. // Call the api
  136. //
  137. RetVal = AnimatePalette(Arg1,Arg2,Arg3,Arg4);
  138. //
  139. // Get the elapsed time
  140. //
  141. ulElapsedTime = TimerRead(sTimerHandle);
  142. ApfRecordInfo(I_AnimatePalette, ulElapsedTime);
  143. TimerClose(sTimerHandle);
  144. return(RetVal);
  145. }
  146. BOOL ZArc (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,int Arg6,int Arg7,int Arg8,int Arg9)
  147. {
  148. BOOL RetVal;
  149. SHORT sTimerHandle;
  150. ULONG ulElapsedTime;
  151. if (fInitDone == FALSE) {
  152. ApfInitDll();
  153. }
  154. TimerOpen(&sTimerHandle,MICROSECONDS);
  155. TimerInit(sTimerHandle);
  156. //
  157. // Call the api
  158. //
  159. RetVal = Arc(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9);
  160. //
  161. // Get the elapsed time
  162. //
  163. ulElapsedTime = TimerRead(sTimerHandle);
  164. ApfRecordInfo(I_Arc, ulElapsedTime);
  165. TimerClose(sTimerHandle);
  166. return(RetVal);
  167. }
  168. BOOL ZArcTo (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,int Arg6,int Arg7,int Arg8,int Arg9)
  169. {
  170. BOOL RetVal;
  171. SHORT sTimerHandle;
  172. ULONG ulElapsedTime;
  173. if (fInitDone == FALSE) {
  174. ApfInitDll();
  175. }
  176. TimerOpen(&sTimerHandle,MICROSECONDS);
  177. TimerInit(sTimerHandle);
  178. //
  179. // Call the api
  180. //
  181. RetVal = ArcTo(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9);
  182. //
  183. // Get the elapsed time
  184. //
  185. ulElapsedTime = TimerRead(sTimerHandle);
  186. ApfRecordInfo(I_ArcTo, ulElapsedTime);
  187. TimerClose(sTimerHandle);
  188. return(RetVal);
  189. }
  190. BOOL ZBeginPath (HDC Arg1)
  191. {
  192. BOOL RetVal;
  193. SHORT sTimerHandle;
  194. ULONG ulElapsedTime;
  195. if (fInitDone == FALSE) {
  196. ApfInitDll();
  197. }
  198. TimerOpen(&sTimerHandle,MICROSECONDS);
  199. TimerInit(sTimerHandle);
  200. //
  201. // Call the api
  202. //
  203. RetVal = BeginPath(Arg1);
  204. //
  205. // Get the elapsed time
  206. //
  207. ulElapsedTime = TimerRead(sTimerHandle);
  208. ApfRecordInfo(I_BeginPath, ulElapsedTime);
  209. TimerClose(sTimerHandle);
  210. return(RetVal);
  211. }
  212. BOOL ZBitBlt (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,HDC Arg6,int Arg7,int Arg8,DWORD Arg9)
  213. {
  214. BOOL RetVal;
  215. SHORT sTimerHandle;
  216. ULONG ulElapsedTime;
  217. if (fInitDone == FALSE) {
  218. ApfInitDll();
  219. }
  220. TimerOpen(&sTimerHandle,MICROSECONDS);
  221. TimerInit(sTimerHandle);
  222. //
  223. // Call the api
  224. //
  225. RetVal = BitBlt(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9);
  226. //
  227. // Get the elapsed time
  228. //
  229. ulElapsedTime = TimerRead(sTimerHandle);
  230. ApfRecordInfo(I_BitBlt, ulElapsedTime);
  231. TimerClose(sTimerHandle);
  232. return(RetVal);
  233. }
  234. BOOL ZCancelDC (HDC Arg1)
  235. {
  236. BOOL RetVal;
  237. SHORT sTimerHandle;
  238. ULONG ulElapsedTime;
  239. if (fInitDone == FALSE) {
  240. ApfInitDll();
  241. }
  242. TimerOpen(&sTimerHandle,MICROSECONDS);
  243. TimerInit(sTimerHandle);
  244. //
  245. // Call the api
  246. //
  247. RetVal = CancelDC(Arg1);
  248. //
  249. // Get the elapsed time
  250. //
  251. ulElapsedTime = TimerRead(sTimerHandle);
  252. ApfRecordInfo(I_CancelDC, ulElapsedTime);
  253. TimerClose(sTimerHandle);
  254. return(RetVal);
  255. }
  256. int ZChoosePixelFormat(HDC Arg1, PIXELFORMATDESCRIPTOR *Arg2 )
  257. {
  258. int RetVal ;
  259. SHORT sTimerHandle;
  260. ULONG ulElapsedTime;
  261. if (fInitDone == FALSE) {
  262. ApfInitDll();
  263. }
  264. TimerOpen(&sTimerHandle,MICROSECONDS);
  265. TimerInit(sTimerHandle);
  266. //
  267. // Call the api
  268. //
  269. RetVal = ChoosePixelFormat( Arg1, Arg2 ) ;
  270. //
  271. // Get the elapsed time
  272. //
  273. ulElapsedTime = TimerRead(sTimerHandle);
  274. ApfRecordInfo(I_ChoosePixelFormat, ulElapsedTime);
  275. TimerClose(sTimerHandle);
  276. return(RetVal);
  277. }
  278. BOOL ZChord (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,int Arg6,int Arg7,int Arg8,int Arg9)
  279. {
  280. BOOL RetVal;
  281. SHORT sTimerHandle;
  282. ULONG ulElapsedTime;
  283. if (fInitDone == FALSE) {
  284. ApfInitDll();
  285. }
  286. TimerOpen(&sTimerHandle,MICROSECONDS);
  287. TimerInit(sTimerHandle);
  288. //
  289. // Call the api
  290. //
  291. RetVal = Chord(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9);
  292. //
  293. // Get the elapsed time
  294. //
  295. ulElapsedTime = TimerRead(sTimerHandle);
  296. ApfRecordInfo(I_Chord, ulElapsedTime);
  297. TimerClose(sTimerHandle);
  298. return(RetVal);
  299. }
  300. HENHMETAFILE ZCloseEnhMetaFile (HDC Arg1)
  301. {
  302. HENHMETAFILE RetVal;
  303. SHORT sTimerHandle;
  304. ULONG ulElapsedTime;
  305. if (fInitDone == FALSE) {
  306. ApfInitDll();
  307. }
  308. TimerOpen(&sTimerHandle,MICROSECONDS);
  309. TimerInit(sTimerHandle);
  310. //
  311. // Call the api
  312. //
  313. RetVal = CloseEnhMetaFile(Arg1);
  314. //
  315. // Get the elapsed time
  316. //
  317. ulElapsedTime = TimerRead(sTimerHandle);
  318. ApfRecordInfo(I_CloseEnhMetaFile, ulElapsedTime);
  319. TimerClose(sTimerHandle);
  320. return(RetVal);
  321. }
  322. BOOL ZCloseFigure (HDC Arg1)
  323. {
  324. BOOL RetVal;
  325. SHORT sTimerHandle;
  326. ULONG ulElapsedTime;
  327. if (fInitDone == FALSE) {
  328. ApfInitDll();
  329. }
  330. TimerOpen(&sTimerHandle,MICROSECONDS);
  331. TimerInit(sTimerHandle);
  332. //
  333. // Call the api
  334. //
  335. RetVal = CloseFigure(Arg1);
  336. //
  337. // Get the elapsed time
  338. //
  339. ulElapsedTime = TimerRead(sTimerHandle);
  340. ApfRecordInfo(I_CloseFigure, ulElapsedTime);
  341. TimerClose(sTimerHandle);
  342. return(RetVal);
  343. }
  344. HMETAFILE ZCloseMetaFile (HDC Arg1)
  345. {
  346. HMETAFILE RetVal;
  347. SHORT sTimerHandle;
  348. ULONG ulElapsedTime;
  349. if (fInitDone == FALSE) {
  350. ApfInitDll();
  351. }
  352. TimerOpen(&sTimerHandle,MICROSECONDS);
  353. TimerInit(sTimerHandle);
  354. //
  355. // Call the api
  356. //
  357. RetVal = CloseMetaFile(Arg1);
  358. //
  359. // Get the elapsed time
  360. //
  361. ulElapsedTime = TimerRead(sTimerHandle);
  362. ApfRecordInfo(I_CloseMetaFile, ulElapsedTime);
  363. TimerClose(sTimerHandle);
  364. return(RetVal);
  365. }
  366. int ZCombineRgn (HRGN Arg1,HRGN Arg2,HRGN Arg3,int Arg4)
  367. {
  368. int RetVal;
  369. SHORT sTimerHandle;
  370. ULONG ulElapsedTime;
  371. if (fInitDone == FALSE) {
  372. ApfInitDll();
  373. }
  374. TimerOpen(&sTimerHandle,MICROSECONDS);
  375. TimerInit(sTimerHandle);
  376. //
  377. // Call the api
  378. //
  379. RetVal = CombineRgn(Arg1,Arg2,Arg3,Arg4);
  380. //
  381. // Get the elapsed time
  382. //
  383. ulElapsedTime = TimerRead(sTimerHandle);
  384. ApfRecordInfo(I_CombineRgn, ulElapsedTime);
  385. TimerClose(sTimerHandle);
  386. return(RetVal);
  387. }
  388. BOOL ZCombineTransform (LPXFORM Arg1,const XFORM* Arg2,const XFORM* Arg3)
  389. {
  390. BOOL RetVal;
  391. SHORT sTimerHandle;
  392. ULONG ulElapsedTime;
  393. if (fInitDone == FALSE) {
  394. ApfInitDll();
  395. }
  396. TimerOpen(&sTimerHandle,MICROSECONDS);
  397. TimerInit(sTimerHandle);
  398. //
  399. // Call the api
  400. //
  401. RetVal = CombineTransform(Arg1,Arg2,Arg3);
  402. //
  403. // Get the elapsed time
  404. //
  405. ulElapsedTime = TimerRead(sTimerHandle);
  406. ApfRecordInfo(I_CombineTransform, ulElapsedTime);
  407. TimerClose(sTimerHandle);
  408. return(RetVal);
  409. }
  410. HENHMETAFILE ZCopyEnhMetaFileA (HENHMETAFILE Arg1,LPCSTR Arg2)
  411. {
  412. HENHMETAFILE RetVal;
  413. SHORT sTimerHandle;
  414. ULONG ulElapsedTime;
  415. if (fInitDone == FALSE) {
  416. ApfInitDll();
  417. }
  418. TimerOpen(&sTimerHandle,MICROSECONDS);
  419. TimerInit(sTimerHandle);
  420. //
  421. // Call the api
  422. //
  423. RetVal = CopyEnhMetaFileA(Arg1,Arg2);
  424. //
  425. // Get the elapsed time
  426. //
  427. ulElapsedTime = TimerRead(sTimerHandle);
  428. ApfRecordInfo(I_CopyEnhMetaFileA, ulElapsedTime);
  429. TimerClose(sTimerHandle);
  430. return(RetVal);
  431. }
  432. HENHMETAFILE ZCopyEnhMetaFileW (HENHMETAFILE Arg1,LPCWSTR Arg2)
  433. {
  434. HENHMETAFILE RetVal;
  435. SHORT sTimerHandle;
  436. ULONG ulElapsedTime;
  437. if (fInitDone == FALSE) {
  438. ApfInitDll();
  439. }
  440. TimerOpen(&sTimerHandle,MICROSECONDS);
  441. TimerInit(sTimerHandle);
  442. //
  443. // Call the api
  444. //
  445. RetVal = CopyEnhMetaFileW(Arg1,Arg2);
  446. //
  447. // Get the elapsed time
  448. //
  449. ulElapsedTime = TimerRead(sTimerHandle);
  450. ApfRecordInfo(I_CopyEnhMetaFileW, ulElapsedTime);
  451. TimerClose(sTimerHandle);
  452. return(RetVal);
  453. }
  454. HMETAFILE ZCopyMetaFileA (HMETAFILE Arg1,LPCSTR Arg2)
  455. {
  456. HMETAFILE RetVal;
  457. SHORT sTimerHandle;
  458. ULONG ulElapsedTime;
  459. if (fInitDone == FALSE) {
  460. ApfInitDll();
  461. }
  462. TimerOpen(&sTimerHandle,MICROSECONDS);
  463. TimerInit(sTimerHandle);
  464. //
  465. // Call the api
  466. //
  467. RetVal = CopyMetaFileA(Arg1,Arg2);
  468. //
  469. // Get the elapsed time
  470. //
  471. ulElapsedTime = TimerRead(sTimerHandle);
  472. ApfRecordInfo(I_CopyMetaFileA, ulElapsedTime);
  473. TimerClose(sTimerHandle);
  474. return(RetVal);
  475. }
  476. HMETAFILE ZCopyMetaFileW (HMETAFILE Arg1,LPCWSTR Arg2)
  477. {
  478. HMETAFILE RetVal;
  479. SHORT sTimerHandle;
  480. ULONG ulElapsedTime;
  481. if (fInitDone == FALSE) {
  482. ApfInitDll();
  483. }
  484. TimerOpen(&sTimerHandle,MICROSECONDS);
  485. TimerInit(sTimerHandle);
  486. //
  487. // Call the api
  488. //
  489. RetVal = CopyMetaFileW(Arg1,Arg2);
  490. //
  491. // Get the elapsed time
  492. //
  493. ulElapsedTime = TimerRead(sTimerHandle);
  494. ApfRecordInfo(I_CopyMetaFileW, ulElapsedTime);
  495. TimerClose(sTimerHandle);
  496. return(RetVal);
  497. }
  498. HBITMAP ZCreateBitmap (int Arg1,int Arg2,UINT Arg3,UINT Arg4,const void* Arg5)
  499. {
  500. HBITMAP RetVal;
  501. SHORT sTimerHandle;
  502. ULONG ulElapsedTime;
  503. if (fInitDone == FALSE) {
  504. ApfInitDll();
  505. }
  506. TimerOpen(&sTimerHandle,MICROSECONDS);
  507. TimerInit(sTimerHandle);
  508. //
  509. // Call the api
  510. //
  511. RetVal = CreateBitmap(Arg1,Arg2,Arg3,Arg4,Arg5);
  512. //
  513. // Get the elapsed time
  514. //
  515. ulElapsedTime = TimerRead(sTimerHandle);
  516. ApfRecordInfo(I_CreateBitmap, ulElapsedTime);
  517. TimerClose(sTimerHandle);
  518. return(RetVal);
  519. }
  520. HBITMAP ZCreateBitmapIndirect (const BITMAP* Arg1)
  521. {
  522. HBITMAP RetVal;
  523. SHORT sTimerHandle;
  524. ULONG ulElapsedTime;
  525. if (fInitDone == FALSE) {
  526. ApfInitDll();
  527. }
  528. TimerOpen(&sTimerHandle,MICROSECONDS);
  529. TimerInit(sTimerHandle);
  530. //
  531. // Call the api
  532. //
  533. RetVal = CreateBitmapIndirect(Arg1);
  534. //
  535. // Get the elapsed time
  536. //
  537. ulElapsedTime = TimerRead(sTimerHandle);
  538. ApfRecordInfo(I_CreateBitmapIndirect, ulElapsedTime);
  539. TimerClose(sTimerHandle);
  540. return(RetVal);
  541. }
  542. HBRUSH ZCreateBrushIndirect (const LOGBRUSH* Arg1)
  543. {
  544. HBRUSH RetVal;
  545. SHORT sTimerHandle;
  546. ULONG ulElapsedTime;
  547. if (fInitDone == FALSE) {
  548. ApfInitDll();
  549. }
  550. TimerOpen(&sTimerHandle,MICROSECONDS);
  551. TimerInit(sTimerHandle);
  552. //
  553. // Call the api
  554. //
  555. RetVal = CreateBrushIndirect(Arg1);
  556. //
  557. // Get the elapsed time
  558. //
  559. ulElapsedTime = TimerRead(sTimerHandle);
  560. ApfRecordInfo(I_CreateBrushIndirect, ulElapsedTime);
  561. TimerClose(sTimerHandle);
  562. return(RetVal);
  563. }
  564. HBITMAP ZCreateCompatibleBitmap (HDC Arg1,int Arg2,int Arg3)
  565. {
  566. HBITMAP RetVal;
  567. SHORT sTimerHandle;
  568. ULONG ulElapsedTime;
  569. if (fInitDone == FALSE) {
  570. ApfInitDll();
  571. }
  572. TimerOpen(&sTimerHandle,MICROSECONDS);
  573. TimerInit(sTimerHandle);
  574. //
  575. // Call the api
  576. //
  577. RetVal = CreateCompatibleBitmap(Arg1,Arg2,Arg3);
  578. //
  579. // Get the elapsed time
  580. //
  581. ulElapsedTime = TimerRead(sTimerHandle);
  582. ApfRecordInfo(I_CreateCompatibleBitmap, ulElapsedTime);
  583. TimerClose(sTimerHandle);
  584. return(RetVal);
  585. }
  586. HDC ZCreateCompatibleDC (HDC Arg1)
  587. {
  588. HDC RetVal;
  589. SHORT sTimerHandle;
  590. ULONG ulElapsedTime;
  591. if (fInitDone == FALSE) {
  592. ApfInitDll();
  593. }
  594. TimerOpen(&sTimerHandle,MICROSECONDS);
  595. TimerInit(sTimerHandle);
  596. //
  597. // Call the api
  598. //
  599. RetVal = CreateCompatibleDC(Arg1);
  600. //
  601. // Get the elapsed time
  602. //
  603. ulElapsedTime = TimerRead(sTimerHandle);
  604. ApfRecordInfo(I_CreateCompatibleDC, ulElapsedTime);
  605. TimerClose(sTimerHandle);
  606. return(RetVal);
  607. }
  608. HDC ZCreateDCA (LPCSTR Arg1,LPCSTR Arg2,LPCSTR Arg3,const DEVMODEA* Arg4)
  609. {
  610. HDC RetVal;
  611. SHORT sTimerHandle;
  612. ULONG ulElapsedTime;
  613. if (fInitDone == FALSE) {
  614. ApfInitDll();
  615. }
  616. TimerOpen(&sTimerHandle,MICROSECONDS);
  617. TimerInit(sTimerHandle);
  618. //
  619. // Call the api
  620. //
  621. RetVal = CreateDCA(Arg1,Arg2,Arg3,Arg4);
  622. //
  623. // Get the elapsed time
  624. //
  625. ulElapsedTime = TimerRead(sTimerHandle);
  626. ApfRecordInfo(I_CreateDCA, ulElapsedTime);
  627. TimerClose(sTimerHandle);
  628. return(RetVal);
  629. }
  630. HDC ZCreateDCW (LPCWSTR Arg1,LPCWSTR Arg2,LPCWSTR Arg3,const DEVMODEW* Arg4)
  631. {
  632. HDC RetVal;
  633. SHORT sTimerHandle;
  634. ULONG ulElapsedTime;
  635. if (fInitDone == FALSE) {
  636. ApfInitDll();
  637. }
  638. TimerOpen(&sTimerHandle,MICROSECONDS);
  639. TimerInit(sTimerHandle);
  640. //
  641. // Call the api
  642. //
  643. RetVal = CreateDCW(Arg1,Arg2,Arg3,Arg4);
  644. //
  645. // Get the elapsed time
  646. //
  647. ulElapsedTime = TimerRead(sTimerHandle);
  648. ApfRecordInfo(I_CreateDCW, ulElapsedTime);
  649. TimerClose(sTimerHandle);
  650. return(RetVal);
  651. }
  652. HBRUSH ZCreateDIBPatternBrush (HGLOBAL Arg1,UINT Arg2)
  653. {
  654. HBRUSH RetVal;
  655. SHORT sTimerHandle;
  656. ULONG ulElapsedTime;
  657. if (fInitDone == FALSE) {
  658. ApfInitDll();
  659. }
  660. TimerOpen(&sTimerHandle,MICROSECONDS);
  661. TimerInit(sTimerHandle);
  662. //
  663. // Call the api
  664. //
  665. RetVal = CreateDIBPatternBrush(Arg1,Arg2);
  666. //
  667. // Get the elapsed time
  668. //
  669. ulElapsedTime = TimerRead(sTimerHandle);
  670. ApfRecordInfo(I_CreateDIBPatternBrush, ulElapsedTime);
  671. TimerClose(sTimerHandle);
  672. return(RetVal);
  673. }
  674. HBRUSH ZCreateDIBPatternBrushPt (const void* Arg1,UINT Arg2)
  675. {
  676. HBRUSH RetVal;
  677. SHORT sTimerHandle;
  678. ULONG ulElapsedTime;
  679. if (fInitDone == FALSE) {
  680. ApfInitDll();
  681. }
  682. TimerOpen(&sTimerHandle,MICROSECONDS);
  683. TimerInit(sTimerHandle);
  684. //
  685. // Call the api
  686. //
  687. RetVal = CreateDIBPatternBrushPt(Arg1,Arg2);
  688. //
  689. // Get the elapsed time
  690. //
  691. ulElapsedTime = TimerRead(sTimerHandle);
  692. ApfRecordInfo(I_CreateDIBPatternBrushPt, ulElapsedTime);
  693. TimerClose(sTimerHandle);
  694. return(RetVal);
  695. }
  696. HBITMAP ZCreateDIBitmap (HDC Arg1,const BITMAPINFOHEADER* Arg2,DWORD Arg3,const void* Arg4,const BITMAPINFO* Arg5,UINT Arg6)
  697. {
  698. HBITMAP RetVal;
  699. SHORT sTimerHandle;
  700. ULONG ulElapsedTime;
  701. if (fInitDone == FALSE) {
  702. ApfInitDll();
  703. }
  704. TimerOpen(&sTimerHandle,MICROSECONDS);
  705. TimerInit(sTimerHandle);
  706. //
  707. // Call the api
  708. //
  709. RetVal = CreateDIBitmap(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  710. //
  711. // Get the elapsed time
  712. //
  713. ulElapsedTime = TimerRead(sTimerHandle);
  714. ApfRecordInfo(I_CreateDIBitmap, ulElapsedTime);
  715. TimerClose(sTimerHandle);
  716. return(RetVal);
  717. }
  718. HBITMAP ZCreateDIBSection(HDC Arg1, CONST BITMAPINFO * Arg2, UINT Arg3, VOID ** Arg4, HANDLE Arg5, DWORD Arg6)
  719. {
  720. HBITMAP RetVal;
  721. SHORT sTimerHandle;
  722. ULONG ulElapsedTime;
  723. if (fInitDone == FALSE) {
  724. ApfInitDll();
  725. }
  726. TimerOpen(&sTimerHandle,MICROSECONDS);
  727. TimerInit(sTimerHandle);
  728. //
  729. // Call the api
  730. //
  731. RetVal = CreateDIBSection(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  732. //
  733. // Get the elapsed time
  734. //
  735. ulElapsedTime = TimerRead(sTimerHandle);
  736. ApfRecordInfo(I_CreateDIBSection, ulElapsedTime);
  737. TimerClose(sTimerHandle);
  738. return(RetVal);
  739. }
  740. HBITMAP ZCreateDiscardableBitmap (HDC Arg1,int Arg2,int Arg3)
  741. {
  742. HBITMAP RetVal;
  743. SHORT sTimerHandle;
  744. ULONG ulElapsedTime;
  745. if (fInitDone == FALSE) {
  746. ApfInitDll();
  747. }
  748. TimerOpen(&sTimerHandle,MICROSECONDS);
  749. TimerInit(sTimerHandle);
  750. //
  751. // Call the api
  752. //
  753. RetVal = CreateDiscardableBitmap(Arg1,Arg2,Arg3);
  754. //
  755. // Get the elapsed time
  756. //
  757. ulElapsedTime = TimerRead(sTimerHandle);
  758. ApfRecordInfo(I_CreateDiscardableBitmap, ulElapsedTime);
  759. TimerClose(sTimerHandle);
  760. return(RetVal);
  761. }
  762. HRGN ZCreateEllipticRgn (int Arg1,int Arg2,int Arg3,int Arg4)
  763. {
  764. HRGN RetVal;
  765. SHORT sTimerHandle;
  766. ULONG ulElapsedTime;
  767. if (fInitDone == FALSE) {
  768. ApfInitDll();
  769. }
  770. TimerOpen(&sTimerHandle,MICROSECONDS);
  771. TimerInit(sTimerHandle);
  772. //
  773. // Call the api
  774. //
  775. RetVal = CreateEllipticRgn(Arg1,Arg2,Arg3,Arg4);
  776. //
  777. // Get the elapsed time
  778. //
  779. ulElapsedTime = TimerRead(sTimerHandle);
  780. ApfRecordInfo(I_CreateEllipticRgn, ulElapsedTime);
  781. TimerClose(sTimerHandle);
  782. return(RetVal);
  783. }
  784. HRGN ZCreateEllipticRgnIndirect (const RECT* Arg1)
  785. {
  786. HRGN RetVal;
  787. SHORT sTimerHandle;
  788. ULONG ulElapsedTime;
  789. if (fInitDone == FALSE) {
  790. ApfInitDll();
  791. }
  792. TimerOpen(&sTimerHandle,MICROSECONDS);
  793. TimerInit(sTimerHandle);
  794. //
  795. // Call the api
  796. //
  797. RetVal = CreateEllipticRgnIndirect(Arg1);
  798. //
  799. // Get the elapsed time
  800. //
  801. ulElapsedTime = TimerRead(sTimerHandle);
  802. ApfRecordInfo(I_CreateEllipticRgnIndirect, ulElapsedTime);
  803. TimerClose(sTimerHandle);
  804. return(RetVal);
  805. }
  806. HDC ZCreateEnhMetaFileA (HDC Arg1,LPCSTR Arg2,const RECT* Arg3,LPCSTR Arg4)
  807. {
  808. HDC RetVal;
  809. SHORT sTimerHandle;
  810. ULONG ulElapsedTime;
  811. if (fInitDone == FALSE) {
  812. ApfInitDll();
  813. }
  814. TimerOpen(&sTimerHandle,MICROSECONDS);
  815. TimerInit(sTimerHandle);
  816. //
  817. // Call the api
  818. //
  819. RetVal = CreateEnhMetaFileA(Arg1,Arg2,Arg3,Arg4);
  820. //
  821. // Get the elapsed time
  822. //
  823. ulElapsedTime = TimerRead(sTimerHandle);
  824. ApfRecordInfo(I_CreateEnhMetaFileA, ulElapsedTime);
  825. TimerClose(sTimerHandle);
  826. return(RetVal);
  827. }
  828. HDC ZCreateEnhMetaFileW (HDC Arg1,LPCWSTR Arg2,const RECT* Arg3,LPCWSTR Arg4)
  829. {
  830. HDC RetVal;
  831. SHORT sTimerHandle;
  832. ULONG ulElapsedTime;
  833. if (fInitDone == FALSE) {
  834. ApfInitDll();
  835. }
  836. TimerOpen(&sTimerHandle,MICROSECONDS);
  837. TimerInit(sTimerHandle);
  838. //
  839. // Call the api
  840. //
  841. RetVal = CreateEnhMetaFileW(Arg1,Arg2,Arg3,Arg4);
  842. //
  843. // Get the elapsed time
  844. //
  845. ulElapsedTime = TimerRead(sTimerHandle);
  846. ApfRecordInfo(I_CreateEnhMetaFileW, ulElapsedTime);
  847. TimerClose(sTimerHandle);
  848. return(RetVal);
  849. }
  850. HFONT ZCreateFontA (int Arg1,int Arg2,int Arg3,int Arg4,int Arg5,DWORD Arg6,DWORD Arg7,DWORD Arg8,DWORD Arg9,DWORD Arg10,DWORD Arg11,DWORD Arg12,DWORD Arg13,LPCSTR Arg14)
  851. {
  852. HFONT RetVal;
  853. SHORT sTimerHandle;
  854. ULONG ulElapsedTime;
  855. if (fInitDone == FALSE) {
  856. ApfInitDll();
  857. }
  858. TimerOpen(&sTimerHandle,MICROSECONDS);
  859. TimerInit(sTimerHandle);
  860. //
  861. // Call the api
  862. //
  863. RetVal = CreateFontA(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9,Arg10,Arg11,Arg12,Arg13,Arg14);
  864. //
  865. // Get the elapsed time
  866. //
  867. ulElapsedTime = TimerRead(sTimerHandle);
  868. ApfRecordInfo(I_CreateFontA, ulElapsedTime);
  869. TimerClose(sTimerHandle);
  870. return(RetVal);
  871. }
  872. HFONT ZCreateFontIndirectA (const LOGFONTA* Arg1)
  873. {
  874. HFONT RetVal;
  875. SHORT sTimerHandle;
  876. ULONG ulElapsedTime;
  877. if (fInitDone == FALSE) {
  878. ApfInitDll();
  879. }
  880. TimerOpen(&sTimerHandle,MICROSECONDS);
  881. TimerInit(sTimerHandle);
  882. //
  883. // Call the api
  884. //
  885. RetVal = CreateFontIndirectA(Arg1);
  886. //
  887. // Get the elapsed time
  888. //
  889. ulElapsedTime = TimerRead(sTimerHandle);
  890. ApfRecordInfo(I_CreateFontIndirectA, ulElapsedTime);
  891. TimerClose(sTimerHandle);
  892. return(RetVal);
  893. }
  894. HFONT ZCreateFontIndirectW (const LOGFONTW* Arg1)
  895. {
  896. HFONT RetVal;
  897. SHORT sTimerHandle;
  898. ULONG ulElapsedTime;
  899. if (fInitDone == FALSE) {
  900. ApfInitDll();
  901. }
  902. TimerOpen(&sTimerHandle,MICROSECONDS);
  903. TimerInit(sTimerHandle);
  904. //
  905. // Call the api
  906. //
  907. RetVal = CreateFontIndirectW(Arg1);
  908. //
  909. // Get the elapsed time
  910. //
  911. ulElapsedTime = TimerRead(sTimerHandle);
  912. ApfRecordInfo(I_CreateFontIndirectW, ulElapsedTime);
  913. TimerClose(sTimerHandle);
  914. return(RetVal);
  915. }
  916. HFONT ZCreateFontW (int Arg1,int Arg2,int Arg3,int Arg4,int Arg5,DWORD Arg6,DWORD Arg7,DWORD Arg8,DWORD Arg9,DWORD Arg10,DWORD Arg11,DWORD Arg12,DWORD Arg13,LPCWSTR Arg14)
  917. {
  918. HFONT RetVal;
  919. SHORT sTimerHandle;
  920. ULONG ulElapsedTime;
  921. if (fInitDone == FALSE) {
  922. ApfInitDll();
  923. }
  924. TimerOpen(&sTimerHandle,MICROSECONDS);
  925. TimerInit(sTimerHandle);
  926. //
  927. // Call the api
  928. //
  929. RetVal = CreateFontW(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9,Arg10,Arg11,Arg12,Arg13,Arg14);
  930. //
  931. // Get the elapsed time
  932. //
  933. ulElapsedTime = TimerRead(sTimerHandle);
  934. ApfRecordInfo(I_CreateFontW, ulElapsedTime);
  935. TimerClose(sTimerHandle);
  936. return(RetVal);
  937. }
  938. HPALETTE ZCreateHalftonePalette (HDC Arg1)
  939. {
  940. HPALETTE RetVal;
  941. SHORT sTimerHandle;
  942. ULONG ulElapsedTime;
  943. if (fInitDone == FALSE) {
  944. ApfInitDll();
  945. }
  946. TimerOpen(&sTimerHandle,MICROSECONDS);
  947. TimerInit(sTimerHandle);
  948. //
  949. // Call the api
  950. //
  951. RetVal = CreateHalftonePalette(Arg1);
  952. //
  953. // Get the elapsed time
  954. //
  955. ulElapsedTime = TimerRead(sTimerHandle);
  956. ApfRecordInfo(I_CreateHalftonePalette, ulElapsedTime);
  957. TimerClose(sTimerHandle);
  958. return(RetVal);
  959. }
  960. HBRUSH ZCreateHatchBrush (int Arg1,COLORREF Arg2)
  961. {
  962. HBRUSH RetVal;
  963. SHORT sTimerHandle;
  964. ULONG ulElapsedTime;
  965. if (fInitDone == FALSE) {
  966. ApfInitDll();
  967. }
  968. TimerOpen(&sTimerHandle,MICROSECONDS);
  969. TimerInit(sTimerHandle);
  970. //
  971. // Call the api
  972. //
  973. RetVal = CreateHatchBrush(Arg1,Arg2);
  974. //
  975. // Get the elapsed time
  976. //
  977. ulElapsedTime = TimerRead(sTimerHandle);
  978. ApfRecordInfo(I_CreateHatchBrush, ulElapsedTime);
  979. TimerClose(sTimerHandle);
  980. return(RetVal);
  981. }
  982. HDC ZCreateICA (LPCSTR Arg1,LPCSTR Arg2,LPCSTR Arg3,const DEVMODEA* Arg4)
  983. {
  984. HDC RetVal;
  985. SHORT sTimerHandle;
  986. ULONG ulElapsedTime;
  987. if (fInitDone == FALSE) {
  988. ApfInitDll();
  989. }
  990. TimerOpen(&sTimerHandle,MICROSECONDS);
  991. TimerInit(sTimerHandle);
  992. //
  993. // Call the api
  994. //
  995. RetVal = CreateICA(Arg1,Arg2,Arg3,Arg4);
  996. //
  997. // Get the elapsed time
  998. //
  999. ulElapsedTime = TimerRead(sTimerHandle);
  1000. ApfRecordInfo(I_CreateICA, ulElapsedTime);
  1001. TimerClose(sTimerHandle);
  1002. return(RetVal);
  1003. }
  1004. HDC ZCreateICW (LPCWSTR Arg1,LPCWSTR Arg2,LPCWSTR Arg3,const DEVMODEW* Arg4)
  1005. {
  1006. HDC RetVal;
  1007. SHORT sTimerHandle;
  1008. ULONG ulElapsedTime;
  1009. if (fInitDone == FALSE) {
  1010. ApfInitDll();
  1011. }
  1012. TimerOpen(&sTimerHandle,MICROSECONDS);
  1013. TimerInit(sTimerHandle);
  1014. //
  1015. // Call the api
  1016. //
  1017. RetVal = CreateICW(Arg1,Arg2,Arg3,Arg4);
  1018. //
  1019. // Get the elapsed time
  1020. //
  1021. ulElapsedTime = TimerRead(sTimerHandle);
  1022. ApfRecordInfo(I_CreateICW, ulElapsedTime);
  1023. TimerClose(sTimerHandle);
  1024. return(RetVal);
  1025. }
  1026. HDC ZCreateMetaFileA (LPCSTR Arg1)
  1027. {
  1028. HDC RetVal;
  1029. SHORT sTimerHandle;
  1030. ULONG ulElapsedTime;
  1031. if (fInitDone == FALSE) {
  1032. ApfInitDll();
  1033. }
  1034. TimerOpen(&sTimerHandle,MICROSECONDS);
  1035. TimerInit(sTimerHandle);
  1036. //
  1037. // Call the api
  1038. //
  1039. RetVal = CreateMetaFileA(Arg1);
  1040. //
  1041. // Get the elapsed time
  1042. //
  1043. ulElapsedTime = TimerRead(sTimerHandle);
  1044. ApfRecordInfo(I_CreateMetaFileA, ulElapsedTime);
  1045. TimerClose(sTimerHandle);
  1046. return(RetVal);
  1047. }
  1048. HDC ZCreateMetaFileW (LPCWSTR Arg1)
  1049. {
  1050. HDC RetVal;
  1051. SHORT sTimerHandle;
  1052. ULONG ulElapsedTime;
  1053. if (fInitDone == FALSE) {
  1054. ApfInitDll();
  1055. }
  1056. TimerOpen(&sTimerHandle,MICROSECONDS);
  1057. TimerInit(sTimerHandle);
  1058. //
  1059. // Call the api
  1060. //
  1061. RetVal = CreateMetaFileW(Arg1);
  1062. //
  1063. // Get the elapsed time
  1064. //
  1065. ulElapsedTime = TimerRead(sTimerHandle);
  1066. ApfRecordInfo(I_CreateMetaFileW, ulElapsedTime);
  1067. TimerClose(sTimerHandle);
  1068. return(RetVal);
  1069. }
  1070. HPALETTE ZCreatePalette (const LOGPALETTE* Arg1)
  1071. {
  1072. HPALETTE RetVal;
  1073. SHORT sTimerHandle;
  1074. ULONG ulElapsedTime;
  1075. if (fInitDone == FALSE) {
  1076. ApfInitDll();
  1077. }
  1078. TimerOpen(&sTimerHandle,MICROSECONDS);
  1079. TimerInit(sTimerHandle);
  1080. //
  1081. // Call the api
  1082. //
  1083. RetVal = CreatePalette(Arg1);
  1084. //
  1085. // Get the elapsed time
  1086. //
  1087. ulElapsedTime = TimerRead(sTimerHandle);
  1088. ApfRecordInfo(I_CreatePalette, ulElapsedTime);
  1089. TimerClose(sTimerHandle);
  1090. return(RetVal);
  1091. }
  1092. HBRUSH ZCreatePatternBrush (HBITMAP Arg1)
  1093. {
  1094. HBRUSH RetVal;
  1095. SHORT sTimerHandle;
  1096. ULONG ulElapsedTime;
  1097. if (fInitDone == FALSE) {
  1098. ApfInitDll();
  1099. }
  1100. TimerOpen(&sTimerHandle,MICROSECONDS);
  1101. TimerInit(sTimerHandle);
  1102. //
  1103. // Call the api
  1104. //
  1105. RetVal = CreatePatternBrush(Arg1);
  1106. //
  1107. // Get the elapsed time
  1108. //
  1109. ulElapsedTime = TimerRead(sTimerHandle);
  1110. ApfRecordInfo(I_CreatePatternBrush, ulElapsedTime);
  1111. TimerClose(sTimerHandle);
  1112. return(RetVal);
  1113. }
  1114. HPEN ZCreatePen (int Arg1,int Arg2,COLORREF Arg3)
  1115. {
  1116. HPEN RetVal;
  1117. SHORT sTimerHandle;
  1118. ULONG ulElapsedTime;
  1119. if (fInitDone == FALSE) {
  1120. ApfInitDll();
  1121. }
  1122. TimerOpen(&sTimerHandle,MICROSECONDS);
  1123. TimerInit(sTimerHandle);
  1124. //
  1125. // Call the api
  1126. //
  1127. RetVal = CreatePen(Arg1,Arg2,Arg3);
  1128. //
  1129. // Get the elapsed time
  1130. //
  1131. ulElapsedTime = TimerRead(sTimerHandle);
  1132. ApfRecordInfo(I_CreatePen, ulElapsedTime);
  1133. TimerClose(sTimerHandle);
  1134. return(RetVal);
  1135. }
  1136. HPEN ZCreatePenIndirect (const LOGPEN* Arg1)
  1137. {
  1138. HPEN RetVal;
  1139. SHORT sTimerHandle;
  1140. ULONG ulElapsedTime;
  1141. if (fInitDone == FALSE) {
  1142. ApfInitDll();
  1143. }
  1144. TimerOpen(&sTimerHandle,MICROSECONDS);
  1145. TimerInit(sTimerHandle);
  1146. //
  1147. // Call the api
  1148. //
  1149. RetVal = CreatePenIndirect(Arg1);
  1150. //
  1151. // Get the elapsed time
  1152. //
  1153. ulElapsedTime = TimerRead(sTimerHandle);
  1154. ApfRecordInfo(I_CreatePenIndirect, ulElapsedTime);
  1155. TimerClose(sTimerHandle);
  1156. return(RetVal);
  1157. }
  1158. HRGN ZCreatePolyPolygonRgn (const POINT* Arg1,const INT* Arg2,int Arg3,int Arg4)
  1159. {
  1160. HRGN RetVal;
  1161. SHORT sTimerHandle;
  1162. ULONG ulElapsedTime;
  1163. if (fInitDone == FALSE) {
  1164. ApfInitDll();
  1165. }
  1166. TimerOpen(&sTimerHandle,MICROSECONDS);
  1167. TimerInit(sTimerHandle);
  1168. //
  1169. // Call the api
  1170. //
  1171. RetVal = CreatePolyPolygonRgn(Arg1,Arg2,Arg3,Arg4);
  1172. //
  1173. // Get the elapsed time
  1174. //
  1175. ulElapsedTime = TimerRead(sTimerHandle);
  1176. ApfRecordInfo(I_CreatePolyPolygonRgn, ulElapsedTime);
  1177. TimerClose(sTimerHandle);
  1178. return(RetVal);
  1179. }
  1180. HRGN ZCreatePolygonRgn (const POINT* Arg1,int Arg2,int Arg3)
  1181. {
  1182. HRGN RetVal;
  1183. SHORT sTimerHandle;
  1184. ULONG ulElapsedTime;
  1185. if (fInitDone == FALSE) {
  1186. ApfInitDll();
  1187. }
  1188. TimerOpen(&sTimerHandle,MICROSECONDS);
  1189. TimerInit(sTimerHandle);
  1190. //
  1191. // Call the api
  1192. //
  1193. RetVal = CreatePolygonRgn(Arg1,Arg2,Arg3);
  1194. //
  1195. // Get the elapsed time
  1196. //
  1197. ulElapsedTime = TimerRead(sTimerHandle);
  1198. ApfRecordInfo(I_CreatePolygonRgn, ulElapsedTime);
  1199. TimerClose(sTimerHandle);
  1200. return(RetVal);
  1201. }
  1202. HRGN ZCreateRectRgn (int Arg1,int Arg2,int Arg3,int Arg4)
  1203. {
  1204. HRGN RetVal;
  1205. SHORT sTimerHandle;
  1206. ULONG ulElapsedTime;
  1207. if (fInitDone == FALSE) {
  1208. ApfInitDll();
  1209. }
  1210. TimerOpen(&sTimerHandle,MICROSECONDS);
  1211. TimerInit(sTimerHandle);
  1212. //
  1213. // Call the api
  1214. //
  1215. RetVal = CreateRectRgn(Arg1,Arg2,Arg3,Arg4);
  1216. //
  1217. // Get the elapsed time
  1218. //
  1219. ulElapsedTime = TimerRead(sTimerHandle);
  1220. ApfRecordInfo(I_CreateRectRgn, ulElapsedTime);
  1221. TimerClose(sTimerHandle);
  1222. return(RetVal);
  1223. }
  1224. HRGN ZCreateRectRgnIndirect (const RECT* Arg1)
  1225. {
  1226. HRGN RetVal;
  1227. SHORT sTimerHandle;
  1228. ULONG ulElapsedTime;
  1229. if (fInitDone == FALSE) {
  1230. ApfInitDll();
  1231. }
  1232. TimerOpen(&sTimerHandle,MICROSECONDS);
  1233. TimerInit(sTimerHandle);
  1234. //
  1235. // Call the api
  1236. //
  1237. RetVal = CreateRectRgnIndirect(Arg1);
  1238. //
  1239. // Get the elapsed time
  1240. //
  1241. ulElapsedTime = TimerRead(sTimerHandle);
  1242. ApfRecordInfo(I_CreateRectRgnIndirect, ulElapsedTime);
  1243. TimerClose(sTimerHandle);
  1244. return(RetVal);
  1245. }
  1246. HRGN ZCreateRoundRectRgn (int Arg1,int Arg2,int Arg3,int Arg4,int Arg5,int Arg6)
  1247. {
  1248. HRGN RetVal;
  1249. SHORT sTimerHandle;
  1250. ULONG ulElapsedTime;
  1251. if (fInitDone == FALSE) {
  1252. ApfInitDll();
  1253. }
  1254. TimerOpen(&sTimerHandle,MICROSECONDS);
  1255. TimerInit(sTimerHandle);
  1256. //
  1257. // Call the api
  1258. //
  1259. RetVal = CreateRoundRectRgn(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  1260. //
  1261. // Get the elapsed time
  1262. //
  1263. ulElapsedTime = TimerRead(sTimerHandle);
  1264. ApfRecordInfo(I_CreateRoundRectRgn, ulElapsedTime);
  1265. TimerClose(sTimerHandle);
  1266. return(RetVal);
  1267. }
  1268. BOOL ZCreateScalableFontResourceA (DWORD Arg1,LPCSTR Arg2,LPCSTR Arg3,LPCSTR Arg4)
  1269. {
  1270. BOOL RetVal;
  1271. SHORT sTimerHandle;
  1272. ULONG ulElapsedTime;
  1273. if (fInitDone == FALSE) {
  1274. ApfInitDll();
  1275. }
  1276. TimerOpen(&sTimerHandle,MICROSECONDS);
  1277. TimerInit(sTimerHandle);
  1278. //
  1279. // Call the api
  1280. //
  1281. RetVal = CreateScalableFontResourceA(Arg1,Arg2,Arg3,Arg4);
  1282. //
  1283. // Get the elapsed time
  1284. //
  1285. ulElapsedTime = TimerRead(sTimerHandle);
  1286. ApfRecordInfo(I_CreateScalableFontResourceA, ulElapsedTime);
  1287. TimerClose(sTimerHandle);
  1288. return(RetVal);
  1289. }
  1290. BOOL ZCreateScalableFontResourceW (DWORD Arg1,LPCWSTR Arg2,LPCWSTR Arg3,LPCWSTR Arg4)
  1291. {
  1292. BOOL RetVal;
  1293. SHORT sTimerHandle;
  1294. ULONG ulElapsedTime;
  1295. if (fInitDone == FALSE) {
  1296. ApfInitDll();
  1297. }
  1298. TimerOpen(&sTimerHandle,MICROSECONDS);
  1299. TimerInit(sTimerHandle);
  1300. //
  1301. // Call the api
  1302. //
  1303. RetVal = CreateScalableFontResourceW(Arg1,Arg2,Arg3,Arg4);
  1304. //
  1305. // Get the elapsed time
  1306. //
  1307. ulElapsedTime = TimerRead(sTimerHandle);
  1308. ApfRecordInfo(I_CreateScalableFontResourceW, ulElapsedTime);
  1309. TimerClose(sTimerHandle);
  1310. return(RetVal);
  1311. }
  1312. HBRUSH ZCreateSolidBrush (COLORREF Arg1)
  1313. {
  1314. HBRUSH RetVal;
  1315. SHORT sTimerHandle;
  1316. ULONG ulElapsedTime;
  1317. if (fInitDone == FALSE) {
  1318. ApfInitDll();
  1319. }
  1320. TimerOpen(&sTimerHandle,MICROSECONDS);
  1321. TimerInit(sTimerHandle);
  1322. //
  1323. // Call the api
  1324. //
  1325. RetVal = CreateSolidBrush(Arg1);
  1326. //
  1327. // Get the elapsed time
  1328. //
  1329. ulElapsedTime = TimerRead(sTimerHandle);
  1330. ApfRecordInfo(I_CreateSolidBrush, ulElapsedTime);
  1331. TimerClose(sTimerHandle);
  1332. return(RetVal);
  1333. }
  1334. BOOL ZDPtoLP (HDC Arg1,LPPOINT Arg2,int Arg3)
  1335. {
  1336. BOOL RetVal;
  1337. SHORT sTimerHandle;
  1338. ULONG ulElapsedTime;
  1339. if (fInitDone == FALSE) {
  1340. ApfInitDll();
  1341. }
  1342. TimerOpen(&sTimerHandle,MICROSECONDS);
  1343. TimerInit(sTimerHandle);
  1344. //
  1345. // Call the api
  1346. //
  1347. RetVal = DPtoLP(Arg1,Arg2,Arg3);
  1348. //
  1349. // Get the elapsed time
  1350. //
  1351. ulElapsedTime = TimerRead(sTimerHandle);
  1352. ApfRecordInfo(I_DPtoLP, ulElapsedTime);
  1353. TimerClose(sTimerHandle);
  1354. return(RetVal);
  1355. }
  1356. BOOL ZDeleteDC (HDC Arg1)
  1357. {
  1358. BOOL RetVal;
  1359. SHORT sTimerHandle;
  1360. ULONG ulElapsedTime;
  1361. if (fInitDone == FALSE) {
  1362. ApfInitDll();
  1363. }
  1364. TimerOpen(&sTimerHandle,MICROSECONDS);
  1365. TimerInit(sTimerHandle);
  1366. //
  1367. // Call the api
  1368. //
  1369. RetVal = DeleteDC(Arg1);
  1370. //
  1371. // Get the elapsed time
  1372. //
  1373. ulElapsedTime = TimerRead(sTimerHandle);
  1374. ApfRecordInfo(I_DeleteDC, ulElapsedTime);
  1375. TimerClose(sTimerHandle);
  1376. return(RetVal);
  1377. }
  1378. BOOL ZDeleteEnhMetaFile (HENHMETAFILE Arg1)
  1379. {
  1380. BOOL RetVal;
  1381. SHORT sTimerHandle;
  1382. ULONG ulElapsedTime;
  1383. if (fInitDone == FALSE) {
  1384. ApfInitDll();
  1385. }
  1386. TimerOpen(&sTimerHandle,MICROSECONDS);
  1387. TimerInit(sTimerHandle);
  1388. //
  1389. // Call the api
  1390. //
  1391. RetVal = DeleteEnhMetaFile(Arg1);
  1392. //
  1393. // Get the elapsed time
  1394. //
  1395. ulElapsedTime = TimerRead(sTimerHandle);
  1396. ApfRecordInfo(I_DeleteEnhMetaFile, ulElapsedTime);
  1397. TimerClose(sTimerHandle);
  1398. return(RetVal);
  1399. }
  1400. BOOL ZDeleteMetaFile (HMETAFILE Arg1)
  1401. {
  1402. BOOL RetVal;
  1403. SHORT sTimerHandle;
  1404. ULONG ulElapsedTime;
  1405. if (fInitDone == FALSE) {
  1406. ApfInitDll();
  1407. }
  1408. TimerOpen(&sTimerHandle,MICROSECONDS);
  1409. TimerInit(sTimerHandle);
  1410. //
  1411. // Call the api
  1412. //
  1413. RetVal = DeleteMetaFile(Arg1);
  1414. //
  1415. // Get the elapsed time
  1416. //
  1417. ulElapsedTime = TimerRead(sTimerHandle);
  1418. ApfRecordInfo(I_DeleteMetaFile, ulElapsedTime);
  1419. TimerClose(sTimerHandle);
  1420. return(RetVal);
  1421. }
  1422. BOOL ZDeleteObject (HGDIOBJ Arg1)
  1423. {
  1424. BOOL RetVal;
  1425. SHORT sTimerHandle;
  1426. ULONG ulElapsedTime;
  1427. if (fInitDone == FALSE) {
  1428. ApfInitDll();
  1429. }
  1430. TimerOpen(&sTimerHandle,MICROSECONDS);
  1431. TimerInit(sTimerHandle);
  1432. //
  1433. // Call the api
  1434. //
  1435. RetVal = DeleteObject(Arg1);
  1436. //
  1437. // Get the elapsed time
  1438. //
  1439. ulElapsedTime = TimerRead(sTimerHandle);
  1440. ApfRecordInfo(I_DeleteObject, ulElapsedTime);
  1441. TimerClose(sTimerHandle);
  1442. return(RetVal);
  1443. }
  1444. int ZDrawEscape (HDC Arg1,int Arg2,int Arg3,LPCSTR Arg4)
  1445. {
  1446. int RetVal;
  1447. SHORT sTimerHandle;
  1448. ULONG ulElapsedTime;
  1449. if (fInitDone == FALSE) {
  1450. ApfInitDll();
  1451. }
  1452. TimerOpen(&sTimerHandle,MICROSECONDS);
  1453. TimerInit(sTimerHandle);
  1454. //
  1455. // Call the api
  1456. //
  1457. RetVal = DrawEscape(Arg1,Arg2,Arg3,Arg4);
  1458. //
  1459. // Get the elapsed time
  1460. //
  1461. ulElapsedTime = TimerRead(sTimerHandle);
  1462. ApfRecordInfo(I_DrawEscape, ulElapsedTime);
  1463. TimerClose(sTimerHandle);
  1464. return(RetVal);
  1465. }
  1466. BOOL ZEllipse (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5)
  1467. {
  1468. BOOL RetVal;
  1469. SHORT sTimerHandle;
  1470. ULONG ulElapsedTime;
  1471. if (fInitDone == FALSE) {
  1472. ApfInitDll();
  1473. }
  1474. TimerOpen(&sTimerHandle,MICROSECONDS);
  1475. TimerInit(sTimerHandle);
  1476. //
  1477. // Call the api
  1478. //
  1479. RetVal = Ellipse(Arg1,Arg2,Arg3,Arg4,Arg5);
  1480. //
  1481. // Get the elapsed time
  1482. //
  1483. ulElapsedTime = TimerRead(sTimerHandle);
  1484. ApfRecordInfo(I_Ellipse, ulElapsedTime);
  1485. TimerClose(sTimerHandle);
  1486. return(RetVal);
  1487. }
  1488. int ZEndDoc (HDC Arg1)
  1489. {
  1490. int RetVal;
  1491. SHORT sTimerHandle;
  1492. ULONG ulElapsedTime;
  1493. if (fInitDone == FALSE) {
  1494. ApfInitDll();
  1495. }
  1496. TimerOpen(&sTimerHandle,MICROSECONDS);
  1497. TimerInit(sTimerHandle);
  1498. //
  1499. // Call the api
  1500. //
  1501. RetVal = EndDoc(Arg1);
  1502. //
  1503. // Get the elapsed time
  1504. //
  1505. ulElapsedTime = TimerRead(sTimerHandle);
  1506. ApfRecordInfo(I_EndDoc, ulElapsedTime);
  1507. TimerClose(sTimerHandle);
  1508. return(RetVal);
  1509. }
  1510. int ZEndPage (HDC Arg1)
  1511. {
  1512. int RetVal;
  1513. SHORT sTimerHandle;
  1514. ULONG ulElapsedTime;
  1515. if (fInitDone == FALSE) {
  1516. ApfInitDll();
  1517. }
  1518. TimerOpen(&sTimerHandle,MICROSECONDS);
  1519. TimerInit(sTimerHandle);
  1520. //
  1521. // Call the api
  1522. //
  1523. RetVal = EndPage(Arg1);
  1524. //
  1525. // Get the elapsed time
  1526. //
  1527. ulElapsedTime = TimerRead(sTimerHandle);
  1528. ApfRecordInfo(I_EndPage, ulElapsedTime);
  1529. TimerClose(sTimerHandle);
  1530. return(RetVal);
  1531. }
  1532. BOOL ZEndPath (HDC Arg1)
  1533. {
  1534. BOOL RetVal;
  1535. SHORT sTimerHandle;
  1536. ULONG ulElapsedTime;
  1537. if (fInitDone == FALSE) {
  1538. ApfInitDll();
  1539. }
  1540. TimerOpen(&sTimerHandle,MICROSECONDS);
  1541. TimerInit(sTimerHandle);
  1542. //
  1543. // Call the api
  1544. //
  1545. RetVal = EndPath(Arg1);
  1546. //
  1547. // Get the elapsed time
  1548. //
  1549. ulElapsedTime = TimerRead(sTimerHandle);
  1550. ApfRecordInfo(I_EndPath, ulElapsedTime);
  1551. TimerClose(sTimerHandle);
  1552. return(RetVal);
  1553. }
  1554. BOOL ZEnumEnhMetaFile (HDC Arg1,HENHMETAFILE Arg2,ENHMFENUMPROC Arg3,LPVOID Arg4,const RECT* Arg5)
  1555. {
  1556. BOOL RetVal;
  1557. SHORT sTimerHandle;
  1558. ULONG ulElapsedTime;
  1559. if (fInitDone == FALSE) {
  1560. ApfInitDll();
  1561. }
  1562. TimerOpen(&sTimerHandle,MICROSECONDS);
  1563. TimerInit(sTimerHandle);
  1564. //
  1565. // Call the api
  1566. //
  1567. RetVal = EnumEnhMetaFile(Arg1,Arg2,Arg3,Arg4,Arg5);
  1568. //
  1569. // Get the elapsed time
  1570. //
  1571. ulElapsedTime = TimerRead(sTimerHandle);
  1572. ApfRecordInfo(I_EnumEnhMetaFile, ulElapsedTime);
  1573. TimerClose(sTimerHandle);
  1574. return(RetVal);
  1575. }
  1576. int ZEnumFontFamiliesA (HDC Arg1,LPCSTR Arg2,FONTENUMPROC Arg3,LPARAM Arg4)
  1577. {
  1578. int RetVal;
  1579. SHORT sTimerHandle;
  1580. ULONG ulElapsedTime;
  1581. if (fInitDone == FALSE) {
  1582. ApfInitDll();
  1583. }
  1584. TimerOpen(&sTimerHandle,MICROSECONDS);
  1585. TimerInit(sTimerHandle);
  1586. //
  1587. // Call the api
  1588. //
  1589. RetVal = EnumFontFamiliesA(Arg1,Arg2,Arg3,Arg4);
  1590. //
  1591. // Get the elapsed time
  1592. //
  1593. ulElapsedTime = TimerRead(sTimerHandle);
  1594. ApfRecordInfo(I_EnumFontFamiliesA, ulElapsedTime);
  1595. TimerClose(sTimerHandle);
  1596. return(RetVal);
  1597. }
  1598. int ZEnumFontFamiliesW (HDC Arg1,LPCWSTR Arg2,FONTENUMPROC Arg3,LPARAM Arg4)
  1599. {
  1600. int RetVal;
  1601. SHORT sTimerHandle;
  1602. ULONG ulElapsedTime;
  1603. if (fInitDone == FALSE) {
  1604. ApfInitDll();
  1605. }
  1606. TimerOpen(&sTimerHandle,MICROSECONDS);
  1607. TimerInit(sTimerHandle);
  1608. //
  1609. // Call the api
  1610. //
  1611. RetVal = EnumFontFamiliesW(Arg1,Arg2,Arg3,Arg4);
  1612. //
  1613. // Get the elapsed time
  1614. //
  1615. ulElapsedTime = TimerRead(sTimerHandle);
  1616. ApfRecordInfo(I_EnumFontFamiliesW, ulElapsedTime);
  1617. TimerClose(sTimerHandle);
  1618. return(RetVal);
  1619. }
  1620. int ZEnumFontsA (HDC Arg1,LPCSTR Arg2,FONTENUMPROC Arg3,LPARAM Arg4)
  1621. {
  1622. int RetVal;
  1623. SHORT sTimerHandle;
  1624. ULONG ulElapsedTime;
  1625. if (fInitDone == FALSE) {
  1626. ApfInitDll();
  1627. }
  1628. TimerOpen(&sTimerHandle,MICROSECONDS);
  1629. TimerInit(sTimerHandle);
  1630. //
  1631. // Call the api
  1632. //
  1633. RetVal = EnumFontsA(Arg1,Arg2,Arg3,Arg4);
  1634. //
  1635. // Get the elapsed time
  1636. //
  1637. ulElapsedTime = TimerRead(sTimerHandle);
  1638. ApfRecordInfo(I_EnumFontsA, ulElapsedTime);
  1639. TimerClose(sTimerHandle);
  1640. return(RetVal);
  1641. }
  1642. int ZEnumFontsW (HDC Arg1,LPCWSTR Arg2,FONTENUMPROC Arg3,LPARAM Arg4)
  1643. {
  1644. int RetVal;
  1645. SHORT sTimerHandle;
  1646. ULONG ulElapsedTime;
  1647. if (fInitDone == FALSE) {
  1648. ApfInitDll();
  1649. }
  1650. TimerOpen(&sTimerHandle,MICROSECONDS);
  1651. TimerInit(sTimerHandle);
  1652. //
  1653. // Call the api
  1654. //
  1655. RetVal = EnumFontsW(Arg1,Arg2,Arg3,Arg4);
  1656. //
  1657. // Get the elapsed time
  1658. //
  1659. ulElapsedTime = TimerRead(sTimerHandle);
  1660. ApfRecordInfo(I_EnumFontsW, ulElapsedTime);
  1661. TimerClose(sTimerHandle);
  1662. return(RetVal);
  1663. }
  1664. BOOL ZEnumMetaFile (HDC Arg1,HMETAFILE Arg2,MFENUMPROC Arg3,LPARAM Arg4)
  1665. {
  1666. BOOL RetVal;
  1667. SHORT sTimerHandle;
  1668. ULONG ulElapsedTime;
  1669. if (fInitDone == FALSE) {
  1670. ApfInitDll();
  1671. }
  1672. TimerOpen(&sTimerHandle,MICROSECONDS);
  1673. TimerInit(sTimerHandle);
  1674. //
  1675. // Call the api
  1676. //
  1677. RetVal = EnumMetaFile(Arg1,Arg2,Arg3,Arg4);
  1678. //
  1679. // Get the elapsed time
  1680. //
  1681. ulElapsedTime = TimerRead(sTimerHandle);
  1682. ApfRecordInfo(I_EnumMetaFile, ulElapsedTime);
  1683. TimerClose(sTimerHandle);
  1684. return(RetVal);
  1685. }
  1686. int ZEnumObjects (HDC Arg1,int Arg2,GOBJENUMPROC Arg3,LPARAM Arg4)
  1687. {
  1688. int RetVal;
  1689. SHORT sTimerHandle;
  1690. ULONG ulElapsedTime;
  1691. if (fInitDone == FALSE) {
  1692. ApfInitDll();
  1693. }
  1694. TimerOpen(&sTimerHandle,MICROSECONDS);
  1695. TimerInit(sTimerHandle);
  1696. //
  1697. // Call the api
  1698. //
  1699. RetVal = EnumObjects(Arg1,Arg2,Arg3,Arg4);
  1700. //
  1701. // Get the elapsed time
  1702. //
  1703. ulElapsedTime = TimerRead(sTimerHandle);
  1704. ApfRecordInfo(I_EnumObjects, ulElapsedTime);
  1705. TimerClose(sTimerHandle);
  1706. return(RetVal);
  1707. }
  1708. BOOL ZEqualRgn (HRGN Arg1,HRGN Arg2)
  1709. {
  1710. BOOL RetVal;
  1711. SHORT sTimerHandle;
  1712. ULONG ulElapsedTime;
  1713. if (fInitDone == FALSE) {
  1714. ApfInitDll();
  1715. }
  1716. TimerOpen(&sTimerHandle,MICROSECONDS);
  1717. TimerInit(sTimerHandle);
  1718. //
  1719. // Call the api
  1720. //
  1721. RetVal = EqualRgn(Arg1,Arg2);
  1722. //
  1723. // Get the elapsed time
  1724. //
  1725. ulElapsedTime = TimerRead(sTimerHandle);
  1726. ApfRecordInfo(I_EqualRgn, ulElapsedTime);
  1727. TimerClose(sTimerHandle);
  1728. return(RetVal);
  1729. }
  1730. int ZEscape (HDC Arg1,int Arg2,int Arg3,LPCSTR Arg4,LPVOID Arg5)
  1731. {
  1732. int RetVal;
  1733. SHORT sTimerHandle;
  1734. ULONG ulElapsedTime;
  1735. if (fInitDone == FALSE) {
  1736. ApfInitDll();
  1737. }
  1738. TimerOpen(&sTimerHandle,MICROSECONDS);
  1739. TimerInit(sTimerHandle);
  1740. //
  1741. // Call the api
  1742. //
  1743. RetVal = Escape(Arg1,Arg2,Arg3,Arg4,Arg5);
  1744. //
  1745. // Get the elapsed time
  1746. //
  1747. ulElapsedTime = TimerRead(sTimerHandle);
  1748. ApfRecordInfo(I_Escape, ulElapsedTime);
  1749. TimerClose(sTimerHandle);
  1750. return(RetVal);
  1751. }
  1752. int ZExcludeClipRect (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5)
  1753. {
  1754. int RetVal;
  1755. SHORT sTimerHandle;
  1756. ULONG ulElapsedTime;
  1757. if (fInitDone == FALSE) {
  1758. ApfInitDll();
  1759. }
  1760. TimerOpen(&sTimerHandle,MICROSECONDS);
  1761. TimerInit(sTimerHandle);
  1762. //
  1763. // Call the api
  1764. //
  1765. RetVal = ExcludeClipRect(Arg1,Arg2,Arg3,Arg4,Arg5);
  1766. //
  1767. // Get the elapsed time
  1768. //
  1769. ulElapsedTime = TimerRead(sTimerHandle);
  1770. ApfRecordInfo(I_ExcludeClipRect, ulElapsedTime);
  1771. TimerClose(sTimerHandle);
  1772. return(RetVal);
  1773. }
  1774. HPEN ZExtCreatePen (DWORD Arg1,DWORD Arg2,const LOGBRUSH* Arg3,DWORD Arg4,const DWORD* Arg5)
  1775. {
  1776. HPEN RetVal;
  1777. SHORT sTimerHandle;
  1778. ULONG ulElapsedTime;
  1779. if (fInitDone == FALSE) {
  1780. ApfInitDll();
  1781. }
  1782. TimerOpen(&sTimerHandle,MICROSECONDS);
  1783. TimerInit(sTimerHandle);
  1784. //
  1785. // Call the api
  1786. //
  1787. RetVal = ExtCreatePen(Arg1,Arg2,Arg3,Arg4,Arg5);
  1788. //
  1789. // Get the elapsed time
  1790. //
  1791. ulElapsedTime = TimerRead(sTimerHandle);
  1792. ApfRecordInfo(I_ExtCreatePen, ulElapsedTime);
  1793. TimerClose(sTimerHandle);
  1794. return(RetVal);
  1795. }
  1796. HRGN ZExtCreateRegion (const XFORM* Arg1,DWORD Arg2,const RGNDATA* Arg3)
  1797. {
  1798. HRGN RetVal;
  1799. SHORT sTimerHandle;
  1800. ULONG ulElapsedTime;
  1801. if (fInitDone == FALSE) {
  1802. ApfInitDll();
  1803. }
  1804. TimerOpen(&sTimerHandle,MICROSECONDS);
  1805. TimerInit(sTimerHandle);
  1806. //
  1807. // Call the api
  1808. //
  1809. RetVal = ExtCreateRegion(Arg1,Arg2,Arg3);
  1810. //
  1811. // Get the elapsed time
  1812. //
  1813. ulElapsedTime = TimerRead(sTimerHandle);
  1814. ApfRecordInfo(I_ExtCreateRegion, ulElapsedTime);
  1815. TimerClose(sTimerHandle);
  1816. return(RetVal);
  1817. }
  1818. int ZExtEscape (HDC Arg1,int Arg2,int Arg3,LPCSTR Arg4,int Arg5,LPSTR Arg6)
  1819. {
  1820. int RetVal;
  1821. SHORT sTimerHandle;
  1822. ULONG ulElapsedTime;
  1823. if (fInitDone == FALSE) {
  1824. ApfInitDll();
  1825. }
  1826. TimerOpen(&sTimerHandle,MICROSECONDS);
  1827. TimerInit(sTimerHandle);
  1828. //
  1829. // Call the api
  1830. //
  1831. RetVal = ExtEscape(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  1832. //
  1833. // Get the elapsed time
  1834. //
  1835. ulElapsedTime = TimerRead(sTimerHandle);
  1836. ApfRecordInfo(I_ExtEscape, ulElapsedTime);
  1837. TimerClose(sTimerHandle);
  1838. return(RetVal);
  1839. }
  1840. BOOL ZExtFloodFill (HDC Arg1,int Arg2,int Arg3,COLORREF Arg4,UINT Arg5)
  1841. {
  1842. BOOL RetVal;
  1843. SHORT sTimerHandle;
  1844. ULONG ulElapsedTime;
  1845. if (fInitDone == FALSE) {
  1846. ApfInitDll();
  1847. }
  1848. TimerOpen(&sTimerHandle,MICROSECONDS);
  1849. TimerInit(sTimerHandle);
  1850. //
  1851. // Call the api
  1852. //
  1853. RetVal = ExtFloodFill(Arg1,Arg2,Arg3,Arg4,Arg5);
  1854. //
  1855. // Get the elapsed time
  1856. //
  1857. ulElapsedTime = TimerRead(sTimerHandle);
  1858. ApfRecordInfo(I_ExtFloodFill, ulElapsedTime);
  1859. TimerClose(sTimerHandle);
  1860. return(RetVal);
  1861. }
  1862. int ZExtSelectClipRgn (HDC Arg1,HRGN Arg2,int Arg3)
  1863. {
  1864. int RetVal;
  1865. SHORT sTimerHandle;
  1866. ULONG ulElapsedTime;
  1867. if (fInitDone == FALSE) {
  1868. ApfInitDll();
  1869. }
  1870. TimerOpen(&sTimerHandle,MICROSECONDS);
  1871. TimerInit(sTimerHandle);
  1872. //
  1873. // Call the api
  1874. //
  1875. RetVal = ExtSelectClipRgn(Arg1,Arg2,Arg3);
  1876. //
  1877. // Get the elapsed time
  1878. //
  1879. ulElapsedTime = TimerRead(sTimerHandle);
  1880. ApfRecordInfo(I_ExtSelectClipRgn, ulElapsedTime);
  1881. TimerClose(sTimerHandle);
  1882. return(RetVal);
  1883. }
  1884. BOOL ZExtTextOutA (HDC Arg1,int Arg2,int Arg3,UINT Arg4,const RECT* Arg5,LPCSTR Arg6,UINT Arg7,const INT* Arg8)
  1885. {
  1886. BOOL RetVal;
  1887. SHORT sTimerHandle;
  1888. ULONG ulElapsedTime;
  1889. if (fInitDone == FALSE) {
  1890. ApfInitDll();
  1891. }
  1892. TimerOpen(&sTimerHandle,MICROSECONDS);
  1893. TimerInit(sTimerHandle);
  1894. //
  1895. // Call the api
  1896. //
  1897. RetVal = ExtTextOutA(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8);
  1898. //
  1899. // Get the elapsed time
  1900. //
  1901. ulElapsedTime = TimerRead(sTimerHandle);
  1902. ApfRecordInfo(I_ExtTextOutA, ulElapsedTime);
  1903. TimerClose(sTimerHandle);
  1904. return(RetVal);
  1905. }
  1906. BOOL ZExtTextOutW (HDC Arg1,int Arg2,int Arg3,UINT Arg4,const RECT* Arg5,LPCWSTR Arg6,UINT Arg7,const INT* Arg8)
  1907. {
  1908. BOOL RetVal;
  1909. SHORT sTimerHandle;
  1910. ULONG ulElapsedTime;
  1911. if (fInitDone == FALSE) {
  1912. ApfInitDll();
  1913. }
  1914. TimerOpen(&sTimerHandle,MICROSECONDS);
  1915. TimerInit(sTimerHandle);
  1916. //
  1917. // Call the api
  1918. //
  1919. RetVal = ExtTextOutW(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8);
  1920. //
  1921. // Get the elapsed time
  1922. //
  1923. ulElapsedTime = TimerRead(sTimerHandle);
  1924. ApfRecordInfo(I_ExtTextOutW, ulElapsedTime);
  1925. TimerClose(sTimerHandle);
  1926. return(RetVal);
  1927. }
  1928. BOOL ZFillPath (HDC Arg1)
  1929. {
  1930. BOOL RetVal;
  1931. SHORT sTimerHandle;
  1932. ULONG ulElapsedTime;
  1933. if (fInitDone == FALSE) {
  1934. ApfInitDll();
  1935. }
  1936. TimerOpen(&sTimerHandle,MICROSECONDS);
  1937. TimerInit(sTimerHandle);
  1938. //
  1939. // Call the api
  1940. //
  1941. RetVal = FillPath(Arg1);
  1942. //
  1943. // Get the elapsed time
  1944. //
  1945. ulElapsedTime = TimerRead(sTimerHandle);
  1946. ApfRecordInfo(I_FillPath, ulElapsedTime);
  1947. TimerClose(sTimerHandle);
  1948. return(RetVal);
  1949. }
  1950. BOOL ZFillRgn (HDC Arg1,HRGN Arg2,HBRUSH Arg3)
  1951. {
  1952. BOOL RetVal;
  1953. SHORT sTimerHandle;
  1954. ULONG ulElapsedTime;
  1955. if (fInitDone == FALSE) {
  1956. ApfInitDll();
  1957. }
  1958. TimerOpen(&sTimerHandle,MICROSECONDS);
  1959. TimerInit(sTimerHandle);
  1960. //
  1961. // Call the api
  1962. //
  1963. RetVal = FillRgn(Arg1,Arg2,Arg3);
  1964. //
  1965. // Get the elapsed time
  1966. //
  1967. ulElapsedTime = TimerRead(sTimerHandle);
  1968. ApfRecordInfo(I_FillRgn, ulElapsedTime);
  1969. TimerClose(sTimerHandle);
  1970. return(RetVal);
  1971. }
  1972. BOOL ZFixBrushOrgEx (HDC Arg1,int Arg2,int Arg3,LPPOINT Arg4)
  1973. {
  1974. BOOL RetVal;
  1975. SHORT sTimerHandle;
  1976. ULONG ulElapsedTime;
  1977. if (fInitDone == FALSE) {
  1978. ApfInitDll();
  1979. }
  1980. TimerOpen(&sTimerHandle,MICROSECONDS);
  1981. TimerInit(sTimerHandle);
  1982. //
  1983. // Call the api
  1984. //
  1985. RetVal = FixBrushOrgEx(Arg1,Arg2,Arg3,Arg4);
  1986. //
  1987. // Get the elapsed time
  1988. //
  1989. ulElapsedTime = TimerRead(sTimerHandle);
  1990. ApfRecordInfo(I_FixBrushOrgEx, ulElapsedTime);
  1991. TimerClose(sTimerHandle);
  1992. return(RetVal);
  1993. }
  1994. BOOL ZFlattenPath (HDC Arg1)
  1995. {
  1996. BOOL RetVal;
  1997. SHORT sTimerHandle;
  1998. ULONG ulElapsedTime;
  1999. if (fInitDone == FALSE) {
  2000. ApfInitDll();
  2001. }
  2002. TimerOpen(&sTimerHandle,MICROSECONDS);
  2003. TimerInit(sTimerHandle);
  2004. //
  2005. // Call the api
  2006. //
  2007. RetVal = FlattenPath(Arg1);
  2008. //
  2009. // Get the elapsed time
  2010. //
  2011. ulElapsedTime = TimerRead(sTimerHandle);
  2012. ApfRecordInfo(I_FlattenPath, ulElapsedTime);
  2013. TimerClose(sTimerHandle);
  2014. return(RetVal);
  2015. }
  2016. BOOL ZFloodFill (HDC Arg1,int Arg2,int Arg3,COLORREF Arg4)
  2017. {
  2018. BOOL RetVal;
  2019. SHORT sTimerHandle;
  2020. ULONG ulElapsedTime;
  2021. if (fInitDone == FALSE) {
  2022. ApfInitDll();
  2023. }
  2024. TimerOpen(&sTimerHandle,MICROSECONDS);
  2025. TimerInit(sTimerHandle);
  2026. //
  2027. // Call the api
  2028. //
  2029. RetVal = FloodFill(Arg1,Arg2,Arg3,Arg4);
  2030. //
  2031. // Get the elapsed time
  2032. //
  2033. ulElapsedTime = TimerRead(sTimerHandle);
  2034. ApfRecordInfo(I_FloodFill, ulElapsedTime);
  2035. TimerClose(sTimerHandle);
  2036. return(RetVal);
  2037. }
  2038. BOOL ZFrameRgn (HDC Arg1,HRGN Arg2,HBRUSH Arg3,int Arg4,int Arg5)
  2039. {
  2040. BOOL RetVal;
  2041. SHORT sTimerHandle;
  2042. ULONG ulElapsedTime;
  2043. if (fInitDone == FALSE) {
  2044. ApfInitDll();
  2045. }
  2046. TimerOpen(&sTimerHandle,MICROSECONDS);
  2047. TimerInit(sTimerHandle);
  2048. //
  2049. // Call the api
  2050. //
  2051. RetVal = FrameRgn(Arg1,Arg2,Arg3,Arg4,Arg5);
  2052. //
  2053. // Get the elapsed time
  2054. //
  2055. ulElapsedTime = TimerRead(sTimerHandle);
  2056. ApfRecordInfo(I_FrameRgn, ulElapsedTime);
  2057. TimerClose(sTimerHandle);
  2058. return(RetVal);
  2059. }
  2060. BOOL ZGdiComment (HDC Arg1,UINT Arg2,const BYTE* Arg3)
  2061. {
  2062. BOOL RetVal;
  2063. SHORT sTimerHandle;
  2064. ULONG ulElapsedTime;
  2065. if (fInitDone == FALSE) {
  2066. ApfInitDll();
  2067. }
  2068. TimerOpen(&sTimerHandle,MICROSECONDS);
  2069. TimerInit(sTimerHandle);
  2070. //
  2071. // Call the api
  2072. //
  2073. RetVal = GdiComment(Arg1,Arg2,Arg3);
  2074. //
  2075. // Get the elapsed time
  2076. //
  2077. ulElapsedTime = TimerRead(sTimerHandle);
  2078. ApfRecordInfo(I_GdiComment, ulElapsedTime);
  2079. TimerClose(sTimerHandle);
  2080. return(RetVal);
  2081. }
  2082. BOOL ZGdiFlush ()
  2083. {
  2084. BOOL RetVal;
  2085. SHORT sTimerHandle;
  2086. ULONG ulElapsedTime;
  2087. if (fInitDone == FALSE) {
  2088. ApfInitDll();
  2089. }
  2090. TimerOpen(&sTimerHandle,MICROSECONDS);
  2091. TimerInit(sTimerHandle);
  2092. //
  2093. // Call the api
  2094. //
  2095. RetVal = GdiFlush();
  2096. //
  2097. // Get the elapsed time
  2098. //
  2099. ulElapsedTime = TimerRead(sTimerHandle);
  2100. ApfRecordInfo(I_GdiFlush, ulElapsedTime);
  2101. TimerClose(sTimerHandle);
  2102. return(RetVal);
  2103. }
  2104. DWORD ZGdiGetBatchLimit ()
  2105. {
  2106. DWORD RetVal;
  2107. SHORT sTimerHandle;
  2108. ULONG ulElapsedTime;
  2109. if (fInitDone == FALSE) {
  2110. ApfInitDll();
  2111. }
  2112. TimerOpen(&sTimerHandle,MICROSECONDS);
  2113. TimerInit(sTimerHandle);
  2114. //
  2115. // Call the api
  2116. //
  2117. RetVal = GdiGetBatchLimit();
  2118. //
  2119. // Get the elapsed time
  2120. //
  2121. ulElapsedTime = TimerRead(sTimerHandle);
  2122. ApfRecordInfo(I_GdiGetBatchLimit, ulElapsedTime);
  2123. TimerClose(sTimerHandle);
  2124. return(RetVal);
  2125. }
  2126. DWORD ZGdiSetBatchLimit (DWORD Arg1)
  2127. {
  2128. DWORD RetVal;
  2129. SHORT sTimerHandle;
  2130. ULONG ulElapsedTime;
  2131. if (fInitDone == FALSE) {
  2132. ApfInitDll();
  2133. }
  2134. TimerOpen(&sTimerHandle,MICROSECONDS);
  2135. TimerInit(sTimerHandle);
  2136. //
  2137. // Call the api
  2138. //
  2139. RetVal = GdiSetBatchLimit(Arg1);
  2140. //
  2141. // Get the elapsed time
  2142. //
  2143. ulElapsedTime = TimerRead(sTimerHandle);
  2144. ApfRecordInfo(I_GdiSetBatchLimit, ulElapsedTime);
  2145. TimerClose(sTimerHandle);
  2146. return(RetVal);
  2147. }
  2148. int ZGetArcDirection (HDC Arg1)
  2149. {
  2150. int RetVal;
  2151. SHORT sTimerHandle;
  2152. ULONG ulElapsedTime;
  2153. if (fInitDone == FALSE) {
  2154. ApfInitDll();
  2155. }
  2156. TimerOpen(&sTimerHandle,MICROSECONDS);
  2157. TimerInit(sTimerHandle);
  2158. //
  2159. // Call the api
  2160. //
  2161. RetVal = GetArcDirection(Arg1);
  2162. //
  2163. // Get the elapsed time
  2164. //
  2165. ulElapsedTime = TimerRead(sTimerHandle);
  2166. ApfRecordInfo(I_GetArcDirection, ulElapsedTime);
  2167. TimerClose(sTimerHandle);
  2168. return(RetVal);
  2169. }
  2170. BOOL ZGetAspectRatioFilterEx (HDC Arg1,LPSIZE Arg2)
  2171. {
  2172. BOOL RetVal;
  2173. SHORT sTimerHandle;
  2174. ULONG ulElapsedTime;
  2175. if (fInitDone == FALSE) {
  2176. ApfInitDll();
  2177. }
  2178. TimerOpen(&sTimerHandle,MICROSECONDS);
  2179. TimerInit(sTimerHandle);
  2180. //
  2181. // Call the api
  2182. //
  2183. RetVal = GetAspectRatioFilterEx(Arg1,Arg2);
  2184. //
  2185. // Get the elapsed time
  2186. //
  2187. ulElapsedTime = TimerRead(sTimerHandle);
  2188. ApfRecordInfo(I_GetAspectRatioFilterEx, ulElapsedTime);
  2189. TimerClose(sTimerHandle);
  2190. return(RetVal);
  2191. }
  2192. LONG ZGetBitmapBits (HBITMAP Arg1,LONG Arg2,LPVOID Arg3)
  2193. {
  2194. LONG RetVal;
  2195. SHORT sTimerHandle;
  2196. ULONG ulElapsedTime;
  2197. if (fInitDone == FALSE) {
  2198. ApfInitDll();
  2199. }
  2200. TimerOpen(&sTimerHandle,MICROSECONDS);
  2201. TimerInit(sTimerHandle);
  2202. //
  2203. // Call the api
  2204. //
  2205. RetVal = GetBitmapBits(Arg1,Arg2,Arg3);
  2206. //
  2207. // Get the elapsed time
  2208. //
  2209. ulElapsedTime = TimerRead(sTimerHandle);
  2210. ApfRecordInfo(I_GetBitmapBits, ulElapsedTime);
  2211. TimerClose(sTimerHandle);
  2212. return(RetVal);
  2213. }
  2214. BOOL ZGetBitmapDimensionEx (HBITMAP Arg1,LPSIZE Arg2)
  2215. {
  2216. BOOL RetVal;
  2217. SHORT sTimerHandle;
  2218. ULONG ulElapsedTime;
  2219. if (fInitDone == FALSE) {
  2220. ApfInitDll();
  2221. }
  2222. TimerOpen(&sTimerHandle,MICROSECONDS);
  2223. TimerInit(sTimerHandle);
  2224. //
  2225. // Call the api
  2226. //
  2227. RetVal = GetBitmapDimensionEx(Arg1,Arg2);
  2228. //
  2229. // Get the elapsed time
  2230. //
  2231. ulElapsedTime = TimerRead(sTimerHandle);
  2232. ApfRecordInfo(I_GetBitmapDimensionEx, ulElapsedTime);
  2233. TimerClose(sTimerHandle);
  2234. return(RetVal);
  2235. }
  2236. COLORREF ZGetBkColor (HDC Arg1)
  2237. {
  2238. COLORREF RetVal;
  2239. SHORT sTimerHandle;
  2240. ULONG ulElapsedTime;
  2241. if (fInitDone == FALSE) {
  2242. ApfInitDll();
  2243. }
  2244. TimerOpen(&sTimerHandle,MICROSECONDS);
  2245. TimerInit(sTimerHandle);
  2246. //
  2247. // Call the api
  2248. //
  2249. RetVal = GetBkColor(Arg1);
  2250. //
  2251. // Get the elapsed time
  2252. //
  2253. ulElapsedTime = TimerRead(sTimerHandle);
  2254. ApfRecordInfo(I_GetBkColor, ulElapsedTime);
  2255. TimerClose(sTimerHandle);
  2256. return(RetVal);
  2257. }
  2258. int ZGetBkMode (HDC Arg1)
  2259. {
  2260. int RetVal;
  2261. SHORT sTimerHandle;
  2262. ULONG ulElapsedTime;
  2263. if (fInitDone == FALSE) {
  2264. ApfInitDll();
  2265. }
  2266. TimerOpen(&sTimerHandle,MICROSECONDS);
  2267. TimerInit(sTimerHandle);
  2268. //
  2269. // Call the api
  2270. //
  2271. RetVal = GetBkMode(Arg1);
  2272. //
  2273. // Get the elapsed time
  2274. //
  2275. ulElapsedTime = TimerRead(sTimerHandle);
  2276. ApfRecordInfo(I_GetBkMode, ulElapsedTime);
  2277. TimerClose(sTimerHandle);
  2278. return(RetVal);
  2279. }
  2280. UINT ZGetBoundsRect (HDC Arg1,LPRECT Arg2,UINT Arg3)
  2281. {
  2282. UINT RetVal;
  2283. SHORT sTimerHandle;
  2284. ULONG ulElapsedTime;
  2285. if (fInitDone == FALSE) {
  2286. ApfInitDll();
  2287. }
  2288. TimerOpen(&sTimerHandle,MICROSECONDS);
  2289. TimerInit(sTimerHandle);
  2290. //
  2291. // Call the api
  2292. //
  2293. RetVal = GetBoundsRect(Arg1,Arg2,Arg3);
  2294. //
  2295. // Get the elapsed time
  2296. //
  2297. ulElapsedTime = TimerRead(sTimerHandle);
  2298. ApfRecordInfo(I_GetBoundsRect, ulElapsedTime);
  2299. TimerClose(sTimerHandle);
  2300. return(RetVal);
  2301. }
  2302. BOOL ZGetBrushOrgEx (HDC Arg1,LPPOINT Arg2)
  2303. {
  2304. BOOL RetVal;
  2305. SHORT sTimerHandle;
  2306. ULONG ulElapsedTime;
  2307. if (fInitDone == FALSE) {
  2308. ApfInitDll();
  2309. }
  2310. TimerOpen(&sTimerHandle,MICROSECONDS);
  2311. TimerInit(sTimerHandle);
  2312. //
  2313. // Call the api
  2314. //
  2315. RetVal = GetBrushOrgEx(Arg1,Arg2);
  2316. //
  2317. // Get the elapsed time
  2318. //
  2319. ulElapsedTime = TimerRead(sTimerHandle);
  2320. ApfRecordInfo(I_GetBrushOrgEx, ulElapsedTime);
  2321. TimerClose(sTimerHandle);
  2322. return(RetVal);
  2323. }
  2324. BOOL ZGetCharABCWidthsA (HDC Arg1,UINT Arg2,UINT Arg3,LPABC Arg4)
  2325. {
  2326. BOOL RetVal;
  2327. SHORT sTimerHandle;
  2328. ULONG ulElapsedTime;
  2329. if (fInitDone == FALSE) {
  2330. ApfInitDll();
  2331. }
  2332. TimerOpen(&sTimerHandle,MICROSECONDS);
  2333. TimerInit(sTimerHandle);
  2334. //
  2335. // Call the api
  2336. //
  2337. RetVal = GetCharABCWidthsA(Arg1,Arg2,Arg3,Arg4);
  2338. //
  2339. // Get the elapsed time
  2340. //
  2341. ulElapsedTime = TimerRead(sTimerHandle);
  2342. ApfRecordInfo(I_GetCharABCWidthsA, ulElapsedTime);
  2343. TimerClose(sTimerHandle);
  2344. return(RetVal);
  2345. }
  2346. BOOL ZGetCharABCWidthsFloatA (HDC Arg1,UINT Arg2,UINT Arg3,LPABCFLOAT Arg4)
  2347. {
  2348. BOOL RetVal;
  2349. SHORT sTimerHandle;
  2350. ULONG ulElapsedTime;
  2351. if (fInitDone == FALSE) {
  2352. ApfInitDll();
  2353. }
  2354. TimerOpen(&sTimerHandle,MICROSECONDS);
  2355. TimerInit(sTimerHandle);
  2356. //
  2357. // Call the api
  2358. //
  2359. RetVal = GetCharABCWidthsFloatA(Arg1,Arg2,Arg3,Arg4);
  2360. //
  2361. // Get the elapsed time
  2362. //
  2363. ulElapsedTime = TimerRead(sTimerHandle);
  2364. ApfRecordInfo(I_GetCharABCWidthsFloatA, ulElapsedTime);
  2365. TimerClose(sTimerHandle);
  2366. return(RetVal);
  2367. }
  2368. BOOL ZGetCharABCWidthsFloatW (HDC Arg1,UINT Arg2,UINT Arg3,LPABCFLOAT Arg4)
  2369. {
  2370. BOOL RetVal;
  2371. SHORT sTimerHandle;
  2372. ULONG ulElapsedTime;
  2373. if (fInitDone == FALSE) {
  2374. ApfInitDll();
  2375. }
  2376. TimerOpen(&sTimerHandle,MICROSECONDS);
  2377. TimerInit(sTimerHandle);
  2378. //
  2379. // Call the api
  2380. //
  2381. RetVal = GetCharABCWidthsFloatW(Arg1,Arg2,Arg3,Arg4);
  2382. //
  2383. // Get the elapsed time
  2384. //
  2385. ulElapsedTime = TimerRead(sTimerHandle);
  2386. ApfRecordInfo(I_GetCharABCWidthsFloatW, ulElapsedTime);
  2387. TimerClose(sTimerHandle);
  2388. return(RetVal);
  2389. }
  2390. BOOL ZGetCharABCWidthsW (HDC Arg1,UINT Arg2,UINT Arg3,LPABC Arg4)
  2391. {
  2392. BOOL RetVal;
  2393. SHORT sTimerHandle;
  2394. ULONG ulElapsedTime;
  2395. if (fInitDone == FALSE) {
  2396. ApfInitDll();
  2397. }
  2398. TimerOpen(&sTimerHandle,MICROSECONDS);
  2399. TimerInit(sTimerHandle);
  2400. //
  2401. // Call the api
  2402. //
  2403. RetVal = GetCharABCWidthsW(Arg1,Arg2,Arg3,Arg4);
  2404. //
  2405. // Get the elapsed time
  2406. //
  2407. ulElapsedTime = TimerRead(sTimerHandle);
  2408. ApfRecordInfo(I_GetCharABCWidthsW, ulElapsedTime);
  2409. TimerClose(sTimerHandle);
  2410. return(RetVal);
  2411. }
  2412. BOOL ZGetCharWidth32A (HDC Arg1,UINT Arg2,UINT Arg3,LPINT Arg4)
  2413. {
  2414. BOOL RetVal;
  2415. SHORT sTimerHandle;
  2416. ULONG ulElapsedTime;
  2417. if (fInitDone == FALSE) {
  2418. ApfInitDll();
  2419. }
  2420. TimerOpen(&sTimerHandle,MICROSECONDS);
  2421. TimerInit(sTimerHandle);
  2422. //
  2423. // Call the api
  2424. //
  2425. RetVal = GetCharWidth32A(Arg1,Arg2,Arg3,Arg4);
  2426. //
  2427. // Get the elapsed time
  2428. //
  2429. ulElapsedTime = TimerRead(sTimerHandle);
  2430. ApfRecordInfo(I_GetCharWidth32A, ulElapsedTime);
  2431. TimerClose(sTimerHandle);
  2432. return(RetVal);
  2433. }
  2434. BOOL ZGetCharWidth32W (HDC Arg1,UINT Arg2,UINT Arg3,LPINT Arg4)
  2435. {
  2436. BOOL RetVal;
  2437. SHORT sTimerHandle;
  2438. ULONG ulElapsedTime;
  2439. if (fInitDone == FALSE) {
  2440. ApfInitDll();
  2441. }
  2442. TimerOpen(&sTimerHandle,MICROSECONDS);
  2443. TimerInit(sTimerHandle);
  2444. //
  2445. // Call the api
  2446. //
  2447. RetVal = GetCharWidth32W(Arg1,Arg2,Arg3,Arg4);
  2448. //
  2449. // Get the elapsed time
  2450. //
  2451. ulElapsedTime = TimerRead(sTimerHandle);
  2452. ApfRecordInfo(I_GetCharWidth32W, ulElapsedTime);
  2453. TimerClose(sTimerHandle);
  2454. return(RetVal);
  2455. }
  2456. BOOL ZGetCharWidthA (HDC Arg1,UINT Arg2,UINT Arg3,LPINT Arg4)
  2457. {
  2458. BOOL RetVal;
  2459. SHORT sTimerHandle;
  2460. ULONG ulElapsedTime;
  2461. if (fInitDone == FALSE) {
  2462. ApfInitDll();
  2463. }
  2464. TimerOpen(&sTimerHandle,MICROSECONDS);
  2465. TimerInit(sTimerHandle);
  2466. //
  2467. // Call the api
  2468. //
  2469. RetVal = GetCharWidthA(Arg1,Arg2,Arg3,Arg4);
  2470. //
  2471. // Get the elapsed time
  2472. //
  2473. ulElapsedTime = TimerRead(sTimerHandle);
  2474. ApfRecordInfo(I_GetCharWidthA, ulElapsedTime);
  2475. TimerClose(sTimerHandle);
  2476. return(RetVal);
  2477. }
  2478. BOOL ZGetCharWidthFloatA (HDC Arg1,UINT Arg2,UINT Arg3,PFLOAT Arg4)
  2479. {
  2480. BOOL RetVal;
  2481. SHORT sTimerHandle;
  2482. ULONG ulElapsedTime;
  2483. if (fInitDone == FALSE) {
  2484. ApfInitDll();
  2485. }
  2486. TimerOpen(&sTimerHandle,MICROSECONDS);
  2487. TimerInit(sTimerHandle);
  2488. //
  2489. // Call the api
  2490. //
  2491. RetVal = GetCharWidthFloatA(Arg1,Arg2,Arg3,Arg4);
  2492. //
  2493. // Get the elapsed time
  2494. //
  2495. ulElapsedTime = TimerRead(sTimerHandle);
  2496. ApfRecordInfo(I_GetCharWidthFloatA, ulElapsedTime);
  2497. TimerClose(sTimerHandle);
  2498. return(RetVal);
  2499. }
  2500. BOOL ZGetCharWidthFloatW (HDC Arg1,UINT Arg2,UINT Arg3,PFLOAT Arg4)
  2501. {
  2502. BOOL RetVal;
  2503. SHORT sTimerHandle;
  2504. ULONG ulElapsedTime;
  2505. if (fInitDone == FALSE) {
  2506. ApfInitDll();
  2507. }
  2508. TimerOpen(&sTimerHandle,MICROSECONDS);
  2509. TimerInit(sTimerHandle);
  2510. //
  2511. // Call the api
  2512. //
  2513. RetVal = GetCharWidthFloatW(Arg1,Arg2,Arg3,Arg4);
  2514. //
  2515. // Get the elapsed time
  2516. //
  2517. ulElapsedTime = TimerRead(sTimerHandle);
  2518. ApfRecordInfo(I_GetCharWidthFloatW, ulElapsedTime);
  2519. TimerClose(sTimerHandle);
  2520. return(RetVal);
  2521. }
  2522. BOOL ZGetCharWidthW (HDC Arg1,UINT Arg2,UINT Arg3,LPINT Arg4)
  2523. {
  2524. BOOL RetVal;
  2525. SHORT sTimerHandle;
  2526. ULONG ulElapsedTime;
  2527. if (fInitDone == FALSE) {
  2528. ApfInitDll();
  2529. }
  2530. TimerOpen(&sTimerHandle,MICROSECONDS);
  2531. TimerInit(sTimerHandle);
  2532. //
  2533. // Call the api
  2534. //
  2535. RetVal = GetCharWidthW(Arg1,Arg2,Arg3,Arg4);
  2536. //
  2537. // Get the elapsed time
  2538. //
  2539. ulElapsedTime = TimerRead(sTimerHandle);
  2540. ApfRecordInfo(I_GetCharWidthW, ulElapsedTime);
  2541. TimerClose(sTimerHandle);
  2542. return(RetVal);
  2543. }
  2544. int ZGetClipBox (HDC Arg1,LPRECT Arg2)
  2545. {
  2546. int RetVal;
  2547. SHORT sTimerHandle;
  2548. ULONG ulElapsedTime;
  2549. if (fInitDone == FALSE) {
  2550. ApfInitDll();
  2551. }
  2552. TimerOpen(&sTimerHandle,MICROSECONDS);
  2553. TimerInit(sTimerHandle);
  2554. //
  2555. // Call the api
  2556. //
  2557. RetVal = GetClipBox(Arg1,Arg2);
  2558. //
  2559. // Get the elapsed time
  2560. //
  2561. ulElapsedTime = TimerRead(sTimerHandle);
  2562. ApfRecordInfo(I_GetClipBox, ulElapsedTime);
  2563. TimerClose(sTimerHandle);
  2564. return(RetVal);
  2565. }
  2566. int ZGetClipRgn (HDC Arg1,HRGN Arg2)
  2567. {
  2568. int RetVal;
  2569. SHORT sTimerHandle;
  2570. ULONG ulElapsedTime;
  2571. if (fInitDone == FALSE) {
  2572. ApfInitDll();
  2573. }
  2574. TimerOpen(&sTimerHandle,MICROSECONDS);
  2575. TimerInit(sTimerHandle);
  2576. //
  2577. // Call the api
  2578. //
  2579. RetVal = GetClipRgn(Arg1,Arg2);
  2580. //
  2581. // Get the elapsed time
  2582. //
  2583. ulElapsedTime = TimerRead(sTimerHandle);
  2584. ApfRecordInfo(I_GetClipRgn, ulElapsedTime);
  2585. TimerClose(sTimerHandle);
  2586. return(RetVal);
  2587. }
  2588. BOOL ZGetColorAdjustment (HDC Arg1,LPCOLORADJUSTMENT Arg2)
  2589. {
  2590. BOOL RetVal;
  2591. SHORT sTimerHandle;
  2592. ULONG ulElapsedTime;
  2593. if (fInitDone == FALSE) {
  2594. ApfInitDll();
  2595. }
  2596. TimerOpen(&sTimerHandle,MICROSECONDS);
  2597. TimerInit(sTimerHandle);
  2598. //
  2599. // Call the api
  2600. //
  2601. RetVal = GetColorAdjustment(Arg1,Arg2);
  2602. //
  2603. // Get the elapsed time
  2604. //
  2605. ulElapsedTime = TimerRead(sTimerHandle);
  2606. ApfRecordInfo(I_GetColorAdjustment, ulElapsedTime);
  2607. TimerClose(sTimerHandle);
  2608. return(RetVal);
  2609. }
  2610. HGDIOBJ ZGetCurrentObject (HDC Arg1,UINT Arg2)
  2611. {
  2612. HGDIOBJ RetVal;
  2613. SHORT sTimerHandle;
  2614. ULONG ulElapsedTime;
  2615. if (fInitDone == FALSE) {
  2616. ApfInitDll();
  2617. }
  2618. TimerOpen(&sTimerHandle,MICROSECONDS);
  2619. TimerInit(sTimerHandle);
  2620. //
  2621. // Call the api
  2622. //
  2623. RetVal = GetCurrentObject(Arg1,Arg2);
  2624. //
  2625. // Get the elapsed time
  2626. //
  2627. ulElapsedTime = TimerRead(sTimerHandle);
  2628. ApfRecordInfo(I_GetCurrentObject, ulElapsedTime);
  2629. TimerClose(sTimerHandle);
  2630. return(RetVal);
  2631. }
  2632. BOOL ZGetCurrentPositionEx (HDC Arg1,LPPOINT Arg2)
  2633. {
  2634. BOOL RetVal;
  2635. SHORT sTimerHandle;
  2636. ULONG ulElapsedTime;
  2637. if (fInitDone == FALSE) {
  2638. ApfInitDll();
  2639. }
  2640. TimerOpen(&sTimerHandle,MICROSECONDS);
  2641. TimerInit(sTimerHandle);
  2642. //
  2643. // Call the api
  2644. //
  2645. RetVal = GetCurrentPositionEx(Arg1,Arg2);
  2646. //
  2647. // Get the elapsed time
  2648. //
  2649. ulElapsedTime = TimerRead(sTimerHandle);
  2650. ApfRecordInfo(I_GetCurrentPositionEx, ulElapsedTime);
  2651. TimerClose(sTimerHandle);
  2652. return(RetVal);
  2653. }
  2654. BOOL ZGetDCOrgEx (HDC Arg1,LPPOINT Arg2)
  2655. {
  2656. BOOL RetVal;
  2657. SHORT sTimerHandle;
  2658. ULONG ulElapsedTime;
  2659. if (fInitDone == FALSE) {
  2660. ApfInitDll();
  2661. }
  2662. TimerOpen(&sTimerHandle,MICROSECONDS);
  2663. TimerInit(sTimerHandle);
  2664. //
  2665. // Call the api
  2666. //
  2667. RetVal = GetDCOrgEx(Arg1,Arg2);
  2668. //
  2669. // Get the elapsed time
  2670. //
  2671. ulElapsedTime = TimerRead(sTimerHandle);
  2672. ApfRecordInfo(I_GetDCOrgEx, ulElapsedTime);
  2673. TimerClose(sTimerHandle);
  2674. return(RetVal);
  2675. }
  2676. int ZGetDIBits (HDC Arg1,HBITMAP Arg2,UINT Arg3,UINT Arg4,LPVOID Arg5,LPBITMAPINFO Arg6,UINT Arg7)
  2677. {
  2678. int RetVal;
  2679. SHORT sTimerHandle;
  2680. ULONG ulElapsedTime;
  2681. if (fInitDone == FALSE) {
  2682. ApfInitDll();
  2683. }
  2684. TimerOpen(&sTimerHandle,MICROSECONDS);
  2685. TimerInit(sTimerHandle);
  2686. //
  2687. // Call the api
  2688. //
  2689. RetVal = GetDIBits(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7);
  2690. //
  2691. // Get the elapsed time
  2692. //
  2693. ulElapsedTime = TimerRead(sTimerHandle);
  2694. ApfRecordInfo(I_GetDIBits, ulElapsedTime);
  2695. TimerClose(sTimerHandle);
  2696. return(RetVal);
  2697. }
  2698. int ZGetDeviceCaps (HDC Arg1,int Arg2)
  2699. {
  2700. int RetVal;
  2701. SHORT sTimerHandle;
  2702. ULONG ulElapsedTime;
  2703. if (fInitDone == FALSE) {
  2704. ApfInitDll();
  2705. }
  2706. TimerOpen(&sTimerHandle,MICROSECONDS);
  2707. TimerInit(sTimerHandle);
  2708. //
  2709. // Call the api
  2710. //
  2711. RetVal = GetDeviceCaps(Arg1,Arg2);
  2712. //
  2713. // Get the elapsed time
  2714. //
  2715. ulElapsedTime = TimerRead(sTimerHandle);
  2716. ApfRecordInfo(I_GetDeviceCaps, ulElapsedTime);
  2717. TimerClose(sTimerHandle);
  2718. return(RetVal);
  2719. }
  2720. HENHMETAFILE ZGetEnhMetaFileA (LPCSTR Arg1)
  2721. {
  2722. HENHMETAFILE RetVal;
  2723. SHORT sTimerHandle;
  2724. ULONG ulElapsedTime;
  2725. if (fInitDone == FALSE) {
  2726. ApfInitDll();
  2727. }
  2728. TimerOpen(&sTimerHandle,MICROSECONDS);
  2729. TimerInit(sTimerHandle);
  2730. //
  2731. // Call the api
  2732. //
  2733. RetVal = GetEnhMetaFileA(Arg1);
  2734. //
  2735. // Get the elapsed time
  2736. //
  2737. ulElapsedTime = TimerRead(sTimerHandle);
  2738. ApfRecordInfo(I_GetEnhMetaFileA, ulElapsedTime);
  2739. TimerClose(sTimerHandle);
  2740. return(RetVal);
  2741. }
  2742. UINT ZGetEnhMetaFileBits (HENHMETAFILE Arg1,UINT Arg2,LPBYTE Arg3)
  2743. {
  2744. UINT RetVal;
  2745. SHORT sTimerHandle;
  2746. ULONG ulElapsedTime;
  2747. if (fInitDone == FALSE) {
  2748. ApfInitDll();
  2749. }
  2750. TimerOpen(&sTimerHandle,MICROSECONDS);
  2751. TimerInit(sTimerHandle);
  2752. //
  2753. // Call the api
  2754. //
  2755. RetVal = GetEnhMetaFileBits(Arg1,Arg2,Arg3);
  2756. //
  2757. // Get the elapsed time
  2758. //
  2759. ulElapsedTime = TimerRead(sTimerHandle);
  2760. ApfRecordInfo(I_GetEnhMetaFileBits, ulElapsedTime);
  2761. TimerClose(sTimerHandle);
  2762. return(RetVal);
  2763. }
  2764. UINT ZGetEnhMetaFileDescriptionA (HENHMETAFILE Arg1,UINT Arg2,LPSTR Arg3)
  2765. {
  2766. UINT RetVal;
  2767. SHORT sTimerHandle;
  2768. ULONG ulElapsedTime;
  2769. if (fInitDone == FALSE) {
  2770. ApfInitDll();
  2771. }
  2772. TimerOpen(&sTimerHandle,MICROSECONDS);
  2773. TimerInit(sTimerHandle);
  2774. //
  2775. // Call the api
  2776. //
  2777. RetVal = GetEnhMetaFileDescriptionA(Arg1,Arg2,Arg3);
  2778. //
  2779. // Get the elapsed time
  2780. //
  2781. ulElapsedTime = TimerRead(sTimerHandle);
  2782. ApfRecordInfo(I_GetEnhMetaFileDescriptionA, ulElapsedTime);
  2783. TimerClose(sTimerHandle);
  2784. return(RetVal);
  2785. }
  2786. UINT ZGetEnhMetaFileDescriptionW (HENHMETAFILE Arg1,UINT Arg2,LPWSTR Arg3)
  2787. {
  2788. UINT RetVal;
  2789. SHORT sTimerHandle;
  2790. ULONG ulElapsedTime;
  2791. if (fInitDone == FALSE) {
  2792. ApfInitDll();
  2793. }
  2794. TimerOpen(&sTimerHandle,MICROSECONDS);
  2795. TimerInit(sTimerHandle);
  2796. //
  2797. // Call the api
  2798. //
  2799. RetVal = GetEnhMetaFileDescriptionW(Arg1,Arg2,Arg3);
  2800. //
  2801. // Get the elapsed time
  2802. //
  2803. ulElapsedTime = TimerRead(sTimerHandle);
  2804. ApfRecordInfo(I_GetEnhMetaFileDescriptionW, ulElapsedTime);
  2805. TimerClose(sTimerHandle);
  2806. return(RetVal);
  2807. }
  2808. UINT ZGetEnhMetaFileHeader (HENHMETAFILE Arg1,UINT Arg2,LPENHMETAHEADER Arg3)
  2809. {
  2810. UINT RetVal;
  2811. SHORT sTimerHandle;
  2812. ULONG ulElapsedTime;
  2813. if (fInitDone == FALSE) {
  2814. ApfInitDll();
  2815. }
  2816. TimerOpen(&sTimerHandle,MICROSECONDS);
  2817. TimerInit(sTimerHandle);
  2818. //
  2819. // Call the api
  2820. //
  2821. RetVal = GetEnhMetaFileHeader(Arg1,Arg2,Arg3);
  2822. //
  2823. // Get the elapsed time
  2824. //
  2825. ulElapsedTime = TimerRead(sTimerHandle);
  2826. ApfRecordInfo(I_GetEnhMetaFileHeader, ulElapsedTime);
  2827. TimerClose(sTimerHandle);
  2828. return(RetVal);
  2829. }
  2830. UINT ZGetEnhMetaFilePaletteEntries (HENHMETAFILE Arg1,UINT Arg2,LPPALETTEENTRY Arg3)
  2831. {
  2832. UINT RetVal;
  2833. SHORT sTimerHandle;
  2834. ULONG ulElapsedTime;
  2835. if (fInitDone == FALSE) {
  2836. ApfInitDll();
  2837. }
  2838. TimerOpen(&sTimerHandle,MICROSECONDS);
  2839. TimerInit(sTimerHandle);
  2840. //
  2841. // Call the api
  2842. //
  2843. RetVal = GetEnhMetaFilePaletteEntries(Arg1,Arg2,Arg3);
  2844. //
  2845. // Get the elapsed time
  2846. //
  2847. ulElapsedTime = TimerRead(sTimerHandle);
  2848. ApfRecordInfo(I_GetEnhMetaFilePaletteEntries, ulElapsedTime);
  2849. TimerClose(sTimerHandle);
  2850. return(RetVal);
  2851. }
  2852. HENHMETAFILE ZGetEnhMetaFileW (LPCWSTR Arg1)
  2853. {
  2854. HENHMETAFILE RetVal;
  2855. SHORT sTimerHandle;
  2856. ULONG ulElapsedTime;
  2857. if (fInitDone == FALSE) {
  2858. ApfInitDll();
  2859. }
  2860. TimerOpen(&sTimerHandle,MICROSECONDS);
  2861. TimerInit(sTimerHandle);
  2862. //
  2863. // Call the api
  2864. //
  2865. RetVal = GetEnhMetaFileW(Arg1);
  2866. //
  2867. // Get the elapsed time
  2868. //
  2869. ulElapsedTime = TimerRead(sTimerHandle);
  2870. ApfRecordInfo(I_GetEnhMetaFileW, ulElapsedTime);
  2871. TimerClose(sTimerHandle);
  2872. return(RetVal);
  2873. }
  2874. DWORD ZGetFontData (HDC Arg1,DWORD Arg2,DWORD Arg3,LPVOID Arg4,DWORD Arg5)
  2875. {
  2876. DWORD RetVal;
  2877. SHORT sTimerHandle;
  2878. ULONG ulElapsedTime;
  2879. if (fInitDone == FALSE) {
  2880. ApfInitDll();
  2881. }
  2882. TimerOpen(&sTimerHandle,MICROSECONDS);
  2883. TimerInit(sTimerHandle);
  2884. //
  2885. // Call the api
  2886. //
  2887. RetVal = GetFontData(Arg1,Arg2,Arg3,Arg4,Arg5);
  2888. //
  2889. // Get the elapsed time
  2890. //
  2891. ulElapsedTime = TimerRead(sTimerHandle);
  2892. ApfRecordInfo(I_GetFontData, ulElapsedTime);
  2893. TimerClose(sTimerHandle);
  2894. return(RetVal);
  2895. }
  2896. DWORD ZGetGlyphOutlineA (HDC Arg1,UINT Arg2,UINT Arg3,LPGLYPHMETRICS Arg4,DWORD Arg5,LPVOID Arg6,const MAT2* Arg7)
  2897. {
  2898. DWORD RetVal;
  2899. SHORT sTimerHandle;
  2900. ULONG ulElapsedTime;
  2901. if (fInitDone == FALSE) {
  2902. ApfInitDll();
  2903. }
  2904. TimerOpen(&sTimerHandle,MICROSECONDS);
  2905. TimerInit(sTimerHandle);
  2906. //
  2907. // Call the api
  2908. //
  2909. RetVal = GetGlyphOutlineA(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7);
  2910. //
  2911. // Get the elapsed time
  2912. //
  2913. ulElapsedTime = TimerRead(sTimerHandle);
  2914. ApfRecordInfo(I_GetGlyphOutlineA, ulElapsedTime);
  2915. TimerClose(sTimerHandle);
  2916. return(RetVal);
  2917. }
  2918. DWORD ZGetGlyphOutlineW (HDC Arg1,UINT Arg2,UINT Arg3,LPGLYPHMETRICS Arg4,DWORD Arg5,LPVOID Arg6,const MAT2* Arg7)
  2919. {
  2920. DWORD RetVal;
  2921. SHORT sTimerHandle;
  2922. ULONG ulElapsedTime;
  2923. if (fInitDone == FALSE) {
  2924. ApfInitDll();
  2925. }
  2926. TimerOpen(&sTimerHandle,MICROSECONDS);
  2927. TimerInit(sTimerHandle);
  2928. //
  2929. // Call the api
  2930. //
  2931. RetVal = GetGlyphOutlineW(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7);
  2932. //
  2933. // Get the elapsed time
  2934. //
  2935. ulElapsedTime = TimerRead(sTimerHandle);
  2936. ApfRecordInfo(I_GetGlyphOutlineW, ulElapsedTime);
  2937. TimerClose(sTimerHandle);
  2938. return(RetVal);
  2939. }
  2940. int ZGetGraphicsMode (HDC Arg1)
  2941. {
  2942. int RetVal;
  2943. SHORT sTimerHandle;
  2944. ULONG ulElapsedTime;
  2945. if (fInitDone == FALSE) {
  2946. ApfInitDll();
  2947. }
  2948. TimerOpen(&sTimerHandle,MICROSECONDS);
  2949. TimerInit(sTimerHandle);
  2950. //
  2951. // Call the api
  2952. //
  2953. RetVal = GetGraphicsMode(Arg1);
  2954. //
  2955. // Get the elapsed time
  2956. //
  2957. ulElapsedTime = TimerRead(sTimerHandle);
  2958. ApfRecordInfo(I_GetGraphicsMode, ulElapsedTime);
  2959. TimerClose(sTimerHandle);
  2960. return(RetVal);
  2961. }
  2962. DWORD ZGetKerningPairsA (HDC Arg1,DWORD Arg2,LPKERNINGPAIR Arg3)
  2963. {
  2964. DWORD RetVal;
  2965. SHORT sTimerHandle;
  2966. ULONG ulElapsedTime;
  2967. if (fInitDone == FALSE) {
  2968. ApfInitDll();
  2969. }
  2970. TimerOpen(&sTimerHandle,MICROSECONDS);
  2971. TimerInit(sTimerHandle);
  2972. //
  2973. // Call the api
  2974. //
  2975. RetVal = GetKerningPairsA(Arg1,Arg2,Arg3);
  2976. //
  2977. // Get the elapsed time
  2978. //
  2979. ulElapsedTime = TimerRead(sTimerHandle);
  2980. ApfRecordInfo(I_GetKerningPairsA, ulElapsedTime);
  2981. TimerClose(sTimerHandle);
  2982. return(RetVal);
  2983. }
  2984. DWORD ZGetKerningPairsW (HDC Arg1,DWORD Arg2,LPKERNINGPAIR Arg3)
  2985. {
  2986. DWORD RetVal;
  2987. SHORT sTimerHandle;
  2988. ULONG ulElapsedTime;
  2989. if (fInitDone == FALSE) {
  2990. ApfInitDll();
  2991. }
  2992. TimerOpen(&sTimerHandle,MICROSECONDS);
  2993. TimerInit(sTimerHandle);
  2994. //
  2995. // Call the api
  2996. //
  2997. RetVal = GetKerningPairsW(Arg1,Arg2,Arg3);
  2998. //
  2999. // Get the elapsed time
  3000. //
  3001. ulElapsedTime = TimerRead(sTimerHandle);
  3002. ApfRecordInfo(I_GetKerningPairsW, ulElapsedTime);
  3003. TimerClose(sTimerHandle);
  3004. return(RetVal);
  3005. }
  3006. int ZGetMapMode (HDC Arg1)
  3007. {
  3008. int RetVal;
  3009. SHORT sTimerHandle;
  3010. ULONG ulElapsedTime;
  3011. if (fInitDone == FALSE) {
  3012. ApfInitDll();
  3013. }
  3014. TimerOpen(&sTimerHandle,MICROSECONDS);
  3015. TimerInit(sTimerHandle);
  3016. //
  3017. // Call the api
  3018. //
  3019. RetVal = GetMapMode(Arg1);
  3020. //
  3021. // Get the elapsed time
  3022. //
  3023. ulElapsedTime = TimerRead(sTimerHandle);
  3024. ApfRecordInfo(I_GetMapMode, ulElapsedTime);
  3025. TimerClose(sTimerHandle);
  3026. return(RetVal);
  3027. }
  3028. HMETAFILE ZGetMetaFileA (LPCSTR Arg1)
  3029. {
  3030. HMETAFILE RetVal;
  3031. SHORT sTimerHandle;
  3032. ULONG ulElapsedTime;
  3033. if (fInitDone == FALSE) {
  3034. ApfInitDll();
  3035. }
  3036. TimerOpen(&sTimerHandle,MICROSECONDS);
  3037. TimerInit(sTimerHandle);
  3038. //
  3039. // Call the api
  3040. //
  3041. RetVal = GetMetaFileA(Arg1);
  3042. //
  3043. // Get the elapsed time
  3044. //
  3045. ulElapsedTime = TimerRead(sTimerHandle);
  3046. ApfRecordInfo(I_GetMetaFileA, ulElapsedTime);
  3047. TimerClose(sTimerHandle);
  3048. return(RetVal);
  3049. }
  3050. UINT ZGetMetaFileBitsEx (HMETAFILE Arg1,UINT Arg2,LPVOID Arg3)
  3051. {
  3052. UINT RetVal;
  3053. SHORT sTimerHandle;
  3054. ULONG ulElapsedTime;
  3055. if (fInitDone == FALSE) {
  3056. ApfInitDll();
  3057. }
  3058. TimerOpen(&sTimerHandle,MICROSECONDS);
  3059. TimerInit(sTimerHandle);
  3060. //
  3061. // Call the api
  3062. //
  3063. RetVal = GetMetaFileBitsEx(Arg1,Arg2,Arg3);
  3064. //
  3065. // Get the elapsed time
  3066. //
  3067. ulElapsedTime = TimerRead(sTimerHandle);
  3068. ApfRecordInfo(I_GetMetaFileBitsEx, ulElapsedTime);
  3069. TimerClose(sTimerHandle);
  3070. return(RetVal);
  3071. }
  3072. HMETAFILE ZGetMetaFileW (LPCWSTR Arg1)
  3073. {
  3074. HMETAFILE RetVal;
  3075. SHORT sTimerHandle;
  3076. ULONG ulElapsedTime;
  3077. if (fInitDone == FALSE) {
  3078. ApfInitDll();
  3079. }
  3080. TimerOpen(&sTimerHandle,MICROSECONDS);
  3081. TimerInit(sTimerHandle);
  3082. //
  3083. // Call the api
  3084. //
  3085. RetVal = GetMetaFileW(Arg1);
  3086. //
  3087. // Get the elapsed time
  3088. //
  3089. ulElapsedTime = TimerRead(sTimerHandle);
  3090. ApfRecordInfo(I_GetMetaFileW, ulElapsedTime);
  3091. TimerClose(sTimerHandle);
  3092. return(RetVal);
  3093. }
  3094. int ZGetMetaRgn (HDC Arg1,HRGN Arg2)
  3095. {
  3096. int RetVal;
  3097. SHORT sTimerHandle;
  3098. ULONG ulElapsedTime;
  3099. if (fInitDone == FALSE) {
  3100. ApfInitDll();
  3101. }
  3102. TimerOpen(&sTimerHandle,MICROSECONDS);
  3103. TimerInit(sTimerHandle);
  3104. //
  3105. // Call the api
  3106. //
  3107. RetVal = GetMetaRgn(Arg1,Arg2);
  3108. //
  3109. // Get the elapsed time
  3110. //
  3111. ulElapsedTime = TimerRead(sTimerHandle);
  3112. ApfRecordInfo(I_GetMetaRgn, ulElapsedTime);
  3113. TimerClose(sTimerHandle);
  3114. return(RetVal);
  3115. }
  3116. BOOL ZGetMiterLimit (HDC Arg1,PFLOAT Arg2)
  3117. {
  3118. BOOL RetVal;
  3119. SHORT sTimerHandle;
  3120. ULONG ulElapsedTime;
  3121. if (fInitDone == FALSE) {
  3122. ApfInitDll();
  3123. }
  3124. TimerOpen(&sTimerHandle,MICROSECONDS);
  3125. TimerInit(sTimerHandle);
  3126. //
  3127. // Call the api
  3128. //
  3129. RetVal = GetMiterLimit(Arg1,Arg2);
  3130. //
  3131. // Get the elapsed time
  3132. //
  3133. ulElapsedTime = TimerRead(sTimerHandle);
  3134. ApfRecordInfo(I_GetMiterLimit, ulElapsedTime);
  3135. TimerClose(sTimerHandle);
  3136. return(RetVal);
  3137. }
  3138. COLORREF ZGetNearestColor (HDC Arg1,COLORREF Arg2)
  3139. {
  3140. COLORREF RetVal;
  3141. SHORT sTimerHandle;
  3142. ULONG ulElapsedTime;
  3143. if (fInitDone == FALSE) {
  3144. ApfInitDll();
  3145. }
  3146. TimerOpen(&sTimerHandle,MICROSECONDS);
  3147. TimerInit(sTimerHandle);
  3148. //
  3149. // Call the api
  3150. //
  3151. RetVal = GetNearestColor(Arg1,Arg2);
  3152. //
  3153. // Get the elapsed time
  3154. //
  3155. ulElapsedTime = TimerRead(sTimerHandle);
  3156. ApfRecordInfo(I_GetNearestColor, ulElapsedTime);
  3157. TimerClose(sTimerHandle);
  3158. return(RetVal);
  3159. }
  3160. UINT ZGetNearestPaletteIndex (HPALETTE Arg1,COLORREF Arg2)
  3161. {
  3162. UINT RetVal;
  3163. SHORT sTimerHandle;
  3164. ULONG ulElapsedTime;
  3165. if (fInitDone == FALSE) {
  3166. ApfInitDll();
  3167. }
  3168. TimerOpen(&sTimerHandle,MICROSECONDS);
  3169. TimerInit(sTimerHandle);
  3170. //
  3171. // Call the api
  3172. //
  3173. RetVal = GetNearestPaletteIndex(Arg1,Arg2);
  3174. //
  3175. // Get the elapsed time
  3176. //
  3177. ulElapsedTime = TimerRead(sTimerHandle);
  3178. ApfRecordInfo(I_GetNearestPaletteIndex, ulElapsedTime);
  3179. TimerClose(sTimerHandle);
  3180. return(RetVal);
  3181. }
  3182. int ZGetObjectA (HGDIOBJ Arg1,int Arg2,LPVOID Arg3)
  3183. {
  3184. int RetVal;
  3185. SHORT sTimerHandle;
  3186. ULONG ulElapsedTime;
  3187. if (fInitDone == FALSE) {
  3188. ApfInitDll();
  3189. }
  3190. TimerOpen(&sTimerHandle,MICROSECONDS);
  3191. TimerInit(sTimerHandle);
  3192. //
  3193. // Call the api
  3194. //
  3195. RetVal = GetObjectA(Arg1,Arg2,Arg3);
  3196. //
  3197. // Get the elapsed time
  3198. //
  3199. ulElapsedTime = TimerRead(sTimerHandle);
  3200. ApfRecordInfo(I_GetObjectA, ulElapsedTime);
  3201. TimerClose(sTimerHandle);
  3202. return(RetVal);
  3203. }
  3204. DWORD ZGetObjectType (HGDIOBJ h)
  3205. {
  3206. DWORD RetVal;
  3207. SHORT sTimerHandle;
  3208. ULONG ulElapsedTime;
  3209. if (fInitDone == FALSE) {
  3210. ApfInitDll();
  3211. }
  3212. TimerOpen(&sTimerHandle,MICROSECONDS);
  3213. TimerInit(sTimerHandle);
  3214. //
  3215. // Call the api
  3216. //
  3217. RetVal = GetObjectType(h);
  3218. //
  3219. // Get the elapsed time
  3220. //
  3221. ulElapsedTime = TimerRead(sTimerHandle);
  3222. ApfRecordInfo(I_GetObjectType, ulElapsedTime);
  3223. TimerClose(sTimerHandle);
  3224. return(RetVal);
  3225. }
  3226. int ZGetObjectW (HGDIOBJ Arg1,int Arg2,LPVOID Arg3)
  3227. {
  3228. int RetVal;
  3229. SHORT sTimerHandle;
  3230. ULONG ulElapsedTime;
  3231. if (fInitDone == FALSE) {
  3232. ApfInitDll();
  3233. }
  3234. TimerOpen(&sTimerHandle,MICROSECONDS);
  3235. TimerInit(sTimerHandle);
  3236. //
  3237. // Call the api
  3238. //
  3239. RetVal = GetObjectW(Arg1,Arg2,Arg3);
  3240. //
  3241. // Get the elapsed time
  3242. //
  3243. ulElapsedTime = TimerRead(sTimerHandle);
  3244. ApfRecordInfo(I_GetObjectW, ulElapsedTime);
  3245. TimerClose(sTimerHandle);
  3246. return(RetVal);
  3247. }
  3248. UINT ZGetOutlineTextMetricsA (HDC Arg1,UINT Arg2,LPOUTLINETEXTMETRICA Arg3)
  3249. {
  3250. UINT RetVal;
  3251. SHORT sTimerHandle;
  3252. ULONG ulElapsedTime;
  3253. if (fInitDone == FALSE) {
  3254. ApfInitDll();
  3255. }
  3256. TimerOpen(&sTimerHandle,MICROSECONDS);
  3257. TimerInit(sTimerHandle);
  3258. //
  3259. // Call the api
  3260. //
  3261. RetVal = GetOutlineTextMetricsA(Arg1,Arg2,Arg3);
  3262. //
  3263. // Get the elapsed time
  3264. //
  3265. ulElapsedTime = TimerRead(sTimerHandle);
  3266. ApfRecordInfo(I_GetOutlineTextMetricsA, ulElapsedTime);
  3267. TimerClose(sTimerHandle);
  3268. return(RetVal);
  3269. }
  3270. UINT ZGetOutlineTextMetricsW (HDC Arg1,UINT Arg2,LPOUTLINETEXTMETRICW Arg3)
  3271. {
  3272. UINT RetVal;
  3273. SHORT sTimerHandle;
  3274. ULONG ulElapsedTime;
  3275. if (fInitDone == FALSE) {
  3276. ApfInitDll();
  3277. }
  3278. TimerOpen(&sTimerHandle,MICROSECONDS);
  3279. TimerInit(sTimerHandle);
  3280. //
  3281. // Call the api
  3282. //
  3283. RetVal = GetOutlineTextMetricsW(Arg1,Arg2,Arg3);
  3284. //
  3285. // Get the elapsed time
  3286. //
  3287. ulElapsedTime = TimerRead(sTimerHandle);
  3288. ApfRecordInfo(I_GetOutlineTextMetricsW, ulElapsedTime);
  3289. TimerClose(sTimerHandle);
  3290. return(RetVal);
  3291. }
  3292. UINT ZGetPaletteEntries (HPALETTE Arg1,UINT Arg2,UINT Arg3,LPPALETTEENTRY Arg4)
  3293. {
  3294. UINT RetVal;
  3295. SHORT sTimerHandle;
  3296. ULONG ulElapsedTime;
  3297. if (fInitDone == FALSE) {
  3298. ApfInitDll();
  3299. }
  3300. TimerOpen(&sTimerHandle,MICROSECONDS);
  3301. TimerInit(sTimerHandle);
  3302. //
  3303. // Call the api
  3304. //
  3305. RetVal = GetPaletteEntries(Arg1,Arg2,Arg3,Arg4);
  3306. //
  3307. // Get the elapsed time
  3308. //
  3309. ulElapsedTime = TimerRead(sTimerHandle);
  3310. ApfRecordInfo(I_GetPaletteEntries, ulElapsedTime);
  3311. TimerClose(sTimerHandle);
  3312. return(RetVal);
  3313. }
  3314. int ZGetPath (HDC Arg1,LPPOINT Arg2,LPBYTE Arg3,int Arg4)
  3315. {
  3316. int RetVal;
  3317. SHORT sTimerHandle;
  3318. ULONG ulElapsedTime;
  3319. if (fInitDone == FALSE) {
  3320. ApfInitDll();
  3321. }
  3322. TimerOpen(&sTimerHandle,MICROSECONDS);
  3323. TimerInit(sTimerHandle);
  3324. //
  3325. // Call the api
  3326. //
  3327. RetVal = GetPath(Arg1,Arg2,Arg3,Arg4);
  3328. //
  3329. // Get the elapsed time
  3330. //
  3331. ulElapsedTime = TimerRead(sTimerHandle);
  3332. ApfRecordInfo(I_GetPath, ulElapsedTime);
  3333. TimerClose(sTimerHandle);
  3334. return(RetVal);
  3335. }
  3336. COLORREF ZGetPixel (HDC Arg1,int Arg2,int Arg3)
  3337. {
  3338. COLORREF RetVal;
  3339. SHORT sTimerHandle;
  3340. ULONG ulElapsedTime;
  3341. if (fInitDone == FALSE) {
  3342. ApfInitDll();
  3343. }
  3344. TimerOpen(&sTimerHandle,MICROSECONDS);
  3345. TimerInit(sTimerHandle);
  3346. //
  3347. // Call the api
  3348. //
  3349. RetVal = GetPixel(Arg1,Arg2,Arg3);
  3350. //
  3351. // Get the elapsed time
  3352. //
  3353. ulElapsedTime = TimerRead(sTimerHandle);
  3354. ApfRecordInfo(I_GetPixel, ulElapsedTime);
  3355. TimerClose(sTimerHandle);
  3356. return(RetVal);
  3357. }
  3358. int ZGetPolyFillMode (HDC Arg1)
  3359. {
  3360. int RetVal;
  3361. SHORT sTimerHandle;
  3362. ULONG ulElapsedTime;
  3363. if (fInitDone == FALSE) {
  3364. ApfInitDll();
  3365. }
  3366. TimerOpen(&sTimerHandle,MICROSECONDS);
  3367. TimerInit(sTimerHandle);
  3368. //
  3369. // Call the api
  3370. //
  3371. RetVal = GetPolyFillMode(Arg1);
  3372. //
  3373. // Get the elapsed time
  3374. //
  3375. ulElapsedTime = TimerRead(sTimerHandle);
  3376. ApfRecordInfo(I_GetPolyFillMode, ulElapsedTime);
  3377. TimerClose(sTimerHandle);
  3378. return(RetVal);
  3379. }
  3380. int ZGetROP2 (HDC Arg1)
  3381. {
  3382. int RetVal;
  3383. SHORT sTimerHandle;
  3384. ULONG ulElapsedTime;
  3385. if (fInitDone == FALSE) {
  3386. ApfInitDll();
  3387. }
  3388. TimerOpen(&sTimerHandle,MICROSECONDS);
  3389. TimerInit(sTimerHandle);
  3390. //
  3391. // Call the api
  3392. //
  3393. RetVal = GetROP2(Arg1);
  3394. //
  3395. // Get the elapsed time
  3396. //
  3397. ulElapsedTime = TimerRead(sTimerHandle);
  3398. ApfRecordInfo(I_GetROP2, ulElapsedTime);
  3399. TimerClose(sTimerHandle);
  3400. return(RetVal);
  3401. }
  3402. BOOL ZGetRasterizerCaps (LPRASTERIZER_STATUS Arg1,UINT Arg2)
  3403. {
  3404. BOOL RetVal;
  3405. SHORT sTimerHandle;
  3406. ULONG ulElapsedTime;
  3407. if (fInitDone == FALSE) {
  3408. ApfInitDll();
  3409. }
  3410. TimerOpen(&sTimerHandle,MICROSECONDS);
  3411. TimerInit(sTimerHandle);
  3412. //
  3413. // Call the api
  3414. //
  3415. RetVal = GetRasterizerCaps(Arg1,Arg2);
  3416. //
  3417. // Get the elapsed time
  3418. //
  3419. ulElapsedTime = TimerRead(sTimerHandle);
  3420. ApfRecordInfo(I_GetRasterizerCaps, ulElapsedTime);
  3421. TimerClose(sTimerHandle);
  3422. return(RetVal);
  3423. }
  3424. DWORD ZGetRegionData (HRGN Arg1,DWORD Arg2,LPRGNDATA Arg3)
  3425. {
  3426. DWORD RetVal;
  3427. SHORT sTimerHandle;
  3428. ULONG ulElapsedTime;
  3429. if (fInitDone == FALSE) {
  3430. ApfInitDll();
  3431. }
  3432. TimerOpen(&sTimerHandle,MICROSECONDS);
  3433. TimerInit(sTimerHandle);
  3434. //
  3435. // Call the api
  3436. //
  3437. RetVal = GetRegionData(Arg1,Arg2,Arg3);
  3438. //
  3439. // Get the elapsed time
  3440. //
  3441. ulElapsedTime = TimerRead(sTimerHandle);
  3442. ApfRecordInfo(I_GetRegionData, ulElapsedTime);
  3443. TimerClose(sTimerHandle);
  3444. return(RetVal);
  3445. }
  3446. int ZGetRgnBox (HRGN Arg1,LPRECT Arg2)
  3447. {
  3448. int RetVal;
  3449. SHORT sTimerHandle;
  3450. ULONG ulElapsedTime;
  3451. if (fInitDone == FALSE) {
  3452. ApfInitDll();
  3453. }
  3454. TimerOpen(&sTimerHandle,MICROSECONDS);
  3455. TimerInit(sTimerHandle);
  3456. //
  3457. // Call the api
  3458. //
  3459. RetVal = GetRgnBox(Arg1,Arg2);
  3460. //
  3461. // Get the elapsed time
  3462. //
  3463. ulElapsedTime = TimerRead(sTimerHandle);
  3464. ApfRecordInfo(I_GetRgnBox, ulElapsedTime);
  3465. TimerClose(sTimerHandle);
  3466. return(RetVal);
  3467. }
  3468. HGDIOBJ ZGetStockObject (int Arg1)
  3469. {
  3470. HGDIOBJ RetVal;
  3471. SHORT sTimerHandle;
  3472. ULONG ulElapsedTime;
  3473. if (fInitDone == FALSE) {
  3474. ApfInitDll();
  3475. }
  3476. TimerOpen(&sTimerHandle,MICROSECONDS);
  3477. TimerInit(sTimerHandle);
  3478. //
  3479. // Call the api
  3480. //
  3481. RetVal = GetStockObject(Arg1);
  3482. //
  3483. // Get the elapsed time
  3484. //
  3485. ulElapsedTime = TimerRead(sTimerHandle);
  3486. ApfRecordInfo(I_GetStockObject, ulElapsedTime);
  3487. TimerClose(sTimerHandle);
  3488. return(RetVal);
  3489. }
  3490. int ZGetStretchBltMode (HDC Arg1)
  3491. {
  3492. int RetVal;
  3493. SHORT sTimerHandle;
  3494. ULONG ulElapsedTime;
  3495. if (fInitDone == FALSE) {
  3496. ApfInitDll();
  3497. }
  3498. TimerOpen(&sTimerHandle,MICROSECONDS);
  3499. TimerInit(sTimerHandle);
  3500. //
  3501. // Call the api
  3502. //
  3503. RetVal = GetStretchBltMode(Arg1);
  3504. //
  3505. // Get the elapsed time
  3506. //
  3507. ulElapsedTime = TimerRead(sTimerHandle);
  3508. ApfRecordInfo(I_GetStretchBltMode, ulElapsedTime);
  3509. TimerClose(sTimerHandle);
  3510. return(RetVal);
  3511. }
  3512. UINT ZGetSystemPaletteEntries (HDC Arg1,UINT Arg2,UINT Arg3,LPPALETTEENTRY Arg4)
  3513. {
  3514. UINT RetVal;
  3515. SHORT sTimerHandle;
  3516. ULONG ulElapsedTime;
  3517. if (fInitDone == FALSE) {
  3518. ApfInitDll();
  3519. }
  3520. TimerOpen(&sTimerHandle,MICROSECONDS);
  3521. TimerInit(sTimerHandle);
  3522. //
  3523. // Call the api
  3524. //
  3525. RetVal = GetSystemPaletteEntries(Arg1,Arg2,Arg3,Arg4);
  3526. //
  3527. // Get the elapsed time
  3528. //
  3529. ulElapsedTime = TimerRead(sTimerHandle);
  3530. ApfRecordInfo(I_GetSystemPaletteEntries, ulElapsedTime);
  3531. TimerClose(sTimerHandle);
  3532. return(RetVal);
  3533. }
  3534. UINT ZGetSystemPaletteUse (HDC Arg1)
  3535. {
  3536. UINT RetVal;
  3537. SHORT sTimerHandle;
  3538. ULONG ulElapsedTime;
  3539. if (fInitDone == FALSE) {
  3540. ApfInitDll();
  3541. }
  3542. TimerOpen(&sTimerHandle,MICROSECONDS);
  3543. TimerInit(sTimerHandle);
  3544. //
  3545. // Call the api
  3546. //
  3547. RetVal = GetSystemPaletteUse(Arg1);
  3548. //
  3549. // Get the elapsed time
  3550. //
  3551. ulElapsedTime = TimerRead(sTimerHandle);
  3552. ApfRecordInfo(I_GetSystemPaletteUse, ulElapsedTime);
  3553. TimerClose(sTimerHandle);
  3554. return(RetVal);
  3555. }
  3556. UINT ZGetTextAlign (HDC Arg1)
  3557. {
  3558. UINT RetVal;
  3559. SHORT sTimerHandle;
  3560. ULONG ulElapsedTime;
  3561. if (fInitDone == FALSE) {
  3562. ApfInitDll();
  3563. }
  3564. TimerOpen(&sTimerHandle,MICROSECONDS);
  3565. TimerInit(sTimerHandle);
  3566. //
  3567. // Call the api
  3568. //
  3569. RetVal = GetTextAlign(Arg1);
  3570. //
  3571. // Get the elapsed time
  3572. //
  3573. ulElapsedTime = TimerRead(sTimerHandle);
  3574. ApfRecordInfo(I_GetTextAlign, ulElapsedTime);
  3575. TimerClose(sTimerHandle);
  3576. return(RetVal);
  3577. }
  3578. int ZGetTextCharacterExtra (HDC Arg1)
  3579. {
  3580. int RetVal;
  3581. SHORT sTimerHandle;
  3582. ULONG ulElapsedTime;
  3583. if (fInitDone == FALSE) {
  3584. ApfInitDll();
  3585. }
  3586. TimerOpen(&sTimerHandle,MICROSECONDS);
  3587. TimerInit(sTimerHandle);
  3588. //
  3589. // Call the api
  3590. //
  3591. RetVal = GetTextCharacterExtra(Arg1);
  3592. //
  3593. // Get the elapsed time
  3594. //
  3595. ulElapsedTime = TimerRead(sTimerHandle);
  3596. ApfRecordInfo(I_GetTextCharacterExtra, ulElapsedTime);
  3597. TimerClose(sTimerHandle);
  3598. return(RetVal);
  3599. }
  3600. COLORREF ZGetTextColor (HDC Arg1)
  3601. {
  3602. COLORREF RetVal;
  3603. SHORT sTimerHandle;
  3604. ULONG ulElapsedTime;
  3605. if (fInitDone == FALSE) {
  3606. ApfInitDll();
  3607. }
  3608. TimerOpen(&sTimerHandle,MICROSECONDS);
  3609. TimerInit(sTimerHandle);
  3610. //
  3611. // Call the api
  3612. //
  3613. RetVal = GetTextColor(Arg1);
  3614. //
  3615. // Get the elapsed time
  3616. //
  3617. ulElapsedTime = TimerRead(sTimerHandle);
  3618. ApfRecordInfo(I_GetTextColor, ulElapsedTime);
  3619. TimerClose(sTimerHandle);
  3620. return(RetVal);
  3621. }
  3622. BOOL ZGetTextExtentExPointA (HDC Arg1,LPCSTR Arg2,int Arg3,int Arg4,LPINT Arg5,LPINT Arg6,LPSIZE Arg7)
  3623. {
  3624. BOOL RetVal;
  3625. SHORT sTimerHandle;
  3626. ULONG ulElapsedTime;
  3627. if (fInitDone == FALSE) {
  3628. ApfInitDll();
  3629. }
  3630. TimerOpen(&sTimerHandle,MICROSECONDS);
  3631. TimerInit(sTimerHandle);
  3632. //
  3633. // Call the api
  3634. //
  3635. RetVal = GetTextExtentExPointA(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7);
  3636. //
  3637. // Get the elapsed time
  3638. //
  3639. ulElapsedTime = TimerRead(sTimerHandle);
  3640. ApfRecordInfo(I_GetTextExtentExPointA, ulElapsedTime);
  3641. TimerClose(sTimerHandle);
  3642. return(RetVal);
  3643. }
  3644. BOOL ZGetTextExtentExPointW (HDC Arg1,LPCWSTR Arg2,int Arg3,int Arg4,LPINT Arg5,LPINT Arg6,LPSIZE Arg7)
  3645. {
  3646. BOOL RetVal;
  3647. SHORT sTimerHandle;
  3648. ULONG ulElapsedTime;
  3649. if (fInitDone == FALSE) {
  3650. ApfInitDll();
  3651. }
  3652. TimerOpen(&sTimerHandle,MICROSECONDS);
  3653. TimerInit(sTimerHandle);
  3654. //
  3655. // Call the api
  3656. //
  3657. RetVal = GetTextExtentExPointW(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7);
  3658. //
  3659. // Get the elapsed time
  3660. //
  3661. ulElapsedTime = TimerRead(sTimerHandle);
  3662. ApfRecordInfo(I_GetTextExtentExPointW, ulElapsedTime);
  3663. TimerClose(sTimerHandle);
  3664. return(RetVal);
  3665. }
  3666. BOOL ZGetTextExtentPoint32A (HDC Arg1,LPCSTR Arg2,int Arg3,LPSIZE Arg4)
  3667. {
  3668. BOOL RetVal;
  3669. SHORT sTimerHandle;
  3670. ULONG ulElapsedTime;
  3671. if (fInitDone == FALSE) {
  3672. ApfInitDll();
  3673. }
  3674. TimerOpen(&sTimerHandle,MICROSECONDS);
  3675. TimerInit(sTimerHandle);
  3676. //
  3677. // Call the api
  3678. //
  3679. RetVal = GetTextExtentPoint32A(Arg1,Arg2,Arg3,Arg4);
  3680. //
  3681. // Get the elapsed time
  3682. //
  3683. ulElapsedTime = TimerRead(sTimerHandle);
  3684. ApfRecordInfo(I_GetTextExtentPoint32A, ulElapsedTime);
  3685. TimerClose(sTimerHandle);
  3686. return(RetVal);
  3687. }
  3688. BOOL ZGetTextExtentPoint32W (HDC Arg1,LPCWSTR Arg2,int Arg3,LPSIZE Arg4)
  3689. {
  3690. BOOL RetVal;
  3691. SHORT sTimerHandle;
  3692. ULONG ulElapsedTime;
  3693. if (fInitDone == FALSE) {
  3694. ApfInitDll();
  3695. }
  3696. TimerOpen(&sTimerHandle,MICROSECONDS);
  3697. TimerInit(sTimerHandle);
  3698. //
  3699. // Call the api
  3700. //
  3701. RetVal = GetTextExtentPoint32W(Arg1,Arg2,Arg3,Arg4);
  3702. //
  3703. // Get the elapsed time
  3704. //
  3705. ulElapsedTime = TimerRead(sTimerHandle);
  3706. ApfRecordInfo(I_GetTextExtentPoint32W, ulElapsedTime);
  3707. TimerClose(sTimerHandle);
  3708. return(RetVal);
  3709. }
  3710. BOOL ZGetTextExtentPointA (HDC Arg1,LPCSTR Arg2,int Arg3,LPSIZE Arg4)
  3711. {
  3712. BOOL RetVal;
  3713. SHORT sTimerHandle;
  3714. ULONG ulElapsedTime;
  3715. if (fInitDone == FALSE) {
  3716. ApfInitDll();
  3717. }
  3718. TimerOpen(&sTimerHandle,MICROSECONDS);
  3719. TimerInit(sTimerHandle);
  3720. //
  3721. // Call the api
  3722. //
  3723. RetVal = GetTextExtentPointA(Arg1,Arg2,Arg3,Arg4);
  3724. //
  3725. // Get the elapsed time
  3726. //
  3727. ulElapsedTime = TimerRead(sTimerHandle);
  3728. ApfRecordInfo(I_GetTextExtentPointA, ulElapsedTime);
  3729. TimerClose(sTimerHandle);
  3730. return(RetVal);
  3731. }
  3732. BOOL ZGetTextExtentPointW (HDC Arg1,LPCWSTR Arg2,int Arg3,LPSIZE Arg4)
  3733. {
  3734. BOOL RetVal;
  3735. SHORT sTimerHandle;
  3736. ULONG ulElapsedTime;
  3737. if (fInitDone == FALSE) {
  3738. ApfInitDll();
  3739. }
  3740. TimerOpen(&sTimerHandle,MICROSECONDS);
  3741. TimerInit(sTimerHandle);
  3742. //
  3743. // Call the api
  3744. //
  3745. RetVal = GetTextExtentPointW(Arg1,Arg2,Arg3,Arg4);
  3746. //
  3747. // Get the elapsed time
  3748. //
  3749. ulElapsedTime = TimerRead(sTimerHandle);
  3750. ApfRecordInfo(I_GetTextExtentPointW, ulElapsedTime);
  3751. TimerClose(sTimerHandle);
  3752. return(RetVal);
  3753. }
  3754. int ZGetTextFaceA (HDC Arg1,int Arg2,LPSTR Arg3)
  3755. {
  3756. int RetVal;
  3757. SHORT sTimerHandle;
  3758. ULONG ulElapsedTime;
  3759. if (fInitDone == FALSE) {
  3760. ApfInitDll();
  3761. }
  3762. TimerOpen(&sTimerHandle,MICROSECONDS);
  3763. TimerInit(sTimerHandle);
  3764. //
  3765. // Call the api
  3766. //
  3767. RetVal = GetTextFaceA(Arg1,Arg2,Arg3);
  3768. //
  3769. // Get the elapsed time
  3770. //
  3771. ulElapsedTime = TimerRead(sTimerHandle);
  3772. ApfRecordInfo(I_GetTextFaceA, ulElapsedTime);
  3773. TimerClose(sTimerHandle);
  3774. return(RetVal);
  3775. }
  3776. int ZGetTextFaceW (HDC Arg1,int Arg2,LPWSTR Arg3)
  3777. {
  3778. int RetVal;
  3779. SHORT sTimerHandle;
  3780. ULONG ulElapsedTime;
  3781. if (fInitDone == FALSE) {
  3782. ApfInitDll();
  3783. }
  3784. TimerOpen(&sTimerHandle,MICROSECONDS);
  3785. TimerInit(sTimerHandle);
  3786. //
  3787. // Call the api
  3788. //
  3789. RetVal = GetTextFaceW(Arg1,Arg2,Arg3);
  3790. //
  3791. // Get the elapsed time
  3792. //
  3793. ulElapsedTime = TimerRead(sTimerHandle);
  3794. ApfRecordInfo(I_GetTextFaceW, ulElapsedTime);
  3795. TimerClose(sTimerHandle);
  3796. return(RetVal);
  3797. }
  3798. BOOL ZGetTextMetricsA (HDC Arg1,LPTEXTMETRICA Arg2)
  3799. {
  3800. BOOL RetVal;
  3801. SHORT sTimerHandle;
  3802. ULONG ulElapsedTime;
  3803. if (fInitDone == FALSE) {
  3804. ApfInitDll();
  3805. }
  3806. TimerOpen(&sTimerHandle,MICROSECONDS);
  3807. TimerInit(sTimerHandle);
  3808. //
  3809. // Call the api
  3810. //
  3811. RetVal = GetTextMetricsA(Arg1,Arg2);
  3812. //
  3813. // Get the elapsed time
  3814. //
  3815. ulElapsedTime = TimerRead(sTimerHandle);
  3816. ApfRecordInfo(I_GetTextMetricsA, ulElapsedTime);
  3817. TimerClose(sTimerHandle);
  3818. return(RetVal);
  3819. }
  3820. BOOL ZGetTextMetricsW (HDC Arg1,LPTEXTMETRICW Arg2)
  3821. {
  3822. BOOL RetVal;
  3823. SHORT sTimerHandle;
  3824. ULONG ulElapsedTime;
  3825. if (fInitDone == FALSE) {
  3826. ApfInitDll();
  3827. }
  3828. TimerOpen(&sTimerHandle,MICROSECONDS);
  3829. TimerInit(sTimerHandle);
  3830. //
  3831. // Call the api
  3832. //
  3833. RetVal = GetTextMetricsW(Arg1,Arg2);
  3834. //
  3835. // Get the elapsed time
  3836. //
  3837. ulElapsedTime = TimerRead(sTimerHandle);
  3838. ApfRecordInfo(I_GetTextMetricsW, ulElapsedTime);
  3839. TimerClose(sTimerHandle);
  3840. return(RetVal);
  3841. }
  3842. BOOL ZGetViewportExtEx (HDC Arg1,LPSIZE Arg2)
  3843. {
  3844. BOOL RetVal;
  3845. SHORT sTimerHandle;
  3846. ULONG ulElapsedTime;
  3847. if (fInitDone == FALSE) {
  3848. ApfInitDll();
  3849. }
  3850. TimerOpen(&sTimerHandle,MICROSECONDS);
  3851. TimerInit(sTimerHandle);
  3852. //
  3853. // Call the api
  3854. //
  3855. RetVal = GetViewportExtEx(Arg1,Arg2);
  3856. //
  3857. // Get the elapsed time
  3858. //
  3859. ulElapsedTime = TimerRead(sTimerHandle);
  3860. ApfRecordInfo(I_GetViewportExtEx, ulElapsedTime);
  3861. TimerClose(sTimerHandle);
  3862. return(RetVal);
  3863. }
  3864. BOOL ZGetViewportOrgEx (HDC Arg1,LPPOINT Arg2)
  3865. {
  3866. BOOL RetVal;
  3867. SHORT sTimerHandle;
  3868. ULONG ulElapsedTime;
  3869. if (fInitDone == FALSE) {
  3870. ApfInitDll();
  3871. }
  3872. TimerOpen(&sTimerHandle,MICROSECONDS);
  3873. TimerInit(sTimerHandle);
  3874. //
  3875. // Call the api
  3876. //
  3877. RetVal = GetViewportOrgEx(Arg1,Arg2);
  3878. //
  3879. // Get the elapsed time
  3880. //
  3881. ulElapsedTime = TimerRead(sTimerHandle);
  3882. ApfRecordInfo(I_GetViewportOrgEx, ulElapsedTime);
  3883. TimerClose(sTimerHandle);
  3884. return(RetVal);
  3885. }
  3886. UINT ZGetWinMetaFileBits (HENHMETAFILE Arg1,UINT Arg2,LPBYTE Arg3,INT Arg4,HDC Arg5)
  3887. {
  3888. UINT RetVal;
  3889. SHORT sTimerHandle;
  3890. ULONG ulElapsedTime;
  3891. if (fInitDone == FALSE) {
  3892. ApfInitDll();
  3893. }
  3894. TimerOpen(&sTimerHandle,MICROSECONDS);
  3895. TimerInit(sTimerHandle);
  3896. //
  3897. // Call the api
  3898. //
  3899. RetVal = GetWinMetaFileBits(Arg1,Arg2,Arg3,Arg4,Arg5);
  3900. //
  3901. // Get the elapsed time
  3902. //
  3903. ulElapsedTime = TimerRead(sTimerHandle);
  3904. ApfRecordInfo(I_GetWinMetaFileBits, ulElapsedTime);
  3905. TimerClose(sTimerHandle);
  3906. return(RetVal);
  3907. }
  3908. BOOL ZGetWindowExtEx (HDC Arg1,LPSIZE Arg2)
  3909. {
  3910. BOOL RetVal;
  3911. SHORT sTimerHandle;
  3912. ULONG ulElapsedTime;
  3913. if (fInitDone == FALSE) {
  3914. ApfInitDll();
  3915. }
  3916. TimerOpen(&sTimerHandle,MICROSECONDS);
  3917. TimerInit(sTimerHandle);
  3918. //
  3919. // Call the api
  3920. //
  3921. RetVal = GetWindowExtEx(Arg1,Arg2);
  3922. //
  3923. // Get the elapsed time
  3924. //
  3925. ulElapsedTime = TimerRead(sTimerHandle);
  3926. ApfRecordInfo(I_GetWindowExtEx, ulElapsedTime);
  3927. TimerClose(sTimerHandle);
  3928. return(RetVal);
  3929. }
  3930. BOOL ZGetWindowOrgEx (HDC Arg1,LPPOINT Arg2)
  3931. {
  3932. BOOL RetVal;
  3933. SHORT sTimerHandle;
  3934. ULONG ulElapsedTime;
  3935. if (fInitDone == FALSE) {
  3936. ApfInitDll();
  3937. }
  3938. TimerOpen(&sTimerHandle,MICROSECONDS);
  3939. TimerInit(sTimerHandle);
  3940. //
  3941. // Call the api
  3942. //
  3943. RetVal = GetWindowOrgEx(Arg1,Arg2);
  3944. //
  3945. // Get the elapsed time
  3946. //
  3947. ulElapsedTime = TimerRead(sTimerHandle);
  3948. ApfRecordInfo(I_GetWindowOrgEx, ulElapsedTime);
  3949. TimerClose(sTimerHandle);
  3950. return(RetVal);
  3951. }
  3952. BOOL ZGetWorldTransform (HDC Arg1,LPXFORM Arg2)
  3953. {
  3954. BOOL RetVal;
  3955. SHORT sTimerHandle;
  3956. ULONG ulElapsedTime;
  3957. if (fInitDone == FALSE) {
  3958. ApfInitDll();
  3959. }
  3960. TimerOpen(&sTimerHandle,MICROSECONDS);
  3961. TimerInit(sTimerHandle);
  3962. //
  3963. // Call the api
  3964. //
  3965. RetVal = GetWorldTransform(Arg1,Arg2);
  3966. //
  3967. // Get the elapsed time
  3968. //
  3969. ulElapsedTime = TimerRead(sTimerHandle);
  3970. ApfRecordInfo(I_GetWorldTransform, ulElapsedTime);
  3971. TimerClose(sTimerHandle);
  3972. return(RetVal);
  3973. }
  3974. int ZIntersectClipRect (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5)
  3975. {
  3976. int RetVal;
  3977. SHORT sTimerHandle;
  3978. ULONG ulElapsedTime;
  3979. if (fInitDone == FALSE) {
  3980. ApfInitDll();
  3981. }
  3982. TimerOpen(&sTimerHandle,MICROSECONDS);
  3983. TimerInit(sTimerHandle);
  3984. //
  3985. // Call the api
  3986. //
  3987. RetVal = IntersectClipRect(Arg1,Arg2,Arg3,Arg4,Arg5);
  3988. //
  3989. // Get the elapsed time
  3990. //
  3991. ulElapsedTime = TimerRead(sTimerHandle);
  3992. ApfRecordInfo(I_IntersectClipRect, ulElapsedTime);
  3993. TimerClose(sTimerHandle);
  3994. return(RetVal);
  3995. }
  3996. BOOL ZInvertRgn (HDC Arg1,HRGN Arg2)
  3997. {
  3998. BOOL RetVal;
  3999. SHORT sTimerHandle;
  4000. ULONG ulElapsedTime;
  4001. if (fInitDone == FALSE) {
  4002. ApfInitDll();
  4003. }
  4004. TimerOpen(&sTimerHandle,MICROSECONDS);
  4005. TimerInit(sTimerHandle);
  4006. //
  4007. // Call the api
  4008. //
  4009. RetVal = InvertRgn(Arg1,Arg2);
  4010. //
  4011. // Get the elapsed time
  4012. //
  4013. ulElapsedTime = TimerRead(sTimerHandle);
  4014. ApfRecordInfo(I_InvertRgn, ulElapsedTime);
  4015. TimerClose(sTimerHandle);
  4016. return(RetVal);
  4017. }
  4018. BOOL ZLPtoDP (HDC Arg1,LPPOINT Arg2,int Arg3)
  4019. {
  4020. BOOL RetVal;
  4021. SHORT sTimerHandle;
  4022. ULONG ulElapsedTime;
  4023. if (fInitDone == FALSE) {
  4024. ApfInitDll();
  4025. }
  4026. TimerOpen(&sTimerHandle,MICROSECONDS);
  4027. TimerInit(sTimerHandle);
  4028. //
  4029. // Call the api
  4030. //
  4031. RetVal = LPtoDP(Arg1,Arg2,Arg3);
  4032. //
  4033. // Get the elapsed time
  4034. //
  4035. ulElapsedTime = TimerRead(sTimerHandle);
  4036. ApfRecordInfo(I_LPtoDP, ulElapsedTime);
  4037. TimerClose(sTimerHandle);
  4038. return(RetVal);
  4039. }
  4040. BOOL ZLineDDA (int Arg1,int Arg2,int Arg3,int Arg4,LINEDDAPROC Arg5,LPARAM Arg6)
  4041. {
  4042. BOOL RetVal;
  4043. SHORT sTimerHandle;
  4044. ULONG ulElapsedTime;
  4045. if (fInitDone == FALSE) {
  4046. ApfInitDll();
  4047. }
  4048. TimerOpen(&sTimerHandle,MICROSECONDS);
  4049. TimerInit(sTimerHandle);
  4050. //
  4051. // Call the api
  4052. //
  4053. RetVal = LineDDA(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  4054. //
  4055. // Get the elapsed time
  4056. //
  4057. ulElapsedTime = TimerRead(sTimerHandle);
  4058. ApfRecordInfo(I_LineDDA, ulElapsedTime);
  4059. TimerClose(sTimerHandle);
  4060. return(RetVal);
  4061. }
  4062. BOOL ZLineTo (HDC Arg1,int Arg2,int Arg3)
  4063. {
  4064. BOOL RetVal;
  4065. SHORT sTimerHandle;
  4066. ULONG ulElapsedTime;
  4067. if (fInitDone == FALSE) {
  4068. ApfInitDll();
  4069. }
  4070. TimerOpen(&sTimerHandle,MICROSECONDS);
  4071. TimerInit(sTimerHandle);
  4072. //
  4073. // Call the api
  4074. //
  4075. RetVal = LineTo(Arg1,Arg2,Arg3);
  4076. //
  4077. // Get the elapsed time
  4078. //
  4079. ulElapsedTime = TimerRead(sTimerHandle);
  4080. ApfRecordInfo(I_LineTo, ulElapsedTime);
  4081. TimerClose(sTimerHandle);
  4082. return(RetVal);
  4083. }
  4084. BOOL ZMaskBlt (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,HDC Arg6,int Arg7,int Arg8,HBITMAP Arg9,int Arg10,int Arg11,DWORD Arg12)
  4085. {
  4086. BOOL RetVal;
  4087. SHORT sTimerHandle;
  4088. ULONG ulElapsedTime;
  4089. if (fInitDone == FALSE) {
  4090. ApfInitDll();
  4091. }
  4092. TimerOpen(&sTimerHandle,MICROSECONDS);
  4093. TimerInit(sTimerHandle);
  4094. //
  4095. // Call the api
  4096. //
  4097. RetVal = MaskBlt(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9,Arg10,Arg11,Arg12);
  4098. //
  4099. // Get the elapsed time
  4100. //
  4101. ulElapsedTime = TimerRead(sTimerHandle);
  4102. ApfRecordInfo(I_MaskBlt, ulElapsedTime);
  4103. TimerClose(sTimerHandle);
  4104. return(RetVal);
  4105. }
  4106. BOOL ZModifyWorldTransform (HDC Arg1,const XFORM* Arg2,DWORD Arg3)
  4107. {
  4108. BOOL RetVal;
  4109. SHORT sTimerHandle;
  4110. ULONG ulElapsedTime;
  4111. if (fInitDone == FALSE) {
  4112. ApfInitDll();
  4113. }
  4114. TimerOpen(&sTimerHandle,MICROSECONDS);
  4115. TimerInit(sTimerHandle);
  4116. //
  4117. // Call the api
  4118. //
  4119. RetVal = ModifyWorldTransform(Arg1,Arg2,Arg3);
  4120. //
  4121. // Get the elapsed time
  4122. //
  4123. ulElapsedTime = TimerRead(sTimerHandle);
  4124. ApfRecordInfo(I_ModifyWorldTransform, ulElapsedTime);
  4125. TimerClose(sTimerHandle);
  4126. return(RetVal);
  4127. }
  4128. BOOL ZMoveToEx (HDC Arg1,int Arg2,int Arg3,LPPOINT Arg4)
  4129. {
  4130. BOOL RetVal;
  4131. SHORT sTimerHandle;
  4132. ULONG ulElapsedTime;
  4133. if (fInitDone == FALSE) {
  4134. ApfInitDll();
  4135. }
  4136. TimerOpen(&sTimerHandle,MICROSECONDS);
  4137. TimerInit(sTimerHandle);
  4138. //
  4139. // Call the api
  4140. //
  4141. RetVal = MoveToEx(Arg1,Arg2,Arg3,Arg4);
  4142. //
  4143. // Get the elapsed time
  4144. //
  4145. ulElapsedTime = TimerRead(sTimerHandle);
  4146. ApfRecordInfo(I_MoveToEx, ulElapsedTime);
  4147. TimerClose(sTimerHandle);
  4148. return(RetVal);
  4149. }
  4150. int ZOffsetClipRgn (HDC Arg1,int Arg2,int Arg3)
  4151. {
  4152. int RetVal;
  4153. SHORT sTimerHandle;
  4154. ULONG ulElapsedTime;
  4155. if (fInitDone == FALSE) {
  4156. ApfInitDll();
  4157. }
  4158. TimerOpen(&sTimerHandle,MICROSECONDS);
  4159. TimerInit(sTimerHandle);
  4160. //
  4161. // Call the api
  4162. //
  4163. RetVal = OffsetClipRgn(Arg1,Arg2,Arg3);
  4164. //
  4165. // Get the elapsed time
  4166. //
  4167. ulElapsedTime = TimerRead(sTimerHandle);
  4168. ApfRecordInfo(I_OffsetClipRgn, ulElapsedTime);
  4169. TimerClose(sTimerHandle);
  4170. return(RetVal);
  4171. }
  4172. int ZOffsetRgn (HRGN Arg1,int Arg2,int Arg3)
  4173. {
  4174. int RetVal;
  4175. SHORT sTimerHandle;
  4176. ULONG ulElapsedTime;
  4177. if (fInitDone == FALSE) {
  4178. ApfInitDll();
  4179. }
  4180. TimerOpen(&sTimerHandle,MICROSECONDS);
  4181. TimerInit(sTimerHandle);
  4182. //
  4183. // Call the api
  4184. //
  4185. RetVal = OffsetRgn(Arg1,Arg2,Arg3);
  4186. //
  4187. // Get the elapsed time
  4188. //
  4189. ulElapsedTime = TimerRead(sTimerHandle);
  4190. ApfRecordInfo(I_OffsetRgn, ulElapsedTime);
  4191. TimerClose(sTimerHandle);
  4192. return(RetVal);
  4193. }
  4194. BOOL ZOffsetViewportOrgEx (HDC Arg1,int Arg2,int Arg3,LPPOINT Arg4)
  4195. {
  4196. BOOL RetVal;
  4197. SHORT sTimerHandle;
  4198. ULONG ulElapsedTime;
  4199. if (fInitDone == FALSE) {
  4200. ApfInitDll();
  4201. }
  4202. TimerOpen(&sTimerHandle,MICROSECONDS);
  4203. TimerInit(sTimerHandle);
  4204. //
  4205. // Call the api
  4206. //
  4207. RetVal = OffsetViewportOrgEx(Arg1,Arg2,Arg3,Arg4);
  4208. //
  4209. // Get the elapsed time
  4210. //
  4211. ulElapsedTime = TimerRead(sTimerHandle);
  4212. ApfRecordInfo(I_OffsetViewportOrgEx, ulElapsedTime);
  4213. TimerClose(sTimerHandle);
  4214. return(RetVal);
  4215. }
  4216. BOOL ZOffsetWindowOrgEx (HDC Arg1,int Arg2,int Arg3,LPPOINT Arg4)
  4217. {
  4218. BOOL RetVal;
  4219. SHORT sTimerHandle;
  4220. ULONG ulElapsedTime;
  4221. if (fInitDone == FALSE) {
  4222. ApfInitDll();
  4223. }
  4224. TimerOpen(&sTimerHandle,MICROSECONDS);
  4225. TimerInit(sTimerHandle);
  4226. //
  4227. // Call the api
  4228. //
  4229. RetVal = OffsetWindowOrgEx(Arg1,Arg2,Arg3,Arg4);
  4230. //
  4231. // Get the elapsed time
  4232. //
  4233. ulElapsedTime = TimerRead(sTimerHandle);
  4234. ApfRecordInfo(I_OffsetWindowOrgEx, ulElapsedTime);
  4235. TimerClose(sTimerHandle);
  4236. return(RetVal);
  4237. }
  4238. BOOL ZPaintRgn (HDC Arg1,HRGN Arg2)
  4239. {
  4240. BOOL RetVal;
  4241. SHORT sTimerHandle;
  4242. ULONG ulElapsedTime;
  4243. if (fInitDone == FALSE) {
  4244. ApfInitDll();
  4245. }
  4246. TimerOpen(&sTimerHandle,MICROSECONDS);
  4247. TimerInit(sTimerHandle);
  4248. //
  4249. // Call the api
  4250. //
  4251. RetVal = PaintRgn(Arg1,Arg2);
  4252. //
  4253. // Get the elapsed time
  4254. //
  4255. ulElapsedTime = TimerRead(sTimerHandle);
  4256. ApfRecordInfo(I_PaintRgn, ulElapsedTime);
  4257. TimerClose(sTimerHandle);
  4258. return(RetVal);
  4259. }
  4260. BOOL ZPatBlt (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,DWORD Arg6)
  4261. {
  4262. BOOL RetVal;
  4263. SHORT sTimerHandle;
  4264. ULONG ulElapsedTime;
  4265. if (fInitDone == FALSE) {
  4266. ApfInitDll();
  4267. }
  4268. TimerOpen(&sTimerHandle,MICROSECONDS);
  4269. TimerInit(sTimerHandle);
  4270. //
  4271. // Call the api
  4272. //
  4273. RetVal = PatBlt(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  4274. //
  4275. // Get the elapsed time
  4276. //
  4277. ulElapsedTime = TimerRead(sTimerHandle);
  4278. ApfRecordInfo(I_PatBlt, ulElapsedTime);
  4279. TimerClose(sTimerHandle);
  4280. return(RetVal);
  4281. }
  4282. HRGN ZPathToRegion (HDC Arg1)
  4283. {
  4284. HRGN RetVal;
  4285. SHORT sTimerHandle;
  4286. ULONG ulElapsedTime;
  4287. if (fInitDone == FALSE) {
  4288. ApfInitDll();
  4289. }
  4290. TimerOpen(&sTimerHandle,MICROSECONDS);
  4291. TimerInit(sTimerHandle);
  4292. //
  4293. // Call the api
  4294. //
  4295. RetVal = PathToRegion(Arg1);
  4296. //
  4297. // Get the elapsed time
  4298. //
  4299. ulElapsedTime = TimerRead(sTimerHandle);
  4300. ApfRecordInfo(I_PathToRegion, ulElapsedTime);
  4301. TimerClose(sTimerHandle);
  4302. return(RetVal);
  4303. }
  4304. BOOL ZPie (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,int Arg6,int Arg7,int Arg8,int Arg9)
  4305. {
  4306. BOOL RetVal;
  4307. SHORT sTimerHandle;
  4308. ULONG ulElapsedTime;
  4309. if (fInitDone == FALSE) {
  4310. ApfInitDll();
  4311. }
  4312. TimerOpen(&sTimerHandle,MICROSECONDS);
  4313. TimerInit(sTimerHandle);
  4314. //
  4315. // Call the api
  4316. //
  4317. RetVal = Pie(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9);
  4318. //
  4319. // Get the elapsed time
  4320. //
  4321. ulElapsedTime = TimerRead(sTimerHandle);
  4322. ApfRecordInfo(I_Pie, ulElapsedTime);
  4323. TimerClose(sTimerHandle);
  4324. return(RetVal);
  4325. }
  4326. BOOL ZPlayEnhMetaFile (HDC Arg1,HENHMETAFILE Arg2,const RECT* Arg3)
  4327. {
  4328. BOOL RetVal;
  4329. SHORT sTimerHandle;
  4330. ULONG ulElapsedTime;
  4331. if (fInitDone == FALSE) {
  4332. ApfInitDll();
  4333. }
  4334. TimerOpen(&sTimerHandle,MICROSECONDS);
  4335. TimerInit(sTimerHandle);
  4336. //
  4337. // Call the api
  4338. //
  4339. RetVal = PlayEnhMetaFile(Arg1,Arg2,Arg3);
  4340. //
  4341. // Get the elapsed time
  4342. //
  4343. ulElapsedTime = TimerRead(sTimerHandle);
  4344. ApfRecordInfo(I_PlayEnhMetaFile, ulElapsedTime);
  4345. TimerClose(sTimerHandle);
  4346. return(RetVal);
  4347. }
  4348. BOOL ZPlayEnhMetaFileRecord (HDC Arg1,LPHANDLETABLE Arg2,const ENHMETARECORD* Arg3,UINT Arg4)
  4349. {
  4350. BOOL RetVal;
  4351. SHORT sTimerHandle;
  4352. ULONG ulElapsedTime;
  4353. if (fInitDone == FALSE) {
  4354. ApfInitDll();
  4355. }
  4356. TimerOpen(&sTimerHandle,MICROSECONDS);
  4357. TimerInit(sTimerHandle);
  4358. //
  4359. // Call the api
  4360. //
  4361. RetVal = PlayEnhMetaFileRecord(Arg1,Arg2,Arg3,Arg4);
  4362. //
  4363. // Get the elapsed time
  4364. //
  4365. ulElapsedTime = TimerRead(sTimerHandle);
  4366. ApfRecordInfo(I_PlayEnhMetaFileRecord, ulElapsedTime);
  4367. TimerClose(sTimerHandle);
  4368. return(RetVal);
  4369. }
  4370. BOOL ZPlayMetaFile (HDC Arg1,HMETAFILE Arg2)
  4371. {
  4372. BOOL RetVal;
  4373. SHORT sTimerHandle;
  4374. ULONG ulElapsedTime;
  4375. if (fInitDone == FALSE) {
  4376. ApfInitDll();
  4377. }
  4378. TimerOpen(&sTimerHandle,MICROSECONDS);
  4379. TimerInit(sTimerHandle);
  4380. //
  4381. // Call the api
  4382. //
  4383. RetVal = PlayMetaFile(Arg1,Arg2);
  4384. //
  4385. // Get the elapsed time
  4386. //
  4387. ulElapsedTime = TimerRead(sTimerHandle);
  4388. ApfRecordInfo(I_PlayMetaFile, ulElapsedTime);
  4389. TimerClose(sTimerHandle);
  4390. return(RetVal);
  4391. }
  4392. BOOL ZPlayMetaFileRecord (HDC Arg1,LPHANDLETABLE Arg2,LPMETARECORD Arg3,UINT Arg4)
  4393. {
  4394. BOOL RetVal;
  4395. SHORT sTimerHandle;
  4396. ULONG ulElapsedTime;
  4397. if (fInitDone == FALSE) {
  4398. ApfInitDll();
  4399. }
  4400. TimerOpen(&sTimerHandle,MICROSECONDS);
  4401. TimerInit(sTimerHandle);
  4402. //
  4403. // Call the api
  4404. //
  4405. RetVal = PlayMetaFileRecord(Arg1,Arg2,Arg3,Arg4);
  4406. //
  4407. // Get the elapsed time
  4408. //
  4409. ulElapsedTime = TimerRead(sTimerHandle);
  4410. ApfRecordInfo(I_PlayMetaFileRecord, ulElapsedTime);
  4411. TimerClose(sTimerHandle);
  4412. return(RetVal);
  4413. }
  4414. BOOL ZPlgBlt (HDC Arg1,const POINT* Arg2,HDC Arg3,int Arg4,int Arg5,int Arg6,int Arg7,HBITMAP Arg8,int Arg9,int Arg10)
  4415. {
  4416. BOOL RetVal;
  4417. SHORT sTimerHandle;
  4418. ULONG ulElapsedTime;
  4419. if (fInitDone == FALSE) {
  4420. ApfInitDll();
  4421. }
  4422. TimerOpen(&sTimerHandle,MICROSECONDS);
  4423. TimerInit(sTimerHandle);
  4424. //
  4425. // Call the api
  4426. //
  4427. RetVal = PlgBlt(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9,Arg10);
  4428. //
  4429. // Get the elapsed time
  4430. //
  4431. ulElapsedTime = TimerRead(sTimerHandle);
  4432. ApfRecordInfo(I_PlgBlt, ulElapsedTime);
  4433. TimerClose(sTimerHandle);
  4434. return(RetVal);
  4435. }
  4436. BOOL ZPolyBezier (HDC Arg1,const POINT* Arg2,DWORD Arg3)
  4437. {
  4438. BOOL RetVal;
  4439. SHORT sTimerHandle;
  4440. ULONG ulElapsedTime;
  4441. if (fInitDone == FALSE) {
  4442. ApfInitDll();
  4443. }
  4444. TimerOpen(&sTimerHandle,MICROSECONDS);
  4445. TimerInit(sTimerHandle);
  4446. //
  4447. // Call the api
  4448. //
  4449. RetVal = PolyBezier(Arg1,Arg2,Arg3);
  4450. //
  4451. // Get the elapsed time
  4452. //
  4453. ulElapsedTime = TimerRead(sTimerHandle);
  4454. ApfRecordInfo(I_PolyBezier, ulElapsedTime);
  4455. TimerClose(sTimerHandle);
  4456. return(RetVal);
  4457. }
  4458. BOOL ZPolyBezierTo (HDC Arg1,const POINT* Arg2,DWORD Arg3)
  4459. {
  4460. BOOL RetVal;
  4461. SHORT sTimerHandle;
  4462. ULONG ulElapsedTime;
  4463. if (fInitDone == FALSE) {
  4464. ApfInitDll();
  4465. }
  4466. TimerOpen(&sTimerHandle,MICROSECONDS);
  4467. TimerInit(sTimerHandle);
  4468. //
  4469. // Call the api
  4470. //
  4471. RetVal = PolyBezierTo(Arg1,Arg2,Arg3);
  4472. //
  4473. // Get the elapsed time
  4474. //
  4475. ulElapsedTime = TimerRead(sTimerHandle);
  4476. ApfRecordInfo(I_PolyBezierTo, ulElapsedTime);
  4477. TimerClose(sTimerHandle);
  4478. return(RetVal);
  4479. }
  4480. BOOL ZPolyDraw (HDC Arg1,const POINT* Arg2,const BYTE* Arg3,int Arg4)
  4481. {
  4482. BOOL RetVal;
  4483. SHORT sTimerHandle;
  4484. ULONG ulElapsedTime;
  4485. if (fInitDone == FALSE) {
  4486. ApfInitDll();
  4487. }
  4488. TimerOpen(&sTimerHandle,MICROSECONDS);
  4489. TimerInit(sTimerHandle);
  4490. //
  4491. // Call the api
  4492. //
  4493. RetVal = PolyDraw(Arg1,Arg2,Arg3,Arg4);
  4494. //
  4495. // Get the elapsed time
  4496. //
  4497. ulElapsedTime = TimerRead(sTimerHandle);
  4498. ApfRecordInfo(I_PolyDraw, ulElapsedTime);
  4499. TimerClose(sTimerHandle);
  4500. return(RetVal);
  4501. }
  4502. BOOL ZPolyPolygon (HDC Arg1,const POINT* Arg2,const INT* Arg3,int Arg4)
  4503. {
  4504. BOOL RetVal;
  4505. SHORT sTimerHandle;
  4506. ULONG ulElapsedTime;
  4507. if (fInitDone == FALSE) {
  4508. ApfInitDll();
  4509. }
  4510. TimerOpen(&sTimerHandle,MICROSECONDS);
  4511. TimerInit(sTimerHandle);
  4512. //
  4513. // Call the api
  4514. //
  4515. RetVal = PolyPolygon(Arg1,Arg2,Arg3,Arg4);
  4516. //
  4517. // Get the elapsed time
  4518. //
  4519. ulElapsedTime = TimerRead(sTimerHandle);
  4520. ApfRecordInfo(I_PolyPolygon, ulElapsedTime);
  4521. TimerClose(sTimerHandle);
  4522. return(RetVal);
  4523. }
  4524. BOOL ZPolyPolyline (HDC Arg1,const POINT* Arg2,const DWORD* Arg3,DWORD Arg4)
  4525. {
  4526. BOOL RetVal;
  4527. SHORT sTimerHandle;
  4528. ULONG ulElapsedTime;
  4529. if (fInitDone == FALSE) {
  4530. ApfInitDll();
  4531. }
  4532. TimerOpen(&sTimerHandle,MICROSECONDS);
  4533. TimerInit(sTimerHandle);
  4534. //
  4535. // Call the api
  4536. //
  4537. RetVal = PolyPolyline(Arg1,Arg2,Arg3,Arg4);
  4538. //
  4539. // Get the elapsed time
  4540. //
  4541. ulElapsedTime = TimerRead(sTimerHandle);
  4542. ApfRecordInfo(I_PolyPolyline, ulElapsedTime);
  4543. TimerClose(sTimerHandle);
  4544. return(RetVal);
  4545. }
  4546. BOOL ZPolyTextOutA (HDC Arg1,const POLYTEXTA* Arg2,int Arg3)
  4547. {
  4548. BOOL RetVal;
  4549. SHORT sTimerHandle;
  4550. ULONG ulElapsedTime;
  4551. if (fInitDone == FALSE) {
  4552. ApfInitDll();
  4553. }
  4554. TimerOpen(&sTimerHandle,MICROSECONDS);
  4555. TimerInit(sTimerHandle);
  4556. //
  4557. // Call the api
  4558. //
  4559. RetVal = PolyTextOutA(Arg1,Arg2,Arg3);
  4560. //
  4561. // Get the elapsed time
  4562. //
  4563. ulElapsedTime = TimerRead(sTimerHandle);
  4564. ApfRecordInfo(I_PolyTextOutA, ulElapsedTime);
  4565. TimerClose(sTimerHandle);
  4566. return(RetVal);
  4567. }
  4568. BOOL ZPolyTextOutW (HDC Arg1,const POLYTEXTW* Arg2,int Arg3)
  4569. {
  4570. BOOL RetVal;
  4571. SHORT sTimerHandle;
  4572. ULONG ulElapsedTime;
  4573. if (fInitDone == FALSE) {
  4574. ApfInitDll();
  4575. }
  4576. TimerOpen(&sTimerHandle,MICROSECONDS);
  4577. TimerInit(sTimerHandle);
  4578. //
  4579. // Call the api
  4580. //
  4581. RetVal = PolyTextOutW(Arg1,Arg2,Arg3);
  4582. //
  4583. // Get the elapsed time
  4584. //
  4585. ulElapsedTime = TimerRead(sTimerHandle);
  4586. ApfRecordInfo(I_PolyTextOutW, ulElapsedTime);
  4587. TimerClose(sTimerHandle);
  4588. return(RetVal);
  4589. }
  4590. BOOL ZPolygon (HDC Arg1,const POINT* Arg2,int Arg3)
  4591. {
  4592. BOOL RetVal;
  4593. SHORT sTimerHandle;
  4594. ULONG ulElapsedTime;
  4595. if (fInitDone == FALSE) {
  4596. ApfInitDll();
  4597. }
  4598. TimerOpen(&sTimerHandle,MICROSECONDS);
  4599. TimerInit(sTimerHandle);
  4600. //
  4601. // Call the api
  4602. //
  4603. RetVal = Polygon(Arg1,Arg2,Arg3);
  4604. //
  4605. // Get the elapsed time
  4606. //
  4607. ulElapsedTime = TimerRead(sTimerHandle);
  4608. ApfRecordInfo(I_Polygon, ulElapsedTime);
  4609. TimerClose(sTimerHandle);
  4610. return(RetVal);
  4611. }
  4612. BOOL ZPolyline (HDC Arg1,const POINT* Arg2,int Arg3)
  4613. {
  4614. BOOL RetVal;
  4615. SHORT sTimerHandle;
  4616. ULONG ulElapsedTime;
  4617. if (fInitDone == FALSE) {
  4618. ApfInitDll();
  4619. }
  4620. TimerOpen(&sTimerHandle,MICROSECONDS);
  4621. TimerInit(sTimerHandle);
  4622. //
  4623. // Call the api
  4624. //
  4625. RetVal = Polyline(Arg1,Arg2,Arg3);
  4626. //
  4627. // Get the elapsed time
  4628. //
  4629. ulElapsedTime = TimerRead(sTimerHandle);
  4630. ApfRecordInfo(I_Polyline, ulElapsedTime);
  4631. TimerClose(sTimerHandle);
  4632. return(RetVal);
  4633. }
  4634. BOOL ZPolylineTo (HDC Arg1,const POINT* Arg2,DWORD Arg3)
  4635. {
  4636. BOOL RetVal;
  4637. SHORT sTimerHandle;
  4638. ULONG ulElapsedTime;
  4639. if (fInitDone == FALSE) {
  4640. ApfInitDll();
  4641. }
  4642. TimerOpen(&sTimerHandle,MICROSECONDS);
  4643. TimerInit(sTimerHandle);
  4644. //
  4645. // Call the api
  4646. //
  4647. RetVal = PolylineTo(Arg1,Arg2,Arg3);
  4648. //
  4649. // Get the elapsed time
  4650. //
  4651. ulElapsedTime = TimerRead(sTimerHandle);
  4652. ApfRecordInfo(I_PolylineTo, ulElapsedTime);
  4653. TimerClose(sTimerHandle);
  4654. return(RetVal);
  4655. }
  4656. BOOL ZPtInRegion (HRGN Arg1,int Arg2,int Arg3)
  4657. {
  4658. BOOL RetVal;
  4659. SHORT sTimerHandle;
  4660. ULONG ulElapsedTime;
  4661. if (fInitDone == FALSE) {
  4662. ApfInitDll();
  4663. }
  4664. TimerOpen(&sTimerHandle,MICROSECONDS);
  4665. TimerInit(sTimerHandle);
  4666. //
  4667. // Call the api
  4668. //
  4669. RetVal = PtInRegion(Arg1,Arg2,Arg3);
  4670. //
  4671. // Get the elapsed time
  4672. //
  4673. ulElapsedTime = TimerRead(sTimerHandle);
  4674. ApfRecordInfo(I_PtInRegion, ulElapsedTime);
  4675. TimerClose(sTimerHandle);
  4676. return(RetVal);
  4677. }
  4678. BOOL ZPtVisible (HDC Arg1,int Arg2,int Arg3)
  4679. {
  4680. BOOL RetVal;
  4681. SHORT sTimerHandle;
  4682. ULONG ulElapsedTime;
  4683. if (fInitDone == FALSE) {
  4684. ApfInitDll();
  4685. }
  4686. TimerOpen(&sTimerHandle,MICROSECONDS);
  4687. TimerInit(sTimerHandle);
  4688. //
  4689. // Call the api
  4690. //
  4691. RetVal = PtVisible(Arg1,Arg2,Arg3);
  4692. //
  4693. // Get the elapsed time
  4694. //
  4695. ulElapsedTime = TimerRead(sTimerHandle);
  4696. ApfRecordInfo(I_PtVisible, ulElapsedTime);
  4697. TimerClose(sTimerHandle);
  4698. return(RetVal);
  4699. }
  4700. UINT ZRealizePalette (HDC Arg1)
  4701. {
  4702. UINT RetVal;
  4703. SHORT sTimerHandle;
  4704. ULONG ulElapsedTime;
  4705. if (fInitDone == FALSE) {
  4706. ApfInitDll();
  4707. }
  4708. TimerOpen(&sTimerHandle,MICROSECONDS);
  4709. TimerInit(sTimerHandle);
  4710. //
  4711. // Call the api
  4712. //
  4713. RetVal = RealizePalette(Arg1);
  4714. //
  4715. // Get the elapsed time
  4716. //
  4717. ulElapsedTime = TimerRead(sTimerHandle);
  4718. ApfRecordInfo(I_RealizePalette, ulElapsedTime);
  4719. TimerClose(sTimerHandle);
  4720. return(RetVal);
  4721. }
  4722. BOOL ZRectInRegion (HRGN Arg1,const RECT* Arg2)
  4723. {
  4724. BOOL RetVal;
  4725. SHORT sTimerHandle;
  4726. ULONG ulElapsedTime;
  4727. if (fInitDone == FALSE) {
  4728. ApfInitDll();
  4729. }
  4730. TimerOpen(&sTimerHandle,MICROSECONDS);
  4731. TimerInit(sTimerHandle);
  4732. //
  4733. // Call the api
  4734. //
  4735. RetVal = RectInRegion(Arg1,Arg2);
  4736. //
  4737. // Get the elapsed time
  4738. //
  4739. ulElapsedTime = TimerRead(sTimerHandle);
  4740. ApfRecordInfo(I_RectInRegion, ulElapsedTime);
  4741. TimerClose(sTimerHandle);
  4742. return(RetVal);
  4743. }
  4744. BOOL ZRectVisible (HDC Arg1,const RECT* Arg2)
  4745. {
  4746. BOOL RetVal;
  4747. SHORT sTimerHandle;
  4748. ULONG ulElapsedTime;
  4749. if (fInitDone == FALSE) {
  4750. ApfInitDll();
  4751. }
  4752. TimerOpen(&sTimerHandle,MICROSECONDS);
  4753. TimerInit(sTimerHandle);
  4754. //
  4755. // Call the api
  4756. //
  4757. RetVal = RectVisible(Arg1,Arg2);
  4758. //
  4759. // Get the elapsed time
  4760. //
  4761. ulElapsedTime = TimerRead(sTimerHandle);
  4762. ApfRecordInfo(I_RectVisible, ulElapsedTime);
  4763. TimerClose(sTimerHandle);
  4764. return(RetVal);
  4765. }
  4766. BOOL ZRectangle (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5)
  4767. {
  4768. BOOL RetVal;
  4769. SHORT sTimerHandle;
  4770. ULONG ulElapsedTime;
  4771. if (fInitDone == FALSE) {
  4772. ApfInitDll();
  4773. }
  4774. TimerOpen(&sTimerHandle,MICROSECONDS);
  4775. TimerInit(sTimerHandle);
  4776. //
  4777. // Call the api
  4778. //
  4779. RetVal = Rectangle(Arg1,Arg2,Arg3,Arg4,Arg5);
  4780. //
  4781. // Get the elapsed time
  4782. //
  4783. ulElapsedTime = TimerRead(sTimerHandle);
  4784. ApfRecordInfo(I_Rectangle, ulElapsedTime);
  4785. TimerClose(sTimerHandle);
  4786. return(RetVal);
  4787. }
  4788. BOOL ZRemoveFontResourceA (LPCSTR Arg1)
  4789. {
  4790. BOOL RetVal;
  4791. SHORT sTimerHandle;
  4792. ULONG ulElapsedTime;
  4793. if (fInitDone == FALSE) {
  4794. ApfInitDll();
  4795. }
  4796. TimerOpen(&sTimerHandle,MICROSECONDS);
  4797. TimerInit(sTimerHandle);
  4798. //
  4799. // Call the api
  4800. //
  4801. RetVal = RemoveFontResourceA(Arg1);
  4802. //
  4803. // Get the elapsed time
  4804. //
  4805. ulElapsedTime = TimerRead(sTimerHandle);
  4806. ApfRecordInfo(I_RemoveFontResourceA, ulElapsedTime);
  4807. TimerClose(sTimerHandle);
  4808. return(RetVal);
  4809. }
  4810. BOOL ZRemoveFontResourceW (LPCWSTR Arg1)
  4811. {
  4812. BOOL RetVal;
  4813. SHORT sTimerHandle;
  4814. ULONG ulElapsedTime;
  4815. if (fInitDone == FALSE) {
  4816. ApfInitDll();
  4817. }
  4818. TimerOpen(&sTimerHandle,MICROSECONDS);
  4819. TimerInit(sTimerHandle);
  4820. //
  4821. // Call the api
  4822. //
  4823. RetVal = RemoveFontResourceW(Arg1);
  4824. //
  4825. // Get the elapsed time
  4826. //
  4827. ulElapsedTime = TimerRead(sTimerHandle);
  4828. ApfRecordInfo(I_RemoveFontResourceW, ulElapsedTime);
  4829. TimerClose(sTimerHandle);
  4830. return(RetVal);
  4831. }
  4832. HDC ZResetDCA (HDC Arg1,const DEVMODEA* Arg2)
  4833. {
  4834. HDC RetVal;
  4835. SHORT sTimerHandle;
  4836. ULONG ulElapsedTime;
  4837. if (fInitDone == FALSE) {
  4838. ApfInitDll();
  4839. }
  4840. TimerOpen(&sTimerHandle,MICROSECONDS);
  4841. TimerInit(sTimerHandle);
  4842. //
  4843. // Call the api
  4844. //
  4845. RetVal = ResetDCA(Arg1,Arg2);
  4846. //
  4847. // Get the elapsed time
  4848. //
  4849. ulElapsedTime = TimerRead(sTimerHandle);
  4850. ApfRecordInfo(I_ResetDCA, ulElapsedTime);
  4851. TimerClose(sTimerHandle);
  4852. return(RetVal);
  4853. }
  4854. HDC ZResetDCW (HDC Arg1,const DEVMODEW* Arg2)
  4855. {
  4856. HDC RetVal;
  4857. SHORT sTimerHandle;
  4858. ULONG ulElapsedTime;
  4859. if (fInitDone == FALSE) {
  4860. ApfInitDll();
  4861. }
  4862. TimerOpen(&sTimerHandle,MICROSECONDS);
  4863. TimerInit(sTimerHandle);
  4864. //
  4865. // Call the api
  4866. //
  4867. RetVal = ResetDCW(Arg1,Arg2);
  4868. //
  4869. // Get the elapsed time
  4870. //
  4871. ulElapsedTime = TimerRead(sTimerHandle);
  4872. ApfRecordInfo(I_ResetDCW, ulElapsedTime);
  4873. TimerClose(sTimerHandle);
  4874. return(RetVal);
  4875. }
  4876. BOOL ZResizePalette (HPALETTE Arg1,UINT Arg2)
  4877. {
  4878. BOOL RetVal;
  4879. SHORT sTimerHandle;
  4880. ULONG ulElapsedTime;
  4881. if (fInitDone == FALSE) {
  4882. ApfInitDll();
  4883. }
  4884. TimerOpen(&sTimerHandle,MICROSECONDS);
  4885. TimerInit(sTimerHandle);
  4886. //
  4887. // Call the api
  4888. //
  4889. RetVal = ResizePalette(Arg1,Arg2);
  4890. //
  4891. // Get the elapsed time
  4892. //
  4893. ulElapsedTime = TimerRead(sTimerHandle);
  4894. ApfRecordInfo(I_ResizePalette, ulElapsedTime);
  4895. TimerClose(sTimerHandle);
  4896. return(RetVal);
  4897. }
  4898. BOOL ZRestoreDC (HDC Arg1,int Arg2)
  4899. {
  4900. BOOL RetVal;
  4901. SHORT sTimerHandle;
  4902. ULONG ulElapsedTime;
  4903. if (fInitDone == FALSE) {
  4904. ApfInitDll();
  4905. }
  4906. TimerOpen(&sTimerHandle,MICROSECONDS);
  4907. TimerInit(sTimerHandle);
  4908. //
  4909. // Call the api
  4910. //
  4911. RetVal = RestoreDC(Arg1,Arg2);
  4912. //
  4913. // Get the elapsed time
  4914. //
  4915. ulElapsedTime = TimerRead(sTimerHandle);
  4916. ApfRecordInfo(I_RestoreDC, ulElapsedTime);
  4917. TimerClose(sTimerHandle);
  4918. return(RetVal);
  4919. }
  4920. BOOL ZRoundRect (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,int Arg6,int Arg7)
  4921. {
  4922. BOOL RetVal;
  4923. SHORT sTimerHandle;
  4924. ULONG ulElapsedTime;
  4925. if (fInitDone == FALSE) {
  4926. ApfInitDll();
  4927. }
  4928. TimerOpen(&sTimerHandle,MICROSECONDS);
  4929. TimerInit(sTimerHandle);
  4930. //
  4931. // Call the api
  4932. //
  4933. RetVal = RoundRect(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7);
  4934. //
  4935. // Get the elapsed time
  4936. //
  4937. ulElapsedTime = TimerRead(sTimerHandle);
  4938. ApfRecordInfo(I_RoundRect, ulElapsedTime);
  4939. TimerClose(sTimerHandle);
  4940. return(RetVal);
  4941. }
  4942. int ZSaveDC (HDC Arg1)
  4943. {
  4944. int RetVal;
  4945. SHORT sTimerHandle;
  4946. ULONG ulElapsedTime;
  4947. if (fInitDone == FALSE) {
  4948. ApfInitDll();
  4949. }
  4950. TimerOpen(&sTimerHandle,MICROSECONDS);
  4951. TimerInit(sTimerHandle);
  4952. //
  4953. // Call the api
  4954. //
  4955. RetVal = SaveDC(Arg1);
  4956. //
  4957. // Get the elapsed time
  4958. //
  4959. ulElapsedTime = TimerRead(sTimerHandle);
  4960. ApfRecordInfo(I_SaveDC, ulElapsedTime);
  4961. TimerClose(sTimerHandle);
  4962. return(RetVal);
  4963. }
  4964. BOOL ZScaleViewportExtEx (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,LPSIZE Arg6)
  4965. {
  4966. BOOL RetVal;
  4967. SHORT sTimerHandle;
  4968. ULONG ulElapsedTime;
  4969. if (fInitDone == FALSE) {
  4970. ApfInitDll();
  4971. }
  4972. TimerOpen(&sTimerHandle,MICROSECONDS);
  4973. TimerInit(sTimerHandle);
  4974. //
  4975. // Call the api
  4976. //
  4977. RetVal = ScaleViewportExtEx(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  4978. //
  4979. // Get the elapsed time
  4980. //
  4981. ulElapsedTime = TimerRead(sTimerHandle);
  4982. ApfRecordInfo(I_ScaleViewportExtEx, ulElapsedTime);
  4983. TimerClose(sTimerHandle);
  4984. return(RetVal);
  4985. }
  4986. BOOL ZScaleWindowExtEx (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,LPSIZE Arg6)
  4987. {
  4988. BOOL RetVal;
  4989. SHORT sTimerHandle;
  4990. ULONG ulElapsedTime;
  4991. if (fInitDone == FALSE) {
  4992. ApfInitDll();
  4993. }
  4994. TimerOpen(&sTimerHandle,MICROSECONDS);
  4995. TimerInit(sTimerHandle);
  4996. //
  4997. // Call the api
  4998. //
  4999. RetVal = ScaleWindowExtEx(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6);
  5000. //
  5001. // Get the elapsed time
  5002. //
  5003. ulElapsedTime = TimerRead(sTimerHandle);
  5004. ApfRecordInfo(I_ScaleWindowExtEx, ulElapsedTime);
  5005. TimerClose(sTimerHandle);
  5006. return(RetVal);
  5007. }
  5008. BOOL ZSelectClipPath (HDC Arg1,int Arg2)
  5009. {
  5010. BOOL RetVal;
  5011. SHORT sTimerHandle;
  5012. ULONG ulElapsedTime;
  5013. if (fInitDone == FALSE) {
  5014. ApfInitDll();
  5015. }
  5016. TimerOpen(&sTimerHandle,MICROSECONDS);
  5017. TimerInit(sTimerHandle);
  5018. //
  5019. // Call the api
  5020. //
  5021. RetVal = SelectClipPath(Arg1,Arg2);
  5022. //
  5023. // Get the elapsed time
  5024. //
  5025. ulElapsedTime = TimerRead(sTimerHandle);
  5026. ApfRecordInfo(I_SelectClipPath, ulElapsedTime);
  5027. TimerClose(sTimerHandle);
  5028. return(RetVal);
  5029. }
  5030. int ZSelectClipRgn (HDC Arg1,HRGN Arg2)
  5031. {
  5032. int RetVal;
  5033. SHORT sTimerHandle;
  5034. ULONG ulElapsedTime;
  5035. if (fInitDone == FALSE) {
  5036. ApfInitDll();
  5037. }
  5038. TimerOpen(&sTimerHandle,MICROSECONDS);
  5039. TimerInit(sTimerHandle);
  5040. //
  5041. // Call the api
  5042. //
  5043. RetVal = SelectClipRgn(Arg1,Arg2);
  5044. //
  5045. // Get the elapsed time
  5046. //
  5047. ulElapsedTime = TimerRead(sTimerHandle);
  5048. ApfRecordInfo(I_SelectClipRgn, ulElapsedTime);
  5049. TimerClose(sTimerHandle);
  5050. return(RetVal);
  5051. }
  5052. HGDIOBJ ZSelectObject (HDC Arg1,HGDIOBJ Arg2)
  5053. {
  5054. HGDIOBJ RetVal;
  5055. SHORT sTimerHandle;
  5056. ULONG ulElapsedTime;
  5057. if (fInitDone == FALSE) {
  5058. ApfInitDll();
  5059. }
  5060. TimerOpen(&sTimerHandle,MICROSECONDS);
  5061. TimerInit(sTimerHandle);
  5062. //
  5063. // Call the api
  5064. //
  5065. RetVal = SelectObject(Arg1,Arg2);
  5066. //
  5067. // Get the elapsed time
  5068. //
  5069. ulElapsedTime = TimerRead(sTimerHandle);
  5070. ApfRecordInfo(I_SelectObject, ulElapsedTime);
  5071. TimerClose(sTimerHandle);
  5072. return(RetVal);
  5073. }
  5074. HPALETTE ZSelectPalette (HDC Arg1,HPALETTE Arg2,BOOL Arg3)
  5075. {
  5076. HPALETTE RetVal;
  5077. SHORT sTimerHandle;
  5078. ULONG ulElapsedTime;
  5079. if (fInitDone == FALSE) {
  5080. ApfInitDll();
  5081. }
  5082. TimerOpen(&sTimerHandle,MICROSECONDS);
  5083. TimerInit(sTimerHandle);
  5084. //
  5085. // Call the api
  5086. //
  5087. RetVal = SelectPalette(Arg1,Arg2,Arg3);
  5088. //
  5089. // Get the elapsed time
  5090. //
  5091. ulElapsedTime = TimerRead(sTimerHandle);
  5092. ApfRecordInfo(I_SelectPalette, ulElapsedTime);
  5093. TimerClose(sTimerHandle);
  5094. return(RetVal);
  5095. }
  5096. int ZSetAbortProc (HDC Arg1,ABORTPROC Arg2)
  5097. {
  5098. int RetVal;
  5099. SHORT sTimerHandle;
  5100. ULONG ulElapsedTime;
  5101. if (fInitDone == FALSE) {
  5102. ApfInitDll();
  5103. }
  5104. TimerOpen(&sTimerHandle,MICROSECONDS);
  5105. TimerInit(sTimerHandle);
  5106. //
  5107. // Call the api
  5108. //
  5109. RetVal = SetAbortProc(Arg1,Arg2);
  5110. //
  5111. // Get the elapsed time
  5112. //
  5113. ulElapsedTime = TimerRead(sTimerHandle);
  5114. ApfRecordInfo(I_SetAbortProc, ulElapsedTime);
  5115. TimerClose(sTimerHandle);
  5116. return(RetVal);
  5117. }
  5118. int ZSetArcDirection (HDC Arg1,int Arg2)
  5119. {
  5120. int RetVal;
  5121. SHORT sTimerHandle;
  5122. ULONG ulElapsedTime;
  5123. if (fInitDone == FALSE) {
  5124. ApfInitDll();
  5125. }
  5126. TimerOpen(&sTimerHandle,MICROSECONDS);
  5127. TimerInit(sTimerHandle);
  5128. //
  5129. // Call the api
  5130. //
  5131. RetVal = SetArcDirection(Arg1,Arg2);
  5132. //
  5133. // Get the elapsed time
  5134. //
  5135. ulElapsedTime = TimerRead(sTimerHandle);
  5136. ApfRecordInfo(I_SetArcDirection, ulElapsedTime);
  5137. TimerClose(sTimerHandle);
  5138. return(RetVal);
  5139. }
  5140. LONG ZSetBitmapBits (HBITMAP Arg1,DWORD Arg2,const void* Arg3)
  5141. {
  5142. LONG RetVal;
  5143. SHORT sTimerHandle;
  5144. ULONG ulElapsedTime;
  5145. if (fInitDone == FALSE) {
  5146. ApfInitDll();
  5147. }
  5148. TimerOpen(&sTimerHandle,MICROSECONDS);
  5149. TimerInit(sTimerHandle);
  5150. //
  5151. // Call the api
  5152. //
  5153. RetVal = SetBitmapBits(Arg1,Arg2,Arg3);
  5154. //
  5155. // Get the elapsed time
  5156. //
  5157. ulElapsedTime = TimerRead(sTimerHandle);
  5158. ApfRecordInfo(I_SetBitmapBits, ulElapsedTime);
  5159. TimerClose(sTimerHandle);
  5160. return(RetVal);
  5161. }
  5162. BOOL ZSetBitmapDimensionEx (HBITMAP Arg1,int Arg2,int Arg3,LPSIZE Arg4)
  5163. {
  5164. BOOL RetVal;
  5165. SHORT sTimerHandle;
  5166. ULONG ulElapsedTime;
  5167. if (fInitDone == FALSE) {
  5168. ApfInitDll();
  5169. }
  5170. TimerOpen(&sTimerHandle,MICROSECONDS);
  5171. TimerInit(sTimerHandle);
  5172. //
  5173. // Call the api
  5174. //
  5175. RetVal = SetBitmapDimensionEx(Arg1,Arg2,Arg3,Arg4);
  5176. //
  5177. // Get the elapsed time
  5178. //
  5179. ulElapsedTime = TimerRead(sTimerHandle);
  5180. ApfRecordInfo(I_SetBitmapDimensionEx, ulElapsedTime);
  5181. TimerClose(sTimerHandle);
  5182. return(RetVal);
  5183. }
  5184. COLORREF ZSetBkColor (HDC Arg1,COLORREF Arg2)
  5185. {
  5186. COLORREF RetVal;
  5187. SHORT sTimerHandle;
  5188. ULONG ulElapsedTime;
  5189. if (fInitDone == FALSE) {
  5190. ApfInitDll();
  5191. }
  5192. TimerOpen(&sTimerHandle,MICROSECONDS);
  5193. TimerInit(sTimerHandle);
  5194. //
  5195. // Call the api
  5196. //
  5197. RetVal = SetBkColor(Arg1,Arg2);
  5198. //
  5199. // Get the elapsed time
  5200. //
  5201. ulElapsedTime = TimerRead(sTimerHandle);
  5202. ApfRecordInfo(I_SetBkColor, ulElapsedTime);
  5203. TimerClose(sTimerHandle);
  5204. return(RetVal);
  5205. }
  5206. int ZSetBkMode (HDC Arg1,int Arg2)
  5207. {
  5208. int RetVal;
  5209. SHORT sTimerHandle;
  5210. ULONG ulElapsedTime;
  5211. if (fInitDone == FALSE) {
  5212. ApfInitDll();
  5213. }
  5214. TimerOpen(&sTimerHandle,MICROSECONDS);
  5215. TimerInit(sTimerHandle);
  5216. //
  5217. // Call the api
  5218. //
  5219. RetVal = SetBkMode(Arg1,Arg2);
  5220. //
  5221. // Get the elapsed time
  5222. //
  5223. ulElapsedTime = TimerRead(sTimerHandle);
  5224. ApfRecordInfo(I_SetBkMode, ulElapsedTime);
  5225. TimerClose(sTimerHandle);
  5226. return(RetVal);
  5227. }
  5228. UINT ZSetBoundsRect (HDC Arg1,const RECT* Arg2,UINT Arg3)
  5229. {
  5230. UINT RetVal;
  5231. SHORT sTimerHandle;
  5232. ULONG ulElapsedTime;
  5233. if (fInitDone == FALSE) {
  5234. ApfInitDll();
  5235. }
  5236. TimerOpen(&sTimerHandle,MICROSECONDS);
  5237. TimerInit(sTimerHandle);
  5238. //
  5239. // Call the api
  5240. //
  5241. RetVal = SetBoundsRect(Arg1,Arg2,Arg3);
  5242. //
  5243. // Get the elapsed time
  5244. //
  5245. ulElapsedTime = TimerRead(sTimerHandle);
  5246. ApfRecordInfo(I_SetBoundsRect, ulElapsedTime);
  5247. TimerClose(sTimerHandle);
  5248. return(RetVal);
  5249. }
  5250. BOOL ZSetBrushOrgEx (HDC Arg1,int Arg2,int Arg3,LPPOINT Arg4)
  5251. {
  5252. BOOL RetVal;
  5253. SHORT sTimerHandle;
  5254. ULONG ulElapsedTime;
  5255. if (fInitDone == FALSE) {
  5256. ApfInitDll();
  5257. }
  5258. TimerOpen(&sTimerHandle,MICROSECONDS);
  5259. TimerInit(sTimerHandle);
  5260. //
  5261. // Call the api
  5262. //
  5263. RetVal = SetBrushOrgEx(Arg1,Arg2,Arg3,Arg4);
  5264. //
  5265. // Get the elapsed time
  5266. //
  5267. ulElapsedTime = TimerRead(sTimerHandle);
  5268. ApfRecordInfo(I_SetBrushOrgEx, ulElapsedTime);
  5269. TimerClose(sTimerHandle);
  5270. return(RetVal);
  5271. }
  5272. BOOL ZSetColorAdjustment (HDC Arg1,const COLORADJUSTMENT* Arg2)
  5273. {
  5274. BOOL RetVal;
  5275. SHORT sTimerHandle;
  5276. ULONG ulElapsedTime;
  5277. if (fInitDone == FALSE) {
  5278. ApfInitDll();
  5279. }
  5280. TimerOpen(&sTimerHandle,MICROSECONDS);
  5281. TimerInit(sTimerHandle);
  5282. //
  5283. // Call the api
  5284. //
  5285. RetVal = SetColorAdjustment(Arg1,Arg2);
  5286. //
  5287. // Get the elapsed time
  5288. //
  5289. ulElapsedTime = TimerRead(sTimerHandle);
  5290. ApfRecordInfo(I_SetColorAdjustment, ulElapsedTime);
  5291. TimerClose(sTimerHandle);
  5292. return(RetVal);
  5293. }
  5294. int ZSetDIBits (HDC Arg1,HBITMAP Arg2,UINT Arg3,UINT Arg4,const void* Arg5,const BITMAPINFO* Arg6,UINT Arg7)
  5295. {
  5296. int RetVal;
  5297. SHORT sTimerHandle;
  5298. ULONG ulElapsedTime;
  5299. if (fInitDone == FALSE) {
  5300. ApfInitDll();
  5301. }
  5302. TimerOpen(&sTimerHandle,MICROSECONDS);
  5303. TimerInit(sTimerHandle);
  5304. //
  5305. // Call the api
  5306. //
  5307. RetVal = SetDIBits(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7);
  5308. //
  5309. // Get the elapsed time
  5310. //
  5311. ulElapsedTime = TimerRead(sTimerHandle);
  5312. ApfRecordInfo(I_SetDIBits, ulElapsedTime);
  5313. TimerClose(sTimerHandle);
  5314. return(RetVal);
  5315. }
  5316. int ZSetDIBitsToDevice (HDC Arg1,int Arg2,int Arg3,DWORD Arg4,DWORD Arg5,int Arg6,int Arg7,UINT Arg8,UINT Arg9,const void* Arg10,const BITMAPINFO* Arg11,UINT Arg12)
  5317. {
  5318. int RetVal;
  5319. SHORT sTimerHandle;
  5320. ULONG ulElapsedTime;
  5321. if (fInitDone == FALSE) {
  5322. ApfInitDll();
  5323. }
  5324. TimerOpen(&sTimerHandle,MICROSECONDS);
  5325. TimerInit(sTimerHandle);
  5326. //
  5327. // Call the api
  5328. //
  5329. RetVal = SetDIBitsToDevice(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9,Arg10,Arg11,Arg12);
  5330. //
  5331. // Get the elapsed time
  5332. //
  5333. ulElapsedTime = TimerRead(sTimerHandle);
  5334. ApfRecordInfo(I_SetDIBitsToDevice, ulElapsedTime);
  5335. TimerClose(sTimerHandle);
  5336. return(RetVal);
  5337. }
  5338. HENHMETAFILE ZSetEnhMetaFileBits (UINT Arg1,const BYTE* Arg2)
  5339. {
  5340. HENHMETAFILE RetVal;
  5341. SHORT sTimerHandle;
  5342. ULONG ulElapsedTime;
  5343. if (fInitDone == FALSE) {
  5344. ApfInitDll();
  5345. }
  5346. TimerOpen(&sTimerHandle,MICROSECONDS);
  5347. TimerInit(sTimerHandle);
  5348. //
  5349. // Call the api
  5350. //
  5351. RetVal = SetEnhMetaFileBits(Arg1,Arg2);
  5352. //
  5353. // Get the elapsed time
  5354. //
  5355. ulElapsedTime = TimerRead(sTimerHandle);
  5356. ApfRecordInfo(I_SetEnhMetaFileBits, ulElapsedTime);
  5357. TimerClose(sTimerHandle);
  5358. return(RetVal);
  5359. }
  5360. int ZSetGraphicsMode (HDC hdc,int iMode)
  5361. {
  5362. int RetVal;
  5363. SHORT sTimerHandle;
  5364. ULONG ulElapsedTime;
  5365. if (fInitDone == FALSE) {
  5366. ApfInitDll();
  5367. }
  5368. TimerOpen(&sTimerHandle,MICROSECONDS);
  5369. TimerInit(sTimerHandle);
  5370. //
  5371. // Call the api
  5372. //
  5373. RetVal = SetGraphicsMode(hdc,iMode);
  5374. //
  5375. // Get the elapsed time
  5376. //
  5377. ulElapsedTime = TimerRead(sTimerHandle);
  5378. ApfRecordInfo(I_SetGraphicsMode, ulElapsedTime);
  5379. TimerClose(sTimerHandle);
  5380. return(RetVal);
  5381. }
  5382. int ZSetMapMode (HDC Arg1,int Arg2)
  5383. {
  5384. int RetVal;
  5385. SHORT sTimerHandle;
  5386. ULONG ulElapsedTime;
  5387. if (fInitDone == FALSE) {
  5388. ApfInitDll();
  5389. }
  5390. TimerOpen(&sTimerHandle,MICROSECONDS);
  5391. TimerInit(sTimerHandle);
  5392. //
  5393. // Call the api
  5394. //
  5395. RetVal = SetMapMode(Arg1,Arg2);
  5396. //
  5397. // Get the elapsed time
  5398. //
  5399. ulElapsedTime = TimerRead(sTimerHandle);
  5400. ApfRecordInfo(I_SetMapMode, ulElapsedTime);
  5401. TimerClose(sTimerHandle);
  5402. return(RetVal);
  5403. }
  5404. DWORD ZSetMapperFlags (HDC Arg1,DWORD Arg2)
  5405. {
  5406. DWORD RetVal;
  5407. SHORT sTimerHandle;
  5408. ULONG ulElapsedTime;
  5409. if (fInitDone == FALSE) {
  5410. ApfInitDll();
  5411. }
  5412. TimerOpen(&sTimerHandle,MICROSECONDS);
  5413. TimerInit(sTimerHandle);
  5414. //
  5415. // Call the api
  5416. //
  5417. RetVal = SetMapperFlags(Arg1,Arg2);
  5418. //
  5419. // Get the elapsed time
  5420. //
  5421. ulElapsedTime = TimerRead(sTimerHandle);
  5422. ApfRecordInfo(I_SetMapperFlags, ulElapsedTime);
  5423. TimerClose(sTimerHandle);
  5424. return(RetVal);
  5425. }
  5426. HMETAFILE ZSetMetaFileBitsEx (UINT Arg1,const BYTE* Arg2)
  5427. {
  5428. HMETAFILE RetVal;
  5429. SHORT sTimerHandle;
  5430. ULONG ulElapsedTime;
  5431. if (fInitDone == FALSE) {
  5432. ApfInitDll();
  5433. }
  5434. TimerOpen(&sTimerHandle,MICROSECONDS);
  5435. TimerInit(sTimerHandle);
  5436. //
  5437. // Call the api
  5438. //
  5439. RetVal = SetMetaFileBitsEx(Arg1,Arg2);
  5440. //
  5441. // Get the elapsed time
  5442. //
  5443. ulElapsedTime = TimerRead(sTimerHandle);
  5444. ApfRecordInfo(I_SetMetaFileBitsEx, ulElapsedTime);
  5445. TimerClose(sTimerHandle);
  5446. return(RetVal);
  5447. }
  5448. int ZSetMetaRgn (HDC Arg1)
  5449. {
  5450. int RetVal;
  5451. SHORT sTimerHandle;
  5452. ULONG ulElapsedTime;
  5453. if (fInitDone == FALSE) {
  5454. ApfInitDll();
  5455. }
  5456. TimerOpen(&sTimerHandle,MICROSECONDS);
  5457. TimerInit(sTimerHandle);
  5458. //
  5459. // Call the api
  5460. //
  5461. RetVal = SetMetaRgn(Arg1);
  5462. //
  5463. // Get the elapsed time
  5464. //
  5465. ulElapsedTime = TimerRead(sTimerHandle);
  5466. ApfRecordInfo(I_SetMetaRgn, ulElapsedTime);
  5467. TimerClose(sTimerHandle);
  5468. return(RetVal);
  5469. }
  5470. BOOL ZSetMiterLimit (HDC Arg1,FLOAT Arg2,PFLOAT Arg3)
  5471. {
  5472. BOOL RetVal;
  5473. SHORT sTimerHandle;
  5474. ULONG ulElapsedTime;
  5475. if (fInitDone == FALSE) {
  5476. ApfInitDll();
  5477. }
  5478. TimerOpen(&sTimerHandle,MICROSECONDS);
  5479. TimerInit(sTimerHandle);
  5480. //
  5481. // Call the api
  5482. //
  5483. RetVal = SetMiterLimit(Arg1,Arg2,Arg3);
  5484. //
  5485. // Get the elapsed time
  5486. //
  5487. ulElapsedTime = TimerRead(sTimerHandle);
  5488. ApfRecordInfo(I_SetMiterLimit, ulElapsedTime);
  5489. TimerClose(sTimerHandle);
  5490. return(RetVal);
  5491. }
  5492. UINT ZSetPaletteEntries (HPALETTE Arg1,UINT Arg2,UINT Arg3,const PALETTEENTRY* Arg4)
  5493. {
  5494. UINT RetVal;
  5495. SHORT sTimerHandle;
  5496. ULONG ulElapsedTime;
  5497. if (fInitDone == FALSE) {
  5498. ApfInitDll();
  5499. }
  5500. TimerOpen(&sTimerHandle,MICROSECONDS);
  5501. TimerInit(sTimerHandle);
  5502. //
  5503. // Call the api
  5504. //
  5505. RetVal = SetPaletteEntries(Arg1,Arg2,Arg3,Arg4);
  5506. //
  5507. // Get the elapsed time
  5508. //
  5509. ulElapsedTime = TimerRead(sTimerHandle);
  5510. ApfRecordInfo(I_SetPaletteEntries, ulElapsedTime);
  5511. TimerClose(sTimerHandle);
  5512. return(RetVal);
  5513. }
  5514. COLORREF ZSetPixel (HDC Arg1,int Arg2,int Arg3,COLORREF Arg4)
  5515. {
  5516. COLORREF RetVal;
  5517. SHORT sTimerHandle;
  5518. ULONG ulElapsedTime;
  5519. if (fInitDone == FALSE) {
  5520. ApfInitDll();
  5521. }
  5522. TimerOpen(&sTimerHandle,MICROSECONDS);
  5523. TimerInit(sTimerHandle);
  5524. //
  5525. // Call the api
  5526. //
  5527. RetVal = SetPixel(Arg1,Arg2,Arg3,Arg4);
  5528. //
  5529. // Get the elapsed time
  5530. //
  5531. ulElapsedTime = TimerRead(sTimerHandle);
  5532. ApfRecordInfo(I_SetPixel, ulElapsedTime);
  5533. TimerClose(sTimerHandle);
  5534. return(RetVal);
  5535. }
  5536. BOOL ZSetPixelV (HDC Arg1,int Arg2,int Arg3,COLORREF Arg4)
  5537. {
  5538. BOOL RetVal;
  5539. SHORT sTimerHandle;
  5540. ULONG ulElapsedTime;
  5541. if (fInitDone == FALSE) {
  5542. ApfInitDll();
  5543. }
  5544. TimerOpen(&sTimerHandle,MICROSECONDS);
  5545. TimerInit(sTimerHandle);
  5546. //
  5547. // Call the api
  5548. //
  5549. RetVal = SetPixelV(Arg1,Arg2,Arg3,Arg4);
  5550. //
  5551. // Get the elapsed time
  5552. //
  5553. ulElapsedTime = TimerRead(sTimerHandle);
  5554. ApfRecordInfo(I_SetPixelV, ulElapsedTime);
  5555. TimerClose(sTimerHandle);
  5556. return(RetVal);
  5557. }
  5558. int ZSetPolyFillMode (HDC Arg1,int Arg2)
  5559. {
  5560. int RetVal;
  5561. SHORT sTimerHandle;
  5562. ULONG ulElapsedTime;
  5563. if (fInitDone == FALSE) {
  5564. ApfInitDll();
  5565. }
  5566. TimerOpen(&sTimerHandle,MICROSECONDS);
  5567. TimerInit(sTimerHandle);
  5568. //
  5569. // Call the api
  5570. //
  5571. RetVal = SetPolyFillMode(Arg1,Arg2);
  5572. //
  5573. // Get the elapsed time
  5574. //
  5575. ulElapsedTime = TimerRead(sTimerHandle);
  5576. ApfRecordInfo(I_SetPolyFillMode, ulElapsedTime);
  5577. TimerClose(sTimerHandle);
  5578. return(RetVal);
  5579. }
  5580. int ZSetROP2 (HDC Arg1,int Arg2)
  5581. {
  5582. int RetVal;
  5583. SHORT sTimerHandle;
  5584. ULONG ulElapsedTime;
  5585. if (fInitDone == FALSE) {
  5586. ApfInitDll();
  5587. }
  5588. TimerOpen(&sTimerHandle,MICROSECONDS);
  5589. TimerInit(sTimerHandle);
  5590. //
  5591. // Call the api
  5592. //
  5593. RetVal = SetROP2(Arg1,Arg2);
  5594. //
  5595. // Get the elapsed time
  5596. //
  5597. ulElapsedTime = TimerRead(sTimerHandle);
  5598. ApfRecordInfo(I_SetROP2, ulElapsedTime);
  5599. TimerClose(sTimerHandle);
  5600. return(RetVal);
  5601. }
  5602. BOOL ZSetRectRgn (HRGN Arg1,int Arg2,int Arg3,int Arg4,int Arg5)
  5603. {
  5604. BOOL RetVal;
  5605. SHORT sTimerHandle;
  5606. ULONG ulElapsedTime;
  5607. if (fInitDone == FALSE) {
  5608. ApfInitDll();
  5609. }
  5610. TimerOpen(&sTimerHandle,MICROSECONDS);
  5611. TimerInit(sTimerHandle);
  5612. //
  5613. // Call the api
  5614. //
  5615. RetVal = SetRectRgn(Arg1,Arg2,Arg3,Arg4,Arg5);
  5616. //
  5617. // Get the elapsed time
  5618. //
  5619. ulElapsedTime = TimerRead(sTimerHandle);
  5620. ApfRecordInfo(I_SetRectRgn, ulElapsedTime);
  5621. TimerClose(sTimerHandle);
  5622. return(RetVal);
  5623. }
  5624. int ZSetStretchBltMode (HDC Arg1,int Arg2)
  5625. {
  5626. int RetVal;
  5627. SHORT sTimerHandle;
  5628. ULONG ulElapsedTime;
  5629. if (fInitDone == FALSE) {
  5630. ApfInitDll();
  5631. }
  5632. TimerOpen(&sTimerHandle,MICROSECONDS);
  5633. TimerInit(sTimerHandle);
  5634. //
  5635. // Call the api
  5636. //
  5637. RetVal = SetStretchBltMode(Arg1,Arg2);
  5638. //
  5639. // Get the elapsed time
  5640. //
  5641. ulElapsedTime = TimerRead(sTimerHandle);
  5642. ApfRecordInfo(I_SetStretchBltMode, ulElapsedTime);
  5643. TimerClose(sTimerHandle);
  5644. return(RetVal);
  5645. }
  5646. UINT ZSetSystemPaletteUse (HDC Arg1,UINT Arg2)
  5647. {
  5648. UINT RetVal;
  5649. SHORT sTimerHandle;
  5650. ULONG ulElapsedTime;
  5651. if (fInitDone == FALSE) {
  5652. ApfInitDll();
  5653. }
  5654. TimerOpen(&sTimerHandle,MICROSECONDS);
  5655. TimerInit(sTimerHandle);
  5656. //
  5657. // Call the api
  5658. //
  5659. RetVal = SetSystemPaletteUse(Arg1,Arg2);
  5660. //
  5661. // Get the elapsed time
  5662. //
  5663. ulElapsedTime = TimerRead(sTimerHandle);
  5664. ApfRecordInfo(I_SetSystemPaletteUse, ulElapsedTime);
  5665. TimerClose(sTimerHandle);
  5666. return(RetVal);
  5667. }
  5668. UINT ZSetTextAlign (HDC Arg1,UINT Arg2)
  5669. {
  5670. UINT RetVal;
  5671. SHORT sTimerHandle;
  5672. ULONG ulElapsedTime;
  5673. if (fInitDone == FALSE) {
  5674. ApfInitDll();
  5675. }
  5676. TimerOpen(&sTimerHandle,MICROSECONDS);
  5677. TimerInit(sTimerHandle);
  5678. //
  5679. // Call the api
  5680. //
  5681. RetVal = SetTextAlign(Arg1,Arg2);
  5682. //
  5683. // Get the elapsed time
  5684. //
  5685. ulElapsedTime = TimerRead(sTimerHandle);
  5686. ApfRecordInfo(I_SetTextAlign, ulElapsedTime);
  5687. TimerClose(sTimerHandle);
  5688. return(RetVal);
  5689. }
  5690. int ZSetTextCharacterExtra (HDC Arg1,int Arg2)
  5691. {
  5692. int RetVal;
  5693. SHORT sTimerHandle;
  5694. ULONG ulElapsedTime;
  5695. if (fInitDone == FALSE) {
  5696. ApfInitDll();
  5697. }
  5698. TimerOpen(&sTimerHandle,MICROSECONDS);
  5699. TimerInit(sTimerHandle);
  5700. //
  5701. // Call the api
  5702. //
  5703. RetVal = SetTextCharacterExtra(Arg1,Arg2);
  5704. //
  5705. // Get the elapsed time
  5706. //
  5707. ulElapsedTime = TimerRead(sTimerHandle);
  5708. ApfRecordInfo(I_SetTextCharacterExtra, ulElapsedTime);
  5709. TimerClose(sTimerHandle);
  5710. return(RetVal);
  5711. }
  5712. COLORREF ZSetTextColor (HDC Arg1,COLORREF Arg2)
  5713. {
  5714. COLORREF RetVal;
  5715. SHORT sTimerHandle;
  5716. ULONG ulElapsedTime;
  5717. if (fInitDone == FALSE) {
  5718. ApfInitDll();
  5719. }
  5720. TimerOpen(&sTimerHandle,MICROSECONDS);
  5721. TimerInit(sTimerHandle);
  5722. //
  5723. // Call the api
  5724. //
  5725. RetVal = SetTextColor(Arg1,Arg2);
  5726. //
  5727. // Get the elapsed time
  5728. //
  5729. ulElapsedTime = TimerRead(sTimerHandle);
  5730. ApfRecordInfo(I_SetTextColor, ulElapsedTime);
  5731. TimerClose(sTimerHandle);
  5732. return(RetVal);
  5733. }
  5734. BOOL ZSetTextJustification (HDC Arg1,int Arg2,int Arg3)
  5735. {
  5736. BOOL RetVal;
  5737. SHORT sTimerHandle;
  5738. ULONG ulElapsedTime;
  5739. if (fInitDone == FALSE) {
  5740. ApfInitDll();
  5741. }
  5742. TimerOpen(&sTimerHandle,MICROSECONDS);
  5743. TimerInit(sTimerHandle);
  5744. //
  5745. // Call the api
  5746. //
  5747. RetVal = SetTextJustification(Arg1,Arg2,Arg3);
  5748. //
  5749. // Get the elapsed time
  5750. //
  5751. ulElapsedTime = TimerRead(sTimerHandle);
  5752. ApfRecordInfo(I_SetTextJustification, ulElapsedTime);
  5753. TimerClose(sTimerHandle);
  5754. return(RetVal);
  5755. }
  5756. BOOL ZSetViewportExtEx (HDC Arg1,int Arg2,int Arg3,LPSIZE Arg4)
  5757. {
  5758. BOOL RetVal;
  5759. SHORT sTimerHandle;
  5760. ULONG ulElapsedTime;
  5761. if (fInitDone == FALSE) {
  5762. ApfInitDll();
  5763. }
  5764. TimerOpen(&sTimerHandle,MICROSECONDS);
  5765. TimerInit(sTimerHandle);
  5766. //
  5767. // Call the api
  5768. //
  5769. RetVal = SetViewportExtEx(Arg1,Arg2,Arg3,Arg4);
  5770. //
  5771. // Get the elapsed time
  5772. //
  5773. ulElapsedTime = TimerRead(sTimerHandle);
  5774. ApfRecordInfo(I_SetViewportExtEx, ulElapsedTime);
  5775. TimerClose(sTimerHandle);
  5776. return(RetVal);
  5777. }
  5778. BOOL ZSetViewportOrgEx (HDC Arg1,int Arg2,int Arg3,LPPOINT Arg4)
  5779. {
  5780. BOOL RetVal;
  5781. SHORT sTimerHandle;
  5782. ULONG ulElapsedTime;
  5783. if (fInitDone == FALSE) {
  5784. ApfInitDll();
  5785. }
  5786. TimerOpen(&sTimerHandle,MICROSECONDS);
  5787. TimerInit(sTimerHandle);
  5788. //
  5789. // Call the api
  5790. //
  5791. RetVal = SetViewportOrgEx(Arg1,Arg2,Arg3,Arg4);
  5792. //
  5793. // Get the elapsed time
  5794. //
  5795. ulElapsedTime = TimerRead(sTimerHandle);
  5796. ApfRecordInfo(I_SetViewportOrgEx, ulElapsedTime);
  5797. TimerClose(sTimerHandle);
  5798. return(RetVal);
  5799. }
  5800. HENHMETAFILE ZSetWinMetaFileBits (UINT Arg1,const BYTE* Arg2,HDC Arg3,const METAFILEPICT* Arg4)
  5801. {
  5802. HENHMETAFILE RetVal;
  5803. SHORT sTimerHandle;
  5804. ULONG ulElapsedTime;
  5805. if (fInitDone == FALSE) {
  5806. ApfInitDll();
  5807. }
  5808. TimerOpen(&sTimerHandle,MICROSECONDS);
  5809. TimerInit(sTimerHandle);
  5810. //
  5811. // Call the api
  5812. //
  5813. RetVal = SetWinMetaFileBits(Arg1,Arg2,Arg3,Arg4);
  5814. //
  5815. // Get the elapsed time
  5816. //
  5817. ulElapsedTime = TimerRead(sTimerHandle);
  5818. ApfRecordInfo(I_SetWinMetaFileBits, ulElapsedTime);
  5819. TimerClose(sTimerHandle);
  5820. return(RetVal);
  5821. }
  5822. BOOL ZSetWindowExtEx (HDC Arg1,int Arg2,int Arg3,LPSIZE Arg4)
  5823. {
  5824. BOOL RetVal;
  5825. SHORT sTimerHandle;
  5826. ULONG ulElapsedTime;
  5827. if (fInitDone == FALSE) {
  5828. ApfInitDll();
  5829. }
  5830. TimerOpen(&sTimerHandle,MICROSECONDS);
  5831. TimerInit(sTimerHandle);
  5832. //
  5833. // Call the api
  5834. //
  5835. RetVal = SetWindowExtEx(Arg1,Arg2,Arg3,Arg4);
  5836. //
  5837. // Get the elapsed time
  5838. //
  5839. ulElapsedTime = TimerRead(sTimerHandle);
  5840. ApfRecordInfo(I_SetWindowExtEx, ulElapsedTime);
  5841. TimerClose(sTimerHandle);
  5842. return(RetVal);
  5843. }
  5844. BOOL ZSetWindowOrgEx (HDC Arg1,int Arg2,int Arg3,LPPOINT Arg4)
  5845. {
  5846. BOOL RetVal;
  5847. SHORT sTimerHandle;
  5848. ULONG ulElapsedTime;
  5849. if (fInitDone == FALSE) {
  5850. ApfInitDll();
  5851. }
  5852. TimerOpen(&sTimerHandle,MICROSECONDS);
  5853. TimerInit(sTimerHandle);
  5854. //
  5855. // Call the api
  5856. //
  5857. RetVal = SetWindowOrgEx(Arg1,Arg2,Arg3,Arg4);
  5858. //
  5859. // Get the elapsed time
  5860. //
  5861. ulElapsedTime = TimerRead(sTimerHandle);
  5862. ApfRecordInfo(I_SetWindowOrgEx, ulElapsedTime);
  5863. TimerClose(sTimerHandle);
  5864. return(RetVal);
  5865. }
  5866. BOOL ZSetWorldTransform (HDC Arg1,const XFORM* Arg2)
  5867. {
  5868. BOOL RetVal;
  5869. SHORT sTimerHandle;
  5870. ULONG ulElapsedTime;
  5871. if (fInitDone == FALSE) {
  5872. ApfInitDll();
  5873. }
  5874. TimerOpen(&sTimerHandle,MICROSECONDS);
  5875. TimerInit(sTimerHandle);
  5876. //
  5877. // Call the api
  5878. //
  5879. RetVal = SetWorldTransform(Arg1,Arg2);
  5880. //
  5881. // Get the elapsed time
  5882. //
  5883. ulElapsedTime = TimerRead(sTimerHandle);
  5884. ApfRecordInfo(I_SetWorldTransform, ulElapsedTime);
  5885. TimerClose(sTimerHandle);
  5886. return(RetVal);
  5887. }
  5888. int ZStartDocA (HDC Arg1,const DOCINFOA* Arg2)
  5889. {
  5890. int RetVal;
  5891. SHORT sTimerHandle;
  5892. ULONG ulElapsedTime;
  5893. if (fInitDone == FALSE) {
  5894. ApfInitDll();
  5895. }
  5896. TimerOpen(&sTimerHandle,MICROSECONDS);
  5897. TimerInit(sTimerHandle);
  5898. //
  5899. // Call the api
  5900. //
  5901. RetVal = StartDocA(Arg1,Arg2);
  5902. //
  5903. // Get the elapsed time
  5904. //
  5905. ulElapsedTime = TimerRead(sTimerHandle);
  5906. ApfRecordInfo(I_StartDocA, ulElapsedTime);
  5907. TimerClose(sTimerHandle);
  5908. return(RetVal);
  5909. }
  5910. int ZStartDocW (HDC Arg1,const DOCINFOW* Arg2)
  5911. {
  5912. int RetVal;
  5913. SHORT sTimerHandle;
  5914. ULONG ulElapsedTime;
  5915. if (fInitDone == FALSE) {
  5916. ApfInitDll();
  5917. }
  5918. TimerOpen(&sTimerHandle,MICROSECONDS);
  5919. TimerInit(sTimerHandle);
  5920. //
  5921. // Call the api
  5922. //
  5923. RetVal = StartDocW(Arg1,Arg2);
  5924. //
  5925. // Get the elapsed time
  5926. //
  5927. ulElapsedTime = TimerRead(sTimerHandle);
  5928. ApfRecordInfo(I_StartDocW, ulElapsedTime);
  5929. TimerClose(sTimerHandle);
  5930. return(RetVal);
  5931. }
  5932. int ZStartPage (HDC Arg1)
  5933. {
  5934. int RetVal;
  5935. SHORT sTimerHandle;
  5936. ULONG ulElapsedTime;
  5937. if (fInitDone == FALSE) {
  5938. ApfInitDll();
  5939. }
  5940. TimerOpen(&sTimerHandle,MICROSECONDS);
  5941. TimerInit(sTimerHandle);
  5942. //
  5943. // Call the api
  5944. //
  5945. RetVal = StartPage(Arg1);
  5946. //
  5947. // Get the elapsed time
  5948. //
  5949. ulElapsedTime = TimerRead(sTimerHandle);
  5950. ApfRecordInfo(I_StartPage, ulElapsedTime);
  5951. TimerClose(sTimerHandle);
  5952. return(RetVal);
  5953. }
  5954. BOOL ZStretchBlt (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,HDC Arg6,int Arg7,int Arg8,int Arg9,int Arg10,DWORD Arg11)
  5955. {
  5956. BOOL RetVal;
  5957. SHORT sTimerHandle;
  5958. ULONG ulElapsedTime;
  5959. if (fInitDone == FALSE) {
  5960. ApfInitDll();
  5961. }
  5962. TimerOpen(&sTimerHandle,MICROSECONDS);
  5963. TimerInit(sTimerHandle);
  5964. //
  5965. // Call the api
  5966. //
  5967. RetVal = StretchBlt(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9,Arg10,Arg11);
  5968. //
  5969. // Get the elapsed time
  5970. //
  5971. ulElapsedTime = TimerRead(sTimerHandle);
  5972. ApfRecordInfo(I_StretchBlt, ulElapsedTime);
  5973. TimerClose(sTimerHandle);
  5974. return(RetVal);
  5975. }
  5976. int ZStretchDIBits (HDC Arg1,int Arg2,int Arg3,int Arg4,int Arg5,int Arg6,int Arg7,int Arg8,int Arg9,const void* Arg10,const BITMAPINFO* Arg11,UINT Arg12,DWORD Arg13)
  5977. {
  5978. int RetVal;
  5979. SHORT sTimerHandle;
  5980. ULONG ulElapsedTime;
  5981. if (fInitDone == FALSE) {
  5982. ApfInitDll();
  5983. }
  5984. TimerOpen(&sTimerHandle,MICROSECONDS);
  5985. TimerInit(sTimerHandle);
  5986. //
  5987. // Call the api
  5988. //
  5989. RetVal = StretchDIBits(Arg1,Arg2,Arg3,Arg4,Arg5,Arg6,Arg7,Arg8,Arg9,Arg10,Arg11,Arg12,Arg13);
  5990. //
  5991. // Get the elapsed time
  5992. //
  5993. ulElapsedTime = TimerRead(sTimerHandle);
  5994. ApfRecordInfo(I_StretchDIBits, ulElapsedTime);
  5995. TimerClose(sTimerHandle);
  5996. return(RetVal);
  5997. }
  5998. BOOL ZStrokeAndFillPath (HDC Arg1)
  5999. {
  6000. BOOL RetVal;
  6001. SHORT sTimerHandle;
  6002. ULONG ulElapsedTime;
  6003. if (fInitDone == FALSE) {
  6004. ApfInitDll();
  6005. }
  6006. TimerOpen(&sTimerHandle,MICROSECONDS);
  6007. TimerInit(sTimerHandle);
  6008. //
  6009. // Call the api
  6010. //
  6011. RetVal = StrokeAndFillPath(Arg1);
  6012. //
  6013. // Get the elapsed time
  6014. //
  6015. ulElapsedTime = TimerRead(sTimerHandle);
  6016. ApfRecordInfo(I_StrokeAndFillPath, ulElapsedTime);
  6017. TimerClose(sTimerHandle);
  6018. return(RetVal);
  6019. }
  6020. BOOL ZStrokePath (HDC Arg1)
  6021. {
  6022. BOOL RetVal;
  6023. SHORT sTimerHandle;
  6024. ULONG ulElapsedTime;
  6025. if (fInitDone == FALSE) {
  6026. ApfInitDll();
  6027. }
  6028. TimerOpen(&sTimerHandle,MICROSECONDS);
  6029. TimerInit(sTimerHandle);
  6030. //
  6031. // Call the api
  6032. //
  6033. RetVal = StrokePath(Arg1);
  6034. //
  6035. // Get the elapsed time
  6036. //
  6037. ulElapsedTime = TimerRead(sTimerHandle);
  6038. ApfRecordInfo(I_StrokePath, ulElapsedTime);
  6039. TimerClose(sTimerHandle);
  6040. return(RetVal);
  6041. }
  6042. BOOL ZTextOutA (HDC Arg1,int Arg2,int Arg3,LPCSTR Arg4,int Arg5)
  6043. {
  6044. BOOL RetVal;
  6045. SHORT sTimerHandle;
  6046. ULONG ulElapsedTime;
  6047. if (fInitDone == FALSE) {
  6048. ApfInitDll();
  6049. }
  6050. TimerOpen(&sTimerHandle,MICROSECONDS);
  6051. TimerInit(sTimerHandle);
  6052. //
  6053. // Call the api
  6054. //
  6055. RetVal = TextOutA(Arg1,Arg2,Arg3,Arg4,Arg5);
  6056. //
  6057. // Get the elapsed time
  6058. //
  6059. ulElapsedTime = TimerRead(sTimerHandle);
  6060. ApfRecordInfo(I_TextOutA, ulElapsedTime);
  6061. TimerClose(sTimerHandle);
  6062. return(RetVal);
  6063. }
  6064. BOOL ZTextOutW (HDC Arg1,int Arg2,int Arg3,LPCWSTR Arg4,int Arg5)
  6065. {
  6066. BOOL RetVal;
  6067. SHORT sTimerHandle;
  6068. ULONG ulElapsedTime;
  6069. if (fInitDone == FALSE) {
  6070. ApfInitDll();
  6071. }
  6072. TimerOpen(&sTimerHandle,MICROSECONDS);
  6073. TimerInit(sTimerHandle);
  6074. //
  6075. // Call the api
  6076. //
  6077. RetVal = TextOutW(Arg1,Arg2,Arg3,Arg4,Arg5);
  6078. //
  6079. // Get the elapsed time
  6080. //
  6081. ulElapsedTime = TimerRead(sTimerHandle);
  6082. ApfRecordInfo(I_TextOutW, ulElapsedTime);
  6083. TimerClose(sTimerHandle);
  6084. return(RetVal);
  6085. }
  6086. BOOL ZUnrealizeObject (HGDIOBJ Arg1)
  6087. {
  6088. BOOL RetVal;
  6089. SHORT sTimerHandle;
  6090. ULONG ulElapsedTime;
  6091. if (fInitDone == FALSE) {
  6092. ApfInitDll();
  6093. }
  6094. TimerOpen(&sTimerHandle,MICROSECONDS);
  6095. TimerInit(sTimerHandle);
  6096. //
  6097. // Call the api
  6098. //
  6099. RetVal = UnrealizeObject(Arg1);
  6100. //
  6101. // Get the elapsed time
  6102. //
  6103. ulElapsedTime = TimerRead(sTimerHandle);
  6104. ApfRecordInfo(I_UnrealizeObject, ulElapsedTime);
  6105. TimerClose(sTimerHandle);
  6106. return(RetVal);
  6107. }
  6108. BOOL ZUpdateColors (HDC Arg1)
  6109. {
  6110. BOOL RetVal;
  6111. SHORT sTimerHandle;
  6112. ULONG ulElapsedTime;
  6113. if (fInitDone == FALSE) {
  6114. ApfInitDll();
  6115. }
  6116. TimerOpen(&sTimerHandle,MICROSECONDS);
  6117. TimerInit(sTimerHandle);
  6118. //
  6119. // Call the api
  6120. //
  6121. RetVal = UpdateColors(Arg1);
  6122. //
  6123. // Get the elapsed time
  6124. //
  6125. ulElapsedTime = TimerRead(sTimerHandle);
  6126. ApfRecordInfo(I_UpdateColors, ulElapsedTime);
  6127. TimerClose(sTimerHandle);
  6128. return(RetVal);
  6129. }
  6130. BOOL ZWidenPath (HDC Arg1)
  6131. {
  6132. BOOL RetVal;
  6133. SHORT sTimerHandle;
  6134. ULONG ulElapsedTime;
  6135. if (fInitDone == FALSE) {
  6136. ApfInitDll();
  6137. }
  6138. TimerOpen(&sTimerHandle,MICROSECONDS);
  6139. TimerInit(sTimerHandle);
  6140. //
  6141. // Call the api
  6142. //
  6143. RetVal = WidenPath(Arg1);
  6144. //
  6145. // Get the elapsed time
  6146. //
  6147. ulElapsedTime = TimerRead(sTimerHandle);
  6148. ApfRecordInfo(I_WidenPath, ulElapsedTime);
  6149. TimerClose(sTimerHandle);
  6150. return(RetVal);
  6151. }
  6152. UINT ZGetDIBColorTable(HDC a1, UINT a2, UINT a3, RGBQUAD *a4)
  6153. {
  6154. UINT RetVal;
  6155. SHORT sTimerHandle;
  6156. ULONG ulElapsedTime;
  6157. if (fInitDone == FALSE) {
  6158. ApfInitDll();
  6159. }
  6160. TimerOpen(&sTimerHandle,MICROSECONDS);
  6161. TimerInit(sTimerHandle);
  6162. //
  6163. // Call the api
  6164. //
  6165. RetVal = GetDIBColorTable(a1,a2,a3,a4);
  6166. //
  6167. // Get the elapsed time
  6168. //
  6169. ulElapsedTime = TimerRead(sTimerHandle);
  6170. ApfRecordInfo(I_GetDIBColorTable, ulElapsedTime);
  6171. TimerClose(sTimerHandle);
  6172. return(RetVal);
  6173. }
  6174. UINT ZSetDIBColorTable(HDC a1, UINT a2, UINT a3, RGBQUAD *a4)
  6175. {
  6176. UINT RetVal;
  6177. SHORT sTimerHandle;
  6178. ULONG ulElapsedTime;
  6179. if (fInitDone == FALSE) {
  6180. ApfInitDll();
  6181. }
  6182. TimerOpen(&sTimerHandle,MICROSECONDS);
  6183. TimerInit(sTimerHandle);
  6184. //
  6185. // Call the api
  6186. //
  6187. RetVal = SetDIBColorTable(a1,a2,a3,a4);
  6188. //
  6189. // Get the elapsed time
  6190. //
  6191. ulElapsedTime = TimerRead(sTimerHandle);
  6192. ApfRecordInfo(I_SetDIBColorTable, ulElapsedTime);
  6193. TimerClose(sTimerHandle);
  6194. return(RetVal);
  6195. }
  6196. BOOL ZSetPixelFormat(HDC a1, int a2,PIXELFORMATDESCRIPTOR *a3)
  6197. {
  6198. COLORREF RetVal;
  6199. SHORT sTimerHandle;
  6200. ULONG ulElapsedTime;
  6201. if (fInitDone == FALSE) {
  6202. ApfInitDll();
  6203. }
  6204. TimerOpen(&sTimerHandle,MICROSECONDS);
  6205. TimerInit(sTimerHandle);
  6206. //
  6207. // Call the api
  6208. //
  6209. RetVal = SetPixelFormat(a1,a2,a3) ;
  6210. //
  6211. // Get the elapsed time
  6212. //
  6213. ulElapsedTime = TimerRead(sTimerHandle);
  6214. ApfRecordInfo(I_SetPixelFormat, ulElapsedTime);
  6215. TimerClose(sTimerHandle);
  6216. return(RetVal);
  6217. }
  6218. int ZGetPixelFormat(HDC hdc)
  6219. {
  6220. int RetVal;
  6221. SHORT sTimerHandle;
  6222. ULONG ulElapsedTime;
  6223. if (fInitDone == FALSE) {
  6224. ApfInitDll();
  6225. }
  6226. TimerOpen(&sTimerHandle,MICROSECONDS);
  6227. TimerInit(sTimerHandle);
  6228. //
  6229. // Call the api
  6230. //
  6231. RetVal = GetPixelFormat(hdc);
  6232. //
  6233. // Get the elapsed time
  6234. //
  6235. ulElapsedTime = TimerRead(sTimerHandle);
  6236. ApfRecordInfo(I_GetPixelFormat, ulElapsedTime);
  6237. TimerClose(sTimerHandle);
  6238. return(RetVal);
  6239. }