This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
gdi32.go
4498 lines (4105 loc) · 122 KB
/
gdi32.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
// go run internal/cmd/gen/gen.go
// +build windows
package win
import (
"syscall"
"unsafe"
)
var (
// Library
libgdi32 uintptr
// Functions
abortDoc uintptr
abortPath uintptr
addFontMemResourceEx uintptr
addFontResourceEx uintptr
addFontResource uintptr
angleArc uintptr
animatePalette uintptr
arc uintptr
arcTo uintptr
bRUSHOBJ_hGetColorTransform uintptr
bRUSHOBJ_pvAllocRbrush uintptr
bRUSHOBJ_pvGetRbrush uintptr
bRUSHOBJ_ulGetBrushColor uintptr
beginPath uintptr
bitBlt uintptr
cLIPOBJ_bEnum uintptr
cLIPOBJ_cEnumStart uintptr
cancelDC uintptr
checkColorsInGamut uintptr
choosePixelFormat uintptr
chord uintptr
closeEnhMetaFile uintptr
closeFigure uintptr
closeMetaFile uintptr
colorCorrectPalette uintptr
colorMatchToTarget uintptr
combineRgn uintptr
combineTransform uintptr
copyEnhMetaFile uintptr
copyMetaFile uintptr
createBitmap uintptr
createBitmapIndirect uintptr
createBrushIndirect uintptr
createColorSpace uintptr
createCompatibleBitmap uintptr
createCompatibleDC uintptr
createDC uintptr
createDIBPatternBrush uintptr
createDIBPatternBrushPt uintptr
createDIBSection uintptr
createDIBitmap uintptr
createDiscardableBitmap uintptr
createEllipticRgn uintptr
createEllipticRgnIndirect uintptr
createEnhMetaFile uintptr
createFontIndirectEx uintptr
createFontIndirect uintptr
createFont uintptr
createHalftonePalette uintptr
createHatchBrush uintptr
createIC uintptr
createMetaFile uintptr
createPalette uintptr
createPatternBrush uintptr
createPen uintptr
createPenIndirect uintptr
createPolyPolygonRgn uintptr
createPolygonRgn uintptr
createRectRgn uintptr
createRectRgnIndirect uintptr
createRoundRectRgn uintptr
createScalableFontResource uintptr
createSolidBrush uintptr
dPtoLP uintptr
deleteColorSpace uintptr
deleteDC uintptr
deleteEnhMetaFile uintptr
deleteMetaFile uintptr
deleteObject uintptr
describePixelFormat uintptr
drawEscape uintptr
ellipse uintptr
endDoc uintptr
endPage uintptr
endPath uintptr
engAcquireSemaphore uintptr
engAlphaBlend uintptr
engAssociateSurface uintptr
engBitBlt uintptr
engCheckAbort uintptr
engCopyBits uintptr
engCreateBitmap uintptr
engCreateDeviceBitmap uintptr
engCreateDeviceSurface uintptr
engCreatePalette uintptr
engCreateSemaphore uintptr
engDeleteClip uintptr
engDeletePalette uintptr
engDeletePath uintptr
engDeleteSemaphore uintptr
engDeleteSurface uintptr
engEraseSurface uintptr
engFillPath uintptr
engFindResource uintptr
engFreeModule uintptr
engGetCurrentCodePage uintptr
engGetDriverName uintptr
engGetPrinterDataFileName uintptr
engGradientFill uintptr
engLineTo uintptr
engLoadModule uintptr
engMarkBandingSurface uintptr
engMultiByteToUnicodeN uintptr
engMultiByteToWideChar uintptr
engPaint uintptr
engPlgBlt uintptr
engQueryLocalTime uintptr
engReleaseSemaphore uintptr
engStretchBlt uintptr
engStretchBltROP uintptr
engStrokeAndFillPath uintptr
engStrokePath uintptr
engTextOut uintptr
engTransparentBlt uintptr
engUnicodeToMultiByteN uintptr
engUnlockSurface uintptr
engWideCharToMultiByte uintptr
enumEnhMetaFile uintptr
enumFontFamiliesEx uintptr
enumFontFamilies uintptr
enumFonts uintptr
enumICMProfiles uintptr
enumMetaFile uintptr
enumObjects uintptr
equalRgn uintptr
escape uintptr
excludeClipRect uintptr
extCreatePen uintptr
extCreateRegion uintptr
extEscape uintptr
extFloodFill uintptr
extSelectClipRgn uintptr
extTextOut uintptr
fONTOBJ_cGetAllGlyphHandles uintptr
fONTOBJ_cGetGlyphs uintptr
fONTOBJ_pQueryGlyphAttrs uintptr
fONTOBJ_pvTrueTypeFontFile uintptr
fONTOBJ_vGetInfo uintptr
fillPath uintptr
fillRgn uintptr
fixBrushOrgEx uintptr
flattenPath uintptr
floodFill uintptr
frameRgn uintptr
gdiAlphaBlend uintptr
gdiComment uintptr
gdiFlush uintptr
gdiGetBatchLimit uintptr
gdiGradientFill uintptr
gdiSetBatchLimit uintptr
gdiTransparentBlt uintptr
getArcDirection uintptr
getAspectRatioFilterEx uintptr
getBitmapBits uintptr
getBitmapDimensionEx uintptr
getBkColor uintptr
getBkMode uintptr
getBoundsRect uintptr
getBrushOrgEx uintptr
getCharABCWidthsFloat uintptr
getCharABCWidthsI uintptr
getCharABCWidths uintptr
getCharWidth32 uintptr
getCharWidthFloat uintptr
getCharWidthI uintptr
getCharWidth uintptr
getCharacterPlacement uintptr
getClipBox uintptr
getClipRgn uintptr
getColorAdjustment uintptr
getColorSpace uintptr
getCurrentObject uintptr
getCurrentPositionEx uintptr
getDCBrushColor uintptr
getDCOrgEx uintptr
getDCPenColor uintptr
getDIBColorTable uintptr
getDIBits uintptr
getDeviceCaps uintptr
getDeviceGammaRamp uintptr
getEnhMetaFileBits uintptr
getEnhMetaFileDescription uintptr
getEnhMetaFileHeader uintptr
getEnhMetaFilePaletteEntries uintptr
getEnhMetaFilePixelFormat uintptr
getEnhMetaFile uintptr
getFontData uintptr
getFontLanguageInfo uintptr
getFontUnicodeRanges uintptr
getGlyphIndices uintptr
getGlyphOutline uintptr
getGraphicsMode uintptr
getICMProfile uintptr
getKerningPairs uintptr
getLayout uintptr
getLogColorSpace uintptr
getMapMode uintptr
getMetaFileBitsEx uintptr
getMetaFile uintptr
getMetaRgn uintptr
getMiterLimit uintptr
getNearestColor uintptr
getNearestPaletteIndex uintptr
getObjectType uintptr
getObject uintptr
getOutlineTextMetrics uintptr
getPaletteEntries uintptr
getPath uintptr
getPixel uintptr
getPixelFormat uintptr
getPolyFillMode uintptr
getROP2 uintptr
getRandomRgn uintptr
getRasterizerCaps uintptr
getRegionData uintptr
getRgnBox uintptr
getStockObject uintptr
getStretchBltMode uintptr
getSystemPaletteEntries uintptr
getSystemPaletteUse uintptr
getTextAlign uintptr
getTextCharacterExtra uintptr
getTextCharset uintptr
getTextCharsetInfo uintptr
getTextColor uintptr
getTextExtentExPointI uintptr
getTextExtentExPoint uintptr
getTextExtentPoint32 uintptr
getTextExtentPointI uintptr
getTextExtentPoint uintptr
getTextFace uintptr
getTextMetrics uintptr
getViewportExtEx uintptr
getViewportOrgEx uintptr
getWinMetaFileBits uintptr
getWindowExtEx uintptr
getWindowOrgEx uintptr
getWorldTransform uintptr
hT_Get8BPPFormatPalette uintptr
hT_Get8BPPMaskPalette uintptr
intersectClipRect uintptr
invertRgn uintptr
lPtoDP uintptr
lineDDA uintptr
lineTo uintptr
maskBlt uintptr
modifyWorldTransform uintptr
moveToEx uintptr
offsetClipRgn uintptr
offsetRgn uintptr
offsetViewportOrgEx uintptr
offsetWindowOrgEx uintptr
pATHOBJ_bEnum uintptr
pATHOBJ_bEnumClipLines uintptr
pATHOBJ_vEnumStart uintptr
pATHOBJ_vEnumStartClipLines uintptr
pATHOBJ_vGetBounds uintptr
paintRgn uintptr
patBlt uintptr
pathToRegion uintptr
pie uintptr
playEnhMetaFile uintptr
playEnhMetaFileRecord uintptr
playMetaFile uintptr
playMetaFileRecord uintptr
plgBlt uintptr
polyBezier uintptr
polyBezierTo uintptr
polyDraw uintptr
polyPolygon uintptr
polyPolyline uintptr
polyTextOut uintptr
polygon uintptr
polyline uintptr
polylineTo uintptr
ptInRegion uintptr
ptVisible uintptr
realizePalette uintptr
rectInRegion uintptr
rectVisible uintptr
rectangle uintptr
removeFontMemResourceEx uintptr
removeFontResourceEx uintptr
removeFontResource uintptr
resetDC uintptr
resizePalette uintptr
restoreDC uintptr
roundRect uintptr
sTROBJ_bEnum uintptr
sTROBJ_bEnumPositionsOnly uintptr
sTROBJ_bGetAdvanceWidths uintptr
sTROBJ_dwGetCodePage uintptr
sTROBJ_vEnumStart uintptr
saveDC uintptr
scaleViewportExtEx uintptr
scaleWindowExtEx uintptr
selectClipPath uintptr
selectClipRgn uintptr
selectObject uintptr
selectPalette uintptr
setAbortProc uintptr
setArcDirection uintptr
setBitmapBits uintptr
setBitmapDimensionEx uintptr
setBkColor uintptr
setBkMode uintptr
setBoundsRect uintptr
setBrushOrgEx uintptr
setColorAdjustment uintptr
setColorSpace uintptr
setDCBrushColor uintptr
setDCPenColor uintptr
setDIBColorTable uintptr
setDIBits uintptr
setDIBitsToDevice uintptr
setDeviceGammaRamp uintptr
setEnhMetaFileBits uintptr
setGraphicsMode uintptr
setICMMode uintptr
setICMProfile uintptr
setLayout uintptr
setMapMode uintptr
setMapperFlags uintptr
setMetaFileBitsEx uintptr
setMetaRgn uintptr
setMiterLimit uintptr
setPaletteEntries uintptr
setPixel uintptr
setPixelFormat uintptr
setPixelV uintptr
setPolyFillMode uintptr
setROP2 uintptr
setRectRgn uintptr
setStretchBltMode uintptr
setSystemPaletteUse uintptr
setTextAlign uintptr
setTextCharacterExtra uintptr
setTextColor uintptr
setTextJustification uintptr
setViewportExtEx uintptr
setViewportOrgEx uintptr
setWinMetaFileBits uintptr
setWindowExtEx uintptr
setWindowOrgEx uintptr
setWorldTransform uintptr
startDoc uintptr
startPage uintptr
stretchBlt uintptr
stretchDIBits uintptr
strokeAndFillPath uintptr
strokePath uintptr
swapBuffers uintptr
textOut uintptr
translateCharsetInfo uintptr
unrealizeObject uintptr
updateColors uintptr
updateICMRegKey uintptr
widenPath uintptr
xFORMOBJ_bApplyXform uintptr
xFORMOBJ_iGetXform uintptr
xLATEOBJ_cGetPalette uintptr
xLATEOBJ_hGetColorTransform uintptr
xLATEOBJ_iXlate uintptr
enableEUDC uintptr
fontIsLinked uintptr
gdiDescribePixelFormat uintptr
gdiDrawStream uintptr
gdiGetCharDimensions uintptr
gdiGetCodePage uintptr
gdiGetSpoolMessage uintptr
gdiInitSpool uintptr
gdiInitializeLanguagePack uintptr
gdiIsMetaFileDC uintptr
gdiIsMetaPrintDC uintptr
gdiIsPlayMetafileDC uintptr
gdiRealizationInfo uintptr
gdiSetPixelFormat uintptr
gdiSwapBuffers uintptr
getFontResourceInfoW uintptr
getRelAbs uintptr
getTransform uintptr
mirrorRgn uintptr
namedEscape uintptr
setMagicColors uintptr
setRelAbs uintptr
setVirtualResolution uintptr
)
func init() {
// Library
libgdi32 = doLoadLibrary("gdi32.dll")
// Functions
abortDoc = doGetProcAddress(libgdi32, "AbortDoc")
abortPath = doGetProcAddress(libgdi32, "AbortPath")
addFontMemResourceEx = doGetProcAddress(libgdi32, "AddFontMemResourceEx")
addFontResourceEx = doGetProcAddress(libgdi32, "AddFontResourceExW")
addFontResource = doGetProcAddress(libgdi32, "AddFontResourceW")
angleArc = doGetProcAddress(libgdi32, "AngleArc")
animatePalette = doGetProcAddress(libgdi32, "AnimatePalette")
arc = doGetProcAddress(libgdi32, "Arc")
arcTo = doGetProcAddress(libgdi32, "ArcTo")
bRUSHOBJ_hGetColorTransform = doGetProcAddress(libgdi32, "BRUSHOBJ_hGetColorTransform")
bRUSHOBJ_pvAllocRbrush = doGetProcAddress(libgdi32, "BRUSHOBJ_pvAllocRbrush")
bRUSHOBJ_pvGetRbrush = doGetProcAddress(libgdi32, "BRUSHOBJ_pvGetRbrush")
bRUSHOBJ_ulGetBrushColor = doGetProcAddress(libgdi32, "BRUSHOBJ_ulGetBrushColor")
beginPath = doGetProcAddress(libgdi32, "BeginPath")
bitBlt = doGetProcAddress(libgdi32, "BitBlt")
cLIPOBJ_bEnum = doGetProcAddress(libgdi32, "CLIPOBJ_bEnum")
cLIPOBJ_cEnumStart = doGetProcAddress(libgdi32, "CLIPOBJ_cEnumStart")
cancelDC = doGetProcAddress(libgdi32, "CancelDC")
checkColorsInGamut = doGetProcAddress(libgdi32, "CheckColorsInGamut")
choosePixelFormat = doGetProcAddress(libgdi32, "ChoosePixelFormat")
chord = doGetProcAddress(libgdi32, "Chord")
closeEnhMetaFile = doGetProcAddress(libgdi32, "CloseEnhMetaFile")
closeFigure = doGetProcAddress(libgdi32, "CloseFigure")
closeMetaFile = doGetProcAddress(libgdi32, "CloseMetaFile")
colorCorrectPalette = doGetProcAddress(libgdi32, "ColorCorrectPalette")
colorMatchToTarget = doGetProcAddress(libgdi32, "ColorMatchToTarget")
combineRgn = doGetProcAddress(libgdi32, "CombineRgn")
combineTransform = doGetProcAddress(libgdi32, "CombineTransform")
copyEnhMetaFile = doGetProcAddress(libgdi32, "CopyEnhMetaFileW")
copyMetaFile = doGetProcAddress(libgdi32, "CopyMetaFileW")
createBitmap = doGetProcAddress(libgdi32, "CreateBitmap")
createBitmapIndirect = doGetProcAddress(libgdi32, "CreateBitmapIndirect")
createBrushIndirect = doGetProcAddress(libgdi32, "CreateBrushIndirect")
createColorSpace = doGetProcAddress(libgdi32, "CreateColorSpaceW")
createCompatibleBitmap = doGetProcAddress(libgdi32, "CreateCompatibleBitmap")
createCompatibleDC = doGetProcAddress(libgdi32, "CreateCompatibleDC")
createDC = doGetProcAddress(libgdi32, "CreateDCW")
createDIBPatternBrush = doGetProcAddress(libgdi32, "CreateDIBPatternBrush")
createDIBPatternBrushPt = doGetProcAddress(libgdi32, "CreateDIBPatternBrushPt")
createDIBSection = doGetProcAddress(libgdi32, "CreateDIBSection")
createDIBitmap = doGetProcAddress(libgdi32, "CreateDIBitmap")
createDiscardableBitmap = doGetProcAddress(libgdi32, "CreateDiscardableBitmap")
createEllipticRgn = doGetProcAddress(libgdi32, "CreateEllipticRgn")
createEllipticRgnIndirect = doGetProcAddress(libgdi32, "CreateEllipticRgnIndirect")
createEnhMetaFile = doGetProcAddress(libgdi32, "CreateEnhMetaFileW")
createFontIndirectEx = doGetProcAddress(libgdi32, "CreateFontIndirectExW")
createFontIndirect = doGetProcAddress(libgdi32, "CreateFontIndirectW")
createFont = doGetProcAddress(libgdi32, "CreateFontW")
createHalftonePalette = doGetProcAddress(libgdi32, "CreateHalftonePalette")
createHatchBrush = doGetProcAddress(libgdi32, "CreateHatchBrush")
createIC = doGetProcAddress(libgdi32, "CreateICW")
createMetaFile = doGetProcAddress(libgdi32, "CreateMetaFileW")
createPalette = doGetProcAddress(libgdi32, "CreatePalette")
createPatternBrush = doGetProcAddress(libgdi32, "CreatePatternBrush")
createPen = doGetProcAddress(libgdi32, "CreatePen")
createPenIndirect = doGetProcAddress(libgdi32, "CreatePenIndirect")
createPolyPolygonRgn = doGetProcAddress(libgdi32, "CreatePolyPolygonRgn")
createPolygonRgn = doGetProcAddress(libgdi32, "CreatePolygonRgn")
createRectRgn = doGetProcAddress(libgdi32, "CreateRectRgn")
createRectRgnIndirect = doGetProcAddress(libgdi32, "CreateRectRgnIndirect")
createRoundRectRgn = doGetProcAddress(libgdi32, "CreateRoundRectRgn")
createScalableFontResource = doGetProcAddress(libgdi32, "CreateScalableFontResourceW")
createSolidBrush = doGetProcAddress(libgdi32, "CreateSolidBrush")
dPtoLP = doGetProcAddress(libgdi32, "DPtoLP")
deleteColorSpace = doGetProcAddress(libgdi32, "DeleteColorSpace")
deleteDC = doGetProcAddress(libgdi32, "DeleteDC")
deleteEnhMetaFile = doGetProcAddress(libgdi32, "DeleteEnhMetaFile")
deleteMetaFile = doGetProcAddress(libgdi32, "DeleteMetaFile")
deleteObject = doGetProcAddress(libgdi32, "DeleteObject")
describePixelFormat = doGetProcAddress(libgdi32, "DescribePixelFormat")
drawEscape = doGetProcAddress(libgdi32, "DrawEscape")
ellipse = doGetProcAddress(libgdi32, "Ellipse")
endDoc = doGetProcAddress(libgdi32, "EndDoc")
endPage = doGetProcAddress(libgdi32, "EndPage")
endPath = doGetProcAddress(libgdi32, "EndPath")
engAcquireSemaphore = doGetProcAddress(libgdi32, "EngAcquireSemaphore")
engAlphaBlend = doGetProcAddress(libgdi32, "EngAlphaBlend")
engAssociateSurface = doGetProcAddress(libgdi32, "EngAssociateSurface")
engBitBlt = doGetProcAddress(libgdi32, "EngBitBlt")
engCheckAbort = doGetProcAddress(libgdi32, "EngCheckAbort")
engCopyBits = doGetProcAddress(libgdi32, "EngCopyBits")
engCreateBitmap = doGetProcAddress(libgdi32, "EngCreateBitmap")
engCreateDeviceBitmap = doGetProcAddress(libgdi32, "EngCreateDeviceBitmap")
engCreateDeviceSurface = doGetProcAddress(libgdi32, "EngCreateDeviceSurface")
engCreatePalette = doGetProcAddress(libgdi32, "EngCreatePalette")
engCreateSemaphore = doGetProcAddress(libgdi32, "EngCreateSemaphore")
engDeleteClip = doGetProcAddress(libgdi32, "EngDeleteClip")
engDeletePalette = doGetProcAddress(libgdi32, "EngDeletePalette")
engDeletePath = doGetProcAddress(libgdi32, "EngDeletePath")
engDeleteSemaphore = doGetProcAddress(libgdi32, "EngDeleteSemaphore")
engDeleteSurface = doGetProcAddress(libgdi32, "EngDeleteSurface")
engEraseSurface = doGetProcAddress(libgdi32, "EngEraseSurface")
engFillPath = doGetProcAddress(libgdi32, "EngFillPath")
engFindResource = doGetProcAddress(libgdi32, "EngFindResource")
engFreeModule = doGetProcAddress(libgdi32, "EngFreeModule")
engGetCurrentCodePage = doGetProcAddress(libgdi32, "EngGetCurrentCodePage")
engGetDriverName = doGetProcAddress(libgdi32, "EngGetDriverName")
engGetPrinterDataFileName = doGetProcAddress(libgdi32, "EngGetPrinterDataFileName")
engGradientFill = doGetProcAddress(libgdi32, "EngGradientFill")
engLineTo = doGetProcAddress(libgdi32, "EngLineTo")
engLoadModule = doGetProcAddress(libgdi32, "EngLoadModule")
engMarkBandingSurface = doGetProcAddress(libgdi32, "EngMarkBandingSurface")
engMultiByteToUnicodeN = doGetProcAddress(libgdi32, "EngMultiByteToUnicodeN")
engMultiByteToWideChar = doGetProcAddress(libgdi32, "EngMultiByteToWideChar")
engPaint = doGetProcAddress(libgdi32, "EngPaint")
engPlgBlt = doGetProcAddress(libgdi32, "EngPlgBlt")
engQueryLocalTime = doGetProcAddress(libgdi32, "EngQueryLocalTime")
engReleaseSemaphore = doGetProcAddress(libgdi32, "EngReleaseSemaphore")
engStretchBlt = doGetProcAddress(libgdi32, "EngStretchBlt")
engStretchBltROP = doGetProcAddress(libgdi32, "EngStretchBltROP")
engStrokeAndFillPath = doGetProcAddress(libgdi32, "EngStrokeAndFillPath")
engStrokePath = doGetProcAddress(libgdi32, "EngStrokePath")
engTextOut = doGetProcAddress(libgdi32, "EngTextOut")
engTransparentBlt = doGetProcAddress(libgdi32, "EngTransparentBlt")
engUnicodeToMultiByteN = doGetProcAddress(libgdi32, "EngUnicodeToMultiByteN")
engUnlockSurface = doGetProcAddress(libgdi32, "EngUnlockSurface")
engWideCharToMultiByte = doGetProcAddress(libgdi32, "EngWideCharToMultiByte")
enumEnhMetaFile = doGetProcAddress(libgdi32, "EnumEnhMetaFile")
enumFontFamiliesEx = doGetProcAddress(libgdi32, "EnumFontFamiliesExW")
enumFontFamilies = doGetProcAddress(libgdi32, "EnumFontFamiliesW")
enumFonts = doGetProcAddress(libgdi32, "EnumFontsW")
enumICMProfiles = doGetProcAddress(libgdi32, "EnumICMProfilesW")
enumMetaFile = doGetProcAddress(libgdi32, "EnumMetaFile")
enumObjects = doGetProcAddress(libgdi32, "EnumObjects")
equalRgn = doGetProcAddress(libgdi32, "EqualRgn")
escape = doGetProcAddress(libgdi32, "Escape")
excludeClipRect = doGetProcAddress(libgdi32, "ExcludeClipRect")
extCreatePen = doGetProcAddress(libgdi32, "ExtCreatePen")
extCreateRegion = doGetProcAddress(libgdi32, "ExtCreateRegion")
extEscape = doGetProcAddress(libgdi32, "ExtEscape")
extFloodFill = doGetProcAddress(libgdi32, "ExtFloodFill")
extSelectClipRgn = doGetProcAddress(libgdi32, "ExtSelectClipRgn")
extTextOut = doGetProcAddress(libgdi32, "ExtTextOutW")
fONTOBJ_cGetAllGlyphHandles = doGetProcAddress(libgdi32, "FONTOBJ_cGetAllGlyphHandles")
fONTOBJ_cGetGlyphs = doGetProcAddress(libgdi32, "FONTOBJ_cGetGlyphs")
fONTOBJ_pQueryGlyphAttrs = doGetProcAddress(libgdi32, "FONTOBJ_pQueryGlyphAttrs")
fONTOBJ_pvTrueTypeFontFile = doGetProcAddress(libgdi32, "FONTOBJ_pvTrueTypeFontFile")
fONTOBJ_vGetInfo = doGetProcAddress(libgdi32, "FONTOBJ_vGetInfo")
fillPath = doGetProcAddress(libgdi32, "FillPath")
fillRgn = doGetProcAddress(libgdi32, "FillRgn")
fixBrushOrgEx = doGetProcAddress(libgdi32, "FixBrushOrgEx")
flattenPath = doGetProcAddress(libgdi32, "FlattenPath")
floodFill = doGetProcAddress(libgdi32, "FloodFill")
frameRgn = doGetProcAddress(libgdi32, "FrameRgn")
gdiAlphaBlend = doGetProcAddress(libgdi32, "GdiAlphaBlend")
gdiComment = doGetProcAddress(libgdi32, "GdiComment")
gdiFlush = doGetProcAddress(libgdi32, "GdiFlush")
gdiGetBatchLimit = doGetProcAddress(libgdi32, "GdiGetBatchLimit")
gdiGradientFill = doGetProcAddress(libgdi32, "GdiGradientFill")
gdiSetBatchLimit = doGetProcAddress(libgdi32, "GdiSetBatchLimit")
gdiTransparentBlt = doGetProcAddress(libgdi32, "GdiTransparentBlt")
getArcDirection = doGetProcAddress(libgdi32, "GetArcDirection")
getAspectRatioFilterEx = doGetProcAddress(libgdi32, "GetAspectRatioFilterEx")
getBitmapBits = doGetProcAddress(libgdi32, "GetBitmapBits")
getBitmapDimensionEx = doGetProcAddress(libgdi32, "GetBitmapDimensionEx")
getBkColor = doGetProcAddress(libgdi32, "GetBkColor")
getBkMode = doGetProcAddress(libgdi32, "GetBkMode")
getBoundsRect = doGetProcAddress(libgdi32, "GetBoundsRect")
getBrushOrgEx = doGetProcAddress(libgdi32, "GetBrushOrgEx")
getCharABCWidthsFloat = doGetProcAddress(libgdi32, "GetCharABCWidthsFloatW")
getCharABCWidthsI = doGetProcAddress(libgdi32, "GetCharABCWidthsI")
getCharABCWidths = doGetProcAddress(libgdi32, "GetCharABCWidthsW")
getCharWidth32 = doGetProcAddress(libgdi32, "GetCharWidth32W")
getCharWidthFloat = doGetProcAddress(libgdi32, "GetCharWidthFloatW")
getCharWidthI = doGetProcAddress(libgdi32, "GetCharWidthI")
getCharWidth = doGetProcAddress(libgdi32, "GetCharWidthW")
getCharacterPlacement = doGetProcAddress(libgdi32, "GetCharacterPlacementW")
getClipBox = doGetProcAddress(libgdi32, "GetClipBox")
getClipRgn = doGetProcAddress(libgdi32, "GetClipRgn")
getColorAdjustment = doGetProcAddress(libgdi32, "GetColorAdjustment")
getColorSpace = doGetProcAddress(libgdi32, "GetColorSpace")
getCurrentObject = doGetProcAddress(libgdi32, "GetCurrentObject")
getCurrentPositionEx = doGetProcAddress(libgdi32, "GetCurrentPositionEx")
getDCBrushColor = doGetProcAddress(libgdi32, "GetDCBrushColor")
getDCOrgEx = doGetProcAddress(libgdi32, "GetDCOrgEx")
getDCPenColor = doGetProcAddress(libgdi32, "GetDCPenColor")
getDIBColorTable = doGetProcAddress(libgdi32, "GetDIBColorTable")
getDIBits = doGetProcAddress(libgdi32, "GetDIBits")
getDeviceCaps = doGetProcAddress(libgdi32, "GetDeviceCaps")
getDeviceGammaRamp = doGetProcAddress(libgdi32, "GetDeviceGammaRamp")
getEnhMetaFileBits = doGetProcAddress(libgdi32, "GetEnhMetaFileBits")
getEnhMetaFileDescription = doGetProcAddress(libgdi32, "GetEnhMetaFileDescriptionW")
getEnhMetaFileHeader = doGetProcAddress(libgdi32, "GetEnhMetaFileHeader")
getEnhMetaFilePaletteEntries = doGetProcAddress(libgdi32, "GetEnhMetaFilePaletteEntries")
getEnhMetaFilePixelFormat = doGetProcAddress(libgdi32, "GetEnhMetaFilePixelFormat")
getEnhMetaFile = doGetProcAddress(libgdi32, "GetEnhMetaFileW")
getFontData = doGetProcAddress(libgdi32, "GetFontData")
getFontLanguageInfo = doGetProcAddress(libgdi32, "GetFontLanguageInfo")
getFontUnicodeRanges = doGetProcAddress(libgdi32, "GetFontUnicodeRanges")
getGlyphIndices = doGetProcAddress(libgdi32, "GetGlyphIndicesW")
getGlyphOutline = doGetProcAddress(libgdi32, "GetGlyphOutlineW")
getGraphicsMode = doGetProcAddress(libgdi32, "GetGraphicsMode")
getICMProfile = doGetProcAddress(libgdi32, "GetICMProfileW")
getKerningPairs = doGetProcAddress(libgdi32, "GetKerningPairsW")
getLayout = doGetProcAddress(libgdi32, "GetLayout")
getLogColorSpace = doGetProcAddress(libgdi32, "GetLogColorSpaceW")
getMapMode = doGetProcAddress(libgdi32, "GetMapMode")
getMetaFileBitsEx = doGetProcAddress(libgdi32, "GetMetaFileBitsEx")
getMetaFile = doGetProcAddress(libgdi32, "GetMetaFileW")
getMetaRgn = doGetProcAddress(libgdi32, "GetMetaRgn")
getMiterLimit = doGetProcAddress(libgdi32, "GetMiterLimit")
getNearestColor = doGetProcAddress(libgdi32, "GetNearestColor")
getNearestPaletteIndex = doGetProcAddress(libgdi32, "GetNearestPaletteIndex")
getObjectType = doGetProcAddress(libgdi32, "GetObjectType")
getObject = doGetProcAddress(libgdi32, "GetObjectW")
getOutlineTextMetrics = doGetProcAddress(libgdi32, "GetOutlineTextMetricsW")
getPaletteEntries = doGetProcAddress(libgdi32, "GetPaletteEntries")
getPath = doGetProcAddress(libgdi32, "GetPath")
getPixel = doGetProcAddress(libgdi32, "GetPixel")
getPixelFormat = doGetProcAddress(libgdi32, "GetPixelFormat")
getPolyFillMode = doGetProcAddress(libgdi32, "GetPolyFillMode")
getROP2 = doGetProcAddress(libgdi32, "GetROP2")
getRandomRgn = doGetProcAddress(libgdi32, "GetRandomRgn")
getRasterizerCaps = doGetProcAddress(libgdi32, "GetRasterizerCaps")
getRegionData = doGetProcAddress(libgdi32, "GetRegionData")
getRgnBox = doGetProcAddress(libgdi32, "GetRgnBox")
getStockObject = doGetProcAddress(libgdi32, "GetStockObject")
getStretchBltMode = doGetProcAddress(libgdi32, "GetStretchBltMode")
getSystemPaletteEntries = doGetProcAddress(libgdi32, "GetSystemPaletteEntries")
getSystemPaletteUse = doGetProcAddress(libgdi32, "GetSystemPaletteUse")
getTextAlign = doGetProcAddress(libgdi32, "GetTextAlign")
getTextCharacterExtra = doGetProcAddress(libgdi32, "GetTextCharacterExtra")
getTextCharset = doGetProcAddress(libgdi32, "GetTextCharset")
getTextCharsetInfo = doGetProcAddress(libgdi32, "GetTextCharsetInfo")
getTextColor = doGetProcAddress(libgdi32, "GetTextColor")
getTextExtentExPointI = doGetProcAddress(libgdi32, "GetTextExtentExPointI")
getTextExtentExPoint = doGetProcAddress(libgdi32, "GetTextExtentExPointW")
getTextExtentPoint32 = doGetProcAddress(libgdi32, "GetTextExtentPoint32W")
getTextExtentPointI = doGetProcAddress(libgdi32, "GetTextExtentPointI")
getTextExtentPoint = doGetProcAddress(libgdi32, "GetTextExtentPointW")
getTextFace = doGetProcAddress(libgdi32, "GetTextFaceW")
getTextMetrics = doGetProcAddress(libgdi32, "GetTextMetricsW")
getViewportExtEx = doGetProcAddress(libgdi32, "GetViewportExtEx")
getViewportOrgEx = doGetProcAddress(libgdi32, "GetViewportOrgEx")
getWinMetaFileBits = doGetProcAddress(libgdi32, "GetWinMetaFileBits")
getWindowExtEx = doGetProcAddress(libgdi32, "GetWindowExtEx")
getWindowOrgEx = doGetProcAddress(libgdi32, "GetWindowOrgEx")
getWorldTransform = doGetProcAddress(libgdi32, "GetWorldTransform")
hT_Get8BPPFormatPalette = doGetProcAddress(libgdi32, "HT_Get8BPPFormatPalette")
hT_Get8BPPMaskPalette = doGetProcAddress(libgdi32, "HT_Get8BPPMaskPalette")
intersectClipRect = doGetProcAddress(libgdi32, "IntersectClipRect")
invertRgn = doGetProcAddress(libgdi32, "InvertRgn")
lPtoDP = doGetProcAddress(libgdi32, "LPtoDP")
lineDDA = doGetProcAddress(libgdi32, "LineDDA")
lineTo = doGetProcAddress(libgdi32, "LineTo")
maskBlt = doGetProcAddress(libgdi32, "MaskBlt")
modifyWorldTransform = doGetProcAddress(libgdi32, "ModifyWorldTransform")
moveToEx = doGetProcAddress(libgdi32, "MoveToEx")
offsetClipRgn = doGetProcAddress(libgdi32, "OffsetClipRgn")
offsetRgn = doGetProcAddress(libgdi32, "OffsetRgn")
offsetViewportOrgEx = doGetProcAddress(libgdi32, "OffsetViewportOrgEx")
offsetWindowOrgEx = doGetProcAddress(libgdi32, "OffsetWindowOrgEx")
pATHOBJ_bEnum = doGetProcAddress(libgdi32, "PATHOBJ_bEnum")
pATHOBJ_bEnumClipLines = doGetProcAddress(libgdi32, "PATHOBJ_bEnumClipLines")
pATHOBJ_vEnumStart = doGetProcAddress(libgdi32, "PATHOBJ_vEnumStart")
pATHOBJ_vEnumStartClipLines = doGetProcAddress(libgdi32, "PATHOBJ_vEnumStartClipLines")
pATHOBJ_vGetBounds = doGetProcAddress(libgdi32, "PATHOBJ_vGetBounds")
paintRgn = doGetProcAddress(libgdi32, "PaintRgn")
patBlt = doGetProcAddress(libgdi32, "PatBlt")
pathToRegion = doGetProcAddress(libgdi32, "PathToRegion")
pie = doGetProcAddress(libgdi32, "Pie")
playEnhMetaFile = doGetProcAddress(libgdi32, "PlayEnhMetaFile")
playEnhMetaFileRecord = doGetProcAddress(libgdi32, "PlayEnhMetaFileRecord")
playMetaFile = doGetProcAddress(libgdi32, "PlayMetaFile")
playMetaFileRecord = doGetProcAddress(libgdi32, "PlayMetaFileRecord")
plgBlt = doGetProcAddress(libgdi32, "PlgBlt")
polyBezier = doGetProcAddress(libgdi32, "PolyBezier")
polyBezierTo = doGetProcAddress(libgdi32, "PolyBezierTo")
polyDraw = doGetProcAddress(libgdi32, "PolyDraw")
polyPolygon = doGetProcAddress(libgdi32, "PolyPolygon")
polyPolyline = doGetProcAddress(libgdi32, "PolyPolyline")
polyTextOut = doGetProcAddress(libgdi32, "PolyTextOutW")
polygon = doGetProcAddress(libgdi32, "Polygon")
polyline = doGetProcAddress(libgdi32, "Polyline")
polylineTo = doGetProcAddress(libgdi32, "PolylineTo")
ptInRegion = doGetProcAddress(libgdi32, "PtInRegion")
ptVisible = doGetProcAddress(libgdi32, "PtVisible")
realizePalette = doGetProcAddress(libgdi32, "RealizePalette")
rectInRegion = doGetProcAddress(libgdi32, "RectInRegion")
rectVisible = doGetProcAddress(libgdi32, "RectVisible")
rectangle = doGetProcAddress(libgdi32, "Rectangle")
removeFontMemResourceEx = doGetProcAddress(libgdi32, "RemoveFontMemResourceEx")
removeFontResourceEx = doGetProcAddress(libgdi32, "RemoveFontResourceExW")
removeFontResource = doGetProcAddress(libgdi32, "RemoveFontResourceW")
resetDC = doGetProcAddress(libgdi32, "ResetDCW")
resizePalette = doGetProcAddress(libgdi32, "ResizePalette")
restoreDC = doGetProcAddress(libgdi32, "RestoreDC")
roundRect = doGetProcAddress(libgdi32, "RoundRect")
sTROBJ_bEnum = doGetProcAddress(libgdi32, "STROBJ_bEnum")
sTROBJ_bEnumPositionsOnly = doGetProcAddress(libgdi32, "STROBJ_bEnumPositionsOnly")
sTROBJ_bGetAdvanceWidths = doGetProcAddress(libgdi32, "STROBJ_bGetAdvanceWidths")
sTROBJ_dwGetCodePage = doGetProcAddress(libgdi32, "STROBJ_dwGetCodePage")
sTROBJ_vEnumStart = doGetProcAddress(libgdi32, "STROBJ_vEnumStart")
saveDC = doGetProcAddress(libgdi32, "SaveDC")
scaleViewportExtEx = doGetProcAddress(libgdi32, "ScaleViewportExtEx")
scaleWindowExtEx = doGetProcAddress(libgdi32, "ScaleWindowExtEx")
selectClipPath = doGetProcAddress(libgdi32, "SelectClipPath")
selectClipRgn = doGetProcAddress(libgdi32, "SelectClipRgn")
selectObject = doGetProcAddress(libgdi32, "SelectObject")
selectPalette = doGetProcAddress(libgdi32, "SelectPalette")
setAbortProc = doGetProcAddress(libgdi32, "SetAbortProc")
setArcDirection = doGetProcAddress(libgdi32, "SetArcDirection")
setBitmapBits = doGetProcAddress(libgdi32, "SetBitmapBits")
setBitmapDimensionEx = doGetProcAddress(libgdi32, "SetBitmapDimensionEx")
setBkColor = doGetProcAddress(libgdi32, "SetBkColor")
setBkMode = doGetProcAddress(libgdi32, "SetBkMode")
setBoundsRect = doGetProcAddress(libgdi32, "SetBoundsRect")
setBrushOrgEx = doGetProcAddress(libgdi32, "SetBrushOrgEx")
setColorAdjustment = doGetProcAddress(libgdi32, "SetColorAdjustment")
setColorSpace = doGetProcAddress(libgdi32, "SetColorSpace")
setDCBrushColor = doGetProcAddress(libgdi32, "SetDCBrushColor")
setDCPenColor = doGetProcAddress(libgdi32, "SetDCPenColor")
setDIBColorTable = doGetProcAddress(libgdi32, "SetDIBColorTable")
setDIBits = doGetProcAddress(libgdi32, "SetDIBits")
setDIBitsToDevice = doGetProcAddress(libgdi32, "SetDIBitsToDevice")
setDeviceGammaRamp = doGetProcAddress(libgdi32, "SetDeviceGammaRamp")
setEnhMetaFileBits = doGetProcAddress(libgdi32, "SetEnhMetaFileBits")
setGraphicsMode = doGetProcAddress(libgdi32, "SetGraphicsMode")
setICMMode = doGetProcAddress(libgdi32, "SetICMMode")
setICMProfile = doGetProcAddress(libgdi32, "SetICMProfileW")
setLayout = doGetProcAddress(libgdi32, "SetLayout")
setMapMode = doGetProcAddress(libgdi32, "SetMapMode")
setMapperFlags = doGetProcAddress(libgdi32, "SetMapperFlags")
setMetaFileBitsEx = doGetProcAddress(libgdi32, "SetMetaFileBitsEx")
setMetaRgn = doGetProcAddress(libgdi32, "SetMetaRgn")
setMiterLimit = doGetProcAddress(libgdi32, "SetMiterLimit")
setPaletteEntries = doGetProcAddress(libgdi32, "SetPaletteEntries")
setPixel = doGetProcAddress(libgdi32, "SetPixel")
setPixelFormat = doGetProcAddress(libgdi32, "SetPixelFormat")
setPixelV = doGetProcAddress(libgdi32, "SetPixelV")
setPolyFillMode = doGetProcAddress(libgdi32, "SetPolyFillMode")
setROP2 = doGetProcAddress(libgdi32, "SetROP2")
setRectRgn = doGetProcAddress(libgdi32, "SetRectRgn")
setStretchBltMode = doGetProcAddress(libgdi32, "SetStretchBltMode")
setSystemPaletteUse = doGetProcAddress(libgdi32, "SetSystemPaletteUse")
setTextAlign = doGetProcAddress(libgdi32, "SetTextAlign")
setTextCharacterExtra = doGetProcAddress(libgdi32, "SetTextCharacterExtra")
setTextColor = doGetProcAddress(libgdi32, "SetTextColor")
setTextJustification = doGetProcAddress(libgdi32, "SetTextJustification")
setViewportExtEx = doGetProcAddress(libgdi32, "SetViewportExtEx")
setViewportOrgEx = doGetProcAddress(libgdi32, "SetViewportOrgEx")
setWinMetaFileBits = doGetProcAddress(libgdi32, "SetWinMetaFileBits")
setWindowExtEx = doGetProcAddress(libgdi32, "SetWindowExtEx")
setWindowOrgEx = doGetProcAddress(libgdi32, "SetWindowOrgEx")
setWorldTransform = doGetProcAddress(libgdi32, "SetWorldTransform")
startDoc = doGetProcAddress(libgdi32, "StartDocW")
startPage = doGetProcAddress(libgdi32, "StartPage")
stretchBlt = doGetProcAddress(libgdi32, "StretchBlt")
stretchDIBits = doGetProcAddress(libgdi32, "StretchDIBits")
strokeAndFillPath = doGetProcAddress(libgdi32, "StrokeAndFillPath")
strokePath = doGetProcAddress(libgdi32, "StrokePath")
swapBuffers = doGetProcAddress(libgdi32, "SwapBuffers")
textOut = doGetProcAddress(libgdi32, "TextOutW")
translateCharsetInfo = doGetProcAddress(libgdi32, "TranslateCharsetInfo")
unrealizeObject = doGetProcAddress(libgdi32, "UnrealizeObject")
updateColors = doGetProcAddress(libgdi32, "UpdateColors")
updateICMRegKey = doGetProcAddress(libgdi32, "UpdateICMRegKeyW")
widenPath = doGetProcAddress(libgdi32, "WidenPath")
xFORMOBJ_bApplyXform = doGetProcAddress(libgdi32, "XFORMOBJ_bApplyXform")
xFORMOBJ_iGetXform = doGetProcAddress(libgdi32, "XFORMOBJ_iGetXform")
xLATEOBJ_cGetPalette = doGetProcAddress(libgdi32, "XLATEOBJ_cGetPalette")
xLATEOBJ_hGetColorTransform = doGetProcAddress(libgdi32, "XLATEOBJ_hGetColorTransform")
xLATEOBJ_iXlate = doGetProcAddress(libgdi32, "XLATEOBJ_iXlate")
enableEUDC = doGetProcAddress(libgdi32, "EnableEUDC")
fontIsLinked = doGetProcAddress(libgdi32, "FontIsLinked")
gdiDescribePixelFormat = doGetProcAddress(libgdi32, "GdiDescribePixelFormat")
gdiDrawStream = doGetProcAddress(libgdi32, "GdiDrawStream")
gdiGetCharDimensions = doGetProcAddress(libgdi32, "GdiGetCharDimensions")
gdiGetCodePage = doGetProcAddress(libgdi32, "GdiGetCodePage")
gdiGetSpoolMessage = doGetProcAddress(libgdi32, "GdiGetSpoolMessage")
gdiInitSpool = doGetProcAddress(libgdi32, "GdiInitSpool")
gdiInitializeLanguagePack = doGetProcAddress(libgdi32, "GdiInitializeLanguagePack")
gdiIsMetaFileDC = doGetProcAddress(libgdi32, "GdiIsMetaFileDC")
gdiIsMetaPrintDC = doGetProcAddress(libgdi32, "GdiIsMetaPrintDC")
gdiIsPlayMetafileDC = doGetProcAddress(libgdi32, "GdiIsPlayMetafileDC")
gdiRealizationInfo = doGetProcAddress(libgdi32, "GdiRealizationInfo")
gdiSetPixelFormat = doGetProcAddress(libgdi32, "GdiSetPixelFormat")
gdiSwapBuffers = doGetProcAddress(libgdi32, "GdiSwapBuffers")
getFontResourceInfoW = doGetProcAddress(libgdi32, "GetFontResourceInfoW")
getRelAbs = doGetProcAddress(libgdi32, "GetRelAbs")
getTransform = doGetProcAddress(libgdi32, "GetTransform")
mirrorRgn = doGetProcAddress(libgdi32, "MirrorRgn")
namedEscape = doGetProcAddress(libgdi32, "NamedEscape")
setMagicColors = doGetProcAddress(libgdi32, "SetMagicColors")
setRelAbs = doGetProcAddress(libgdi32, "SetRelAbs")
setVirtualResolution = doGetProcAddress(libgdi32, "SetVirtualResolution")
}
func AbortDoc(hdc HDC) int32 {
ret1 := syscall3(abortDoc, 1,
uintptr(hdc),
0,
0)
return int32(ret1)
}
func AbortPath(hdc HDC) bool {
ret1 := syscall3(abortPath, 1,
uintptr(hdc),
0,
0)
return ret1 != 0
}
func AddFontMemResourceEx(pFileView uintptr, cjSize DWORD, pvResrved uintptr, pNumFonts *uint32) HANDLE {
ret1 := syscall6(addFontMemResourceEx, 4,
pFileView,
uintptr(cjSize),
pvResrved,
uintptr(unsafe.Pointer(pNumFonts)),
0,
0)
return HANDLE(ret1)
}
func AddFontResourceEx(name string, fl DWORD, res uintptr) int32 {
nameStr := unicode16FromString(name)
ret1 := syscall3(addFontResourceEx, 3,
uintptr(unsafe.Pointer(&nameStr[0])),
uintptr(fl),
res)
return int32(ret1)
}
func AddFontResource(unnamed0 string) int32 {
unnamed0Str := unicode16FromString(unnamed0)
ret1 := syscall3(addFontResource, 1,
uintptr(unsafe.Pointer(&unnamed0Str[0])),
0,
0)
return int32(ret1)
}
func AngleArc(hdc HDC, x int32, y int32, r DWORD, startAngle FLOAT, sweepAngle FLOAT) bool {
ret1 := syscall6(angleArc, 6,
uintptr(hdc),
uintptr(x),
uintptr(y),
uintptr(r),
uintptr(startAngle),
uintptr(sweepAngle))
return ret1 != 0
}
func AnimatePalette(hPal HPALETTE, iStartIndex UINT, cEntries UINT, ppe /*const*/ *PALETTEENTRY) bool {
ret1 := syscall6(animatePalette, 4,
uintptr(hPal),
uintptr(iStartIndex),
uintptr(cEntries),
uintptr(unsafe.Pointer(ppe)),
0,
0)
return ret1 != 0
}
func Arc(hdc HDC, x1 int32, y1 int32, x2 int32, y2 int32, x3 int32, y3 int32, x4 int32, y4 int32) bool {
ret1 := syscall9(arc, 9,
uintptr(hdc),
uintptr(x1),
uintptr(y1),
uintptr(x2),
uintptr(y2),
uintptr(x3),
uintptr(y3),
uintptr(x4),
uintptr(y4))
return ret1 != 0
}
func ArcTo(hdc HDC, left int32, top int32, right int32, bottom int32, xr1 int32, yr1 int32, xr2 int32, yr2 int32) bool {
ret1 := syscall9(arcTo, 9,
uintptr(hdc),
uintptr(left),
uintptr(top),
uintptr(right),
uintptr(bottom),
uintptr(xr1),
uintptr(yr1),
uintptr(xr2),
uintptr(yr2))
return ret1 != 0
}
func BRUSHOBJ_hGetColorTransform(pbo *BRUSHOBJ) HANDLE {
ret1 := syscall3(bRUSHOBJ_hGetColorTransform, 1,
uintptr(unsafe.Pointer(pbo)),
0,
0)
return HANDLE(ret1)
}
func BRUSHOBJ_pvAllocRbrush(pbo *BRUSHOBJ, cj ULONG) uintptr {
ret1 := syscall3(bRUSHOBJ_pvAllocRbrush, 2,
uintptr(unsafe.Pointer(pbo)),
uintptr(cj),
0)
return (uintptr)(unsafe.Pointer(ret1))
}
func BRUSHOBJ_pvGetRbrush(pbo *BRUSHOBJ) uintptr {
ret1 := syscall3(bRUSHOBJ_pvGetRbrush, 1,
uintptr(unsafe.Pointer(pbo)),
0,
0)
return (uintptr)(unsafe.Pointer(ret1))
}
func BRUSHOBJ_ulGetBrushColor(pbo *BRUSHOBJ) ULONG {
ret1 := syscall3(bRUSHOBJ_ulGetBrushColor, 1,
uintptr(unsafe.Pointer(pbo)),
0,
0)
return ULONG(ret1)
}
func BeginPath(hdc HDC) bool {
ret1 := syscall3(beginPath, 1,
uintptr(hdc),
0,
0)
return ret1 != 0
}
func BitBlt(hdc HDC, x int32, y int32, cx int32, cy int32, hdcSrc HDC, x1 int32, y1 int32, rop DWORD) bool {
ret1 := syscall9(bitBlt, 9,
uintptr(hdc),
uintptr(x),
uintptr(y),
uintptr(cx),
uintptr(cy),
uintptr(hdcSrc),
uintptr(x1),
uintptr(y1),
uintptr(rop))
return ret1 != 0
}
func CLIPOBJ_bEnum(pco *CLIPOBJ, cj ULONG, pv *ULONG) bool {
ret1 := syscall3(cLIPOBJ_bEnum, 3,
uintptr(unsafe.Pointer(pco)),
uintptr(cj),
uintptr(unsafe.Pointer(pv)))
return ret1 != 0
}
func CLIPOBJ_cEnumStart(pco *CLIPOBJ, bAll bool, iType ULONG, iDirection ULONG, cLimit ULONG) ULONG {
ret1 := syscall6(cLIPOBJ_cEnumStart, 5,
uintptr(unsafe.Pointer(pco)),
getUintptrFromBool(bAll),
uintptr(iType),
uintptr(iDirection),
uintptr(cLimit),
0)
return ULONG(ret1)
}
func CancelDC(hdc HDC) bool {
ret1 := syscall3(cancelDC, 1,
uintptr(hdc),
0,
0)
return ret1 != 0
}
func CheckColorsInGamut(hdc HDC, lpRGBTriple LPVOID, dlpBuffer LPVOID, nCount DWORD) bool {
ret1 := syscall6(checkColorsInGamut, 4,
uintptr(hdc),
uintptr(unsafe.Pointer(lpRGBTriple)),
uintptr(unsafe.Pointer(dlpBuffer)),
uintptr(nCount),
0,
0)
return ret1 != 0
}
func ChoosePixelFormat(hdc HDC, ppfd /*const*/ *PIXELFORMATDESCRIPTOR) int32 {
ret1 := syscall3(choosePixelFormat, 2,
uintptr(hdc),
uintptr(unsafe.Pointer(ppfd)),
0)
return int32(ret1)
}
func Chord(hdc HDC, x1 int32, y1 int32, x2 int32, y2 int32, x3 int32, y3 int32, x4 int32, y4 int32) bool {
ret1 := syscall9(chord, 9,
uintptr(hdc),
uintptr(x1),
uintptr(y1),
uintptr(x2),
uintptr(y2),