github.com/kbinani/win@v0.3.0/gdi32.go (about)

     1  // This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
     2  // go run internal/cmd/gen/gen.go
     3  
     4  // +build windows
     5  
     6  package win
     7  
     8  import (
     9  	"syscall"
    10  	"unsafe"
    11  )
    12  
    13  var (
    14  	// Library
    15  	libgdi32 uintptr
    16  
    17  	// Functions
    18  	abortDoc                     uintptr
    19  	abortPath                    uintptr
    20  	addFontMemResourceEx         uintptr
    21  	addFontResourceEx            uintptr
    22  	addFontResource              uintptr
    23  	angleArc                     uintptr
    24  	animatePalette               uintptr
    25  	arc                          uintptr
    26  	arcTo                        uintptr
    27  	bRUSHOBJ_hGetColorTransform  uintptr
    28  	bRUSHOBJ_pvAllocRbrush       uintptr
    29  	bRUSHOBJ_pvGetRbrush         uintptr
    30  	bRUSHOBJ_ulGetBrushColor     uintptr
    31  	beginPath                    uintptr
    32  	bitBlt                       uintptr
    33  	cLIPOBJ_bEnum                uintptr
    34  	cLIPOBJ_cEnumStart           uintptr
    35  	cancelDC                     uintptr
    36  	checkColorsInGamut           uintptr
    37  	choosePixelFormat            uintptr
    38  	chord                        uintptr
    39  	closeEnhMetaFile             uintptr
    40  	closeFigure                  uintptr
    41  	closeMetaFile                uintptr
    42  	colorCorrectPalette          uintptr
    43  	colorMatchToTarget           uintptr
    44  	combineRgn                   uintptr
    45  	combineTransform             uintptr
    46  	copyEnhMetaFile              uintptr
    47  	copyMetaFile                 uintptr
    48  	createBitmap                 uintptr
    49  	createBitmapIndirect         uintptr
    50  	createBrushIndirect          uintptr
    51  	createColorSpace             uintptr
    52  	createCompatibleBitmap       uintptr
    53  	createCompatibleDC           uintptr
    54  	createDC                     uintptr
    55  	createDIBPatternBrush        uintptr
    56  	createDIBPatternBrushPt      uintptr
    57  	createDIBSection             uintptr
    58  	createDIBitmap               uintptr
    59  	createDiscardableBitmap      uintptr
    60  	createEllipticRgn            uintptr
    61  	createEllipticRgnIndirect    uintptr
    62  	createEnhMetaFile            uintptr
    63  	createFontIndirectEx         uintptr
    64  	createFontIndirect           uintptr
    65  	createFont                   uintptr
    66  	createHalftonePalette        uintptr
    67  	createHatchBrush             uintptr
    68  	createIC                     uintptr
    69  	createMetaFile               uintptr
    70  	createPalette                uintptr
    71  	createPatternBrush           uintptr
    72  	createPen                    uintptr
    73  	createPenIndirect            uintptr
    74  	createPolyPolygonRgn         uintptr
    75  	createPolygonRgn             uintptr
    76  	createRectRgn                uintptr
    77  	createRectRgnIndirect        uintptr
    78  	createRoundRectRgn           uintptr
    79  	createScalableFontResource   uintptr
    80  	createSolidBrush             uintptr
    81  	dPtoLP                       uintptr
    82  	deleteColorSpace             uintptr
    83  	deleteDC                     uintptr
    84  	deleteEnhMetaFile            uintptr
    85  	deleteMetaFile               uintptr
    86  	deleteObject                 uintptr
    87  	describePixelFormat          uintptr
    88  	drawEscape                   uintptr
    89  	ellipse                      uintptr
    90  	endDoc                       uintptr
    91  	endPage                      uintptr
    92  	endPath                      uintptr
    93  	engAcquireSemaphore          uintptr
    94  	engAlphaBlend                uintptr
    95  	engAssociateSurface          uintptr
    96  	engBitBlt                    uintptr
    97  	engCheckAbort                uintptr
    98  	engCopyBits                  uintptr
    99  	engCreateBitmap              uintptr
   100  	engCreateDeviceBitmap        uintptr
   101  	engCreateDeviceSurface       uintptr
   102  	engCreatePalette             uintptr
   103  	engCreateSemaphore           uintptr
   104  	engDeleteClip                uintptr
   105  	engDeletePalette             uintptr
   106  	engDeletePath                uintptr
   107  	engDeleteSemaphore           uintptr
   108  	engDeleteSurface             uintptr
   109  	engEraseSurface              uintptr
   110  	engFillPath                  uintptr
   111  	engFindResource              uintptr
   112  	engFreeModule                uintptr
   113  	engGetCurrentCodePage        uintptr
   114  	engGetDriverName             uintptr
   115  	engGetPrinterDataFileName    uintptr
   116  	engGradientFill              uintptr
   117  	engLineTo                    uintptr
   118  	engLoadModule                uintptr
   119  	engMarkBandingSurface        uintptr
   120  	engMultiByteToUnicodeN       uintptr
   121  	engMultiByteToWideChar       uintptr
   122  	engPaint                     uintptr
   123  	engPlgBlt                    uintptr
   124  	engQueryLocalTime            uintptr
   125  	engReleaseSemaphore          uintptr
   126  	engStretchBlt                uintptr
   127  	engStretchBltROP             uintptr
   128  	engStrokeAndFillPath         uintptr
   129  	engStrokePath                uintptr
   130  	engTextOut                   uintptr
   131  	engTransparentBlt            uintptr
   132  	engUnicodeToMultiByteN       uintptr
   133  	engUnlockSurface             uintptr
   134  	engWideCharToMultiByte       uintptr
   135  	enumEnhMetaFile              uintptr
   136  	enumFontFamiliesEx           uintptr
   137  	enumFontFamilies             uintptr
   138  	enumFonts                    uintptr
   139  	enumICMProfiles              uintptr
   140  	enumMetaFile                 uintptr
   141  	enumObjects                  uintptr
   142  	equalRgn                     uintptr
   143  	escape                       uintptr
   144  	excludeClipRect              uintptr
   145  	extCreatePen                 uintptr
   146  	extCreateRegion              uintptr
   147  	extEscape                    uintptr
   148  	extFloodFill                 uintptr
   149  	extSelectClipRgn             uintptr
   150  	extTextOut                   uintptr
   151  	fONTOBJ_cGetAllGlyphHandles  uintptr
   152  	fONTOBJ_cGetGlyphs           uintptr
   153  	fONTOBJ_pQueryGlyphAttrs     uintptr
   154  	fONTOBJ_pvTrueTypeFontFile   uintptr
   155  	fONTOBJ_vGetInfo             uintptr
   156  	fillPath                     uintptr
   157  	fillRgn                      uintptr
   158  	fixBrushOrgEx                uintptr
   159  	flattenPath                  uintptr
   160  	floodFill                    uintptr
   161  	frameRgn                     uintptr
   162  	gdiAlphaBlend                uintptr
   163  	gdiComment                   uintptr
   164  	gdiFlush                     uintptr
   165  	gdiGetBatchLimit             uintptr
   166  	gdiGradientFill              uintptr
   167  	gdiSetBatchLimit             uintptr
   168  	gdiTransparentBlt            uintptr
   169  	getArcDirection              uintptr
   170  	getAspectRatioFilterEx       uintptr
   171  	getBitmapBits                uintptr
   172  	getBitmapDimensionEx         uintptr
   173  	getBkColor                   uintptr
   174  	getBkMode                    uintptr
   175  	getBoundsRect                uintptr
   176  	getBrushOrgEx                uintptr
   177  	getCharABCWidthsFloat        uintptr
   178  	getCharABCWidthsI            uintptr
   179  	getCharABCWidths             uintptr
   180  	getCharWidth32               uintptr
   181  	getCharWidthFloat            uintptr
   182  	getCharWidthI                uintptr
   183  	getCharWidth                 uintptr
   184  	getCharacterPlacement        uintptr
   185  	getClipBox                   uintptr
   186  	getClipRgn                   uintptr
   187  	getColorAdjustment           uintptr
   188  	getColorSpace                uintptr
   189  	getCurrentObject             uintptr
   190  	getCurrentPositionEx         uintptr
   191  	getDCBrushColor              uintptr
   192  	getDCOrgEx                   uintptr
   193  	getDCPenColor                uintptr
   194  	getDIBColorTable             uintptr
   195  	getDIBits                    uintptr
   196  	getDeviceCaps                uintptr
   197  	getDeviceGammaRamp           uintptr
   198  	getEnhMetaFileBits           uintptr
   199  	getEnhMetaFileDescription    uintptr
   200  	getEnhMetaFileHeader         uintptr
   201  	getEnhMetaFilePaletteEntries uintptr
   202  	getEnhMetaFilePixelFormat    uintptr
   203  	getEnhMetaFile               uintptr
   204  	getFontData                  uintptr
   205  	getFontLanguageInfo          uintptr
   206  	getFontUnicodeRanges         uintptr
   207  	getGlyphIndices              uintptr
   208  	getGlyphOutline              uintptr
   209  	getGraphicsMode              uintptr
   210  	getICMProfile                uintptr
   211  	getKerningPairs              uintptr
   212  	getLayout                    uintptr
   213  	getLogColorSpace             uintptr
   214  	getMapMode                   uintptr
   215  	getMetaFileBitsEx            uintptr
   216  	getMetaFile                  uintptr
   217  	getMetaRgn                   uintptr
   218  	getMiterLimit                uintptr
   219  	getNearestColor              uintptr
   220  	getNearestPaletteIndex       uintptr
   221  	getObjectType                uintptr
   222  	getObject                    uintptr
   223  	getOutlineTextMetrics        uintptr
   224  	getPaletteEntries            uintptr
   225  	getPath                      uintptr
   226  	getPixel                     uintptr
   227  	getPixelFormat               uintptr
   228  	getPolyFillMode              uintptr
   229  	getROP2                      uintptr
   230  	getRandomRgn                 uintptr
   231  	getRasterizerCaps            uintptr
   232  	getRegionData                uintptr
   233  	getRgnBox                    uintptr
   234  	getStockObject               uintptr
   235  	getStretchBltMode            uintptr
   236  	getSystemPaletteEntries      uintptr
   237  	getSystemPaletteUse          uintptr
   238  	getTextAlign                 uintptr
   239  	getTextCharacterExtra        uintptr
   240  	getTextCharset               uintptr
   241  	getTextCharsetInfo           uintptr
   242  	getTextColor                 uintptr
   243  	getTextExtentExPointI        uintptr
   244  	getTextExtentExPoint         uintptr
   245  	getTextExtentPoint32         uintptr
   246  	getTextExtentPointI          uintptr
   247  	getTextExtentPoint           uintptr
   248  	getTextFace                  uintptr
   249  	getTextMetrics               uintptr
   250  	getViewportExtEx             uintptr
   251  	getViewportOrgEx             uintptr
   252  	getWinMetaFileBits           uintptr
   253  	getWindowExtEx               uintptr
   254  	getWindowOrgEx               uintptr
   255  	getWorldTransform            uintptr
   256  	hT_Get8BPPFormatPalette      uintptr
   257  	hT_Get8BPPMaskPalette        uintptr
   258  	intersectClipRect            uintptr
   259  	invertRgn                    uintptr
   260  	lPtoDP                       uintptr
   261  	lineDDA                      uintptr
   262  	lineTo                       uintptr
   263  	maskBlt                      uintptr
   264  	modifyWorldTransform         uintptr
   265  	moveToEx                     uintptr
   266  	offsetClipRgn                uintptr
   267  	offsetRgn                    uintptr
   268  	offsetViewportOrgEx          uintptr
   269  	offsetWindowOrgEx            uintptr
   270  	pATHOBJ_bEnum                uintptr
   271  	pATHOBJ_bEnumClipLines       uintptr
   272  	pATHOBJ_vEnumStart           uintptr
   273  	pATHOBJ_vEnumStartClipLines  uintptr
   274  	pATHOBJ_vGetBounds           uintptr
   275  	paintRgn                     uintptr
   276  	patBlt                       uintptr
   277  	pathToRegion                 uintptr
   278  	pie                          uintptr
   279  	playEnhMetaFile              uintptr
   280  	playEnhMetaFileRecord        uintptr
   281  	playMetaFile                 uintptr
   282  	playMetaFileRecord           uintptr
   283  	plgBlt                       uintptr
   284  	polyBezier                   uintptr
   285  	polyBezierTo                 uintptr
   286  	polyDraw                     uintptr
   287  	polyPolygon                  uintptr
   288  	polyPolyline                 uintptr
   289  	polyTextOut                  uintptr
   290  	polygon                      uintptr
   291  	polyline                     uintptr
   292  	polylineTo                   uintptr
   293  	ptInRegion                   uintptr
   294  	ptVisible                    uintptr
   295  	realizePalette               uintptr
   296  	rectInRegion                 uintptr
   297  	rectVisible                  uintptr
   298  	rectangle                    uintptr
   299  	removeFontMemResourceEx      uintptr
   300  	removeFontResourceEx         uintptr
   301  	removeFontResource           uintptr
   302  	resetDC                      uintptr
   303  	resizePalette                uintptr
   304  	restoreDC                    uintptr
   305  	roundRect                    uintptr
   306  	sTROBJ_bEnum                 uintptr
   307  	sTROBJ_bEnumPositionsOnly    uintptr
   308  	sTROBJ_bGetAdvanceWidths     uintptr
   309  	sTROBJ_dwGetCodePage         uintptr
   310  	sTROBJ_vEnumStart            uintptr
   311  	saveDC                       uintptr
   312  	scaleViewportExtEx           uintptr
   313  	scaleWindowExtEx             uintptr
   314  	selectClipPath               uintptr
   315  	selectClipRgn                uintptr
   316  	selectObject                 uintptr
   317  	selectPalette                uintptr
   318  	setAbortProc                 uintptr
   319  	setArcDirection              uintptr
   320  	setBitmapBits                uintptr
   321  	setBitmapDimensionEx         uintptr
   322  	setBkColor                   uintptr
   323  	setBkMode                    uintptr
   324  	setBoundsRect                uintptr
   325  	setBrushOrgEx                uintptr
   326  	setColorAdjustment           uintptr
   327  	setColorSpace                uintptr
   328  	setDCBrushColor              uintptr
   329  	setDCPenColor                uintptr
   330  	setDIBColorTable             uintptr
   331  	setDIBits                    uintptr
   332  	setDIBitsToDevice            uintptr
   333  	setDeviceGammaRamp           uintptr
   334  	setEnhMetaFileBits           uintptr
   335  	setGraphicsMode              uintptr
   336  	setICMMode                   uintptr
   337  	setICMProfile                uintptr
   338  	setLayout                    uintptr
   339  	setMapMode                   uintptr
   340  	setMapperFlags               uintptr
   341  	setMetaFileBitsEx            uintptr
   342  	setMetaRgn                   uintptr
   343  	setMiterLimit                uintptr
   344  	setPaletteEntries            uintptr
   345  	setPixel                     uintptr
   346  	setPixelFormat               uintptr
   347  	setPixelV                    uintptr
   348  	setPolyFillMode              uintptr
   349  	setROP2                      uintptr
   350  	setRectRgn                   uintptr
   351  	setStretchBltMode            uintptr
   352  	setSystemPaletteUse          uintptr
   353  	setTextAlign                 uintptr
   354  	setTextCharacterExtra        uintptr
   355  	setTextColor                 uintptr
   356  	setTextJustification         uintptr
   357  	setViewportExtEx             uintptr
   358  	setViewportOrgEx             uintptr
   359  	setWinMetaFileBits           uintptr
   360  	setWindowExtEx               uintptr
   361  	setWindowOrgEx               uintptr
   362  	setWorldTransform            uintptr
   363  	startDoc                     uintptr
   364  	startPage                    uintptr
   365  	stretchBlt                   uintptr
   366  	stretchDIBits                uintptr
   367  	strokeAndFillPath            uintptr
   368  	strokePath                   uintptr
   369  	swapBuffers                  uintptr
   370  	textOut                      uintptr
   371  	translateCharsetInfo         uintptr
   372  	unrealizeObject              uintptr
   373  	updateColors                 uintptr
   374  	updateICMRegKey              uintptr
   375  	widenPath                    uintptr
   376  	xFORMOBJ_bApplyXform         uintptr
   377  	xFORMOBJ_iGetXform           uintptr
   378  	xLATEOBJ_cGetPalette         uintptr
   379  	xLATEOBJ_hGetColorTransform  uintptr
   380  	xLATEOBJ_iXlate              uintptr
   381  	enableEUDC                   uintptr
   382  	fontIsLinked                 uintptr
   383  	gdiDescribePixelFormat       uintptr
   384  	gdiDrawStream                uintptr
   385  	gdiGetCharDimensions         uintptr
   386  	gdiGetCodePage               uintptr
   387  	gdiGetSpoolMessage           uintptr
   388  	gdiInitSpool                 uintptr
   389  	gdiInitializeLanguagePack    uintptr
   390  	gdiIsMetaFileDC              uintptr
   391  	gdiIsMetaPrintDC             uintptr
   392  	gdiIsPlayMetafileDC          uintptr
   393  	gdiRealizationInfo           uintptr
   394  	gdiSetPixelFormat            uintptr
   395  	gdiSwapBuffers               uintptr
   396  	getFontResourceInfoW         uintptr
   397  	getRelAbs                    uintptr
   398  	getTransform                 uintptr
   399  	mirrorRgn                    uintptr
   400  	namedEscape                  uintptr
   401  	setMagicColors               uintptr
   402  	setRelAbs                    uintptr
   403  	setVirtualResolution         uintptr
   404  )
   405  
   406  func init() {
   407  	// Library
   408  	libgdi32 = doLoadLibrary("gdi32.dll")
   409  
   410  	// Functions
   411  	abortDoc = doGetProcAddress(libgdi32, "AbortDoc")
   412  	abortPath = doGetProcAddress(libgdi32, "AbortPath")
   413  	addFontMemResourceEx = doGetProcAddress(libgdi32, "AddFontMemResourceEx")
   414  	addFontResourceEx = doGetProcAddress(libgdi32, "AddFontResourceExW")
   415  	addFontResource = doGetProcAddress(libgdi32, "AddFontResourceW")
   416  	angleArc = doGetProcAddress(libgdi32, "AngleArc")
   417  	animatePalette = doGetProcAddress(libgdi32, "AnimatePalette")
   418  	arc = doGetProcAddress(libgdi32, "Arc")
   419  	arcTo = doGetProcAddress(libgdi32, "ArcTo")
   420  	bRUSHOBJ_hGetColorTransform = doGetProcAddress(libgdi32, "BRUSHOBJ_hGetColorTransform")
   421  	bRUSHOBJ_pvAllocRbrush = doGetProcAddress(libgdi32, "BRUSHOBJ_pvAllocRbrush")
   422  	bRUSHOBJ_pvGetRbrush = doGetProcAddress(libgdi32, "BRUSHOBJ_pvGetRbrush")
   423  	bRUSHOBJ_ulGetBrushColor = doGetProcAddress(libgdi32, "BRUSHOBJ_ulGetBrushColor")
   424  	beginPath = doGetProcAddress(libgdi32, "BeginPath")
   425  	bitBlt = doGetProcAddress(libgdi32, "BitBlt")
   426  	cLIPOBJ_bEnum = doGetProcAddress(libgdi32, "CLIPOBJ_bEnum")
   427  	cLIPOBJ_cEnumStart = doGetProcAddress(libgdi32, "CLIPOBJ_cEnumStart")
   428  	cancelDC = doGetProcAddress(libgdi32, "CancelDC")
   429  	checkColorsInGamut = doGetProcAddress(libgdi32, "CheckColorsInGamut")
   430  	choosePixelFormat = doGetProcAddress(libgdi32, "ChoosePixelFormat")
   431  	chord = doGetProcAddress(libgdi32, "Chord")
   432  	closeEnhMetaFile = doGetProcAddress(libgdi32, "CloseEnhMetaFile")
   433  	closeFigure = doGetProcAddress(libgdi32, "CloseFigure")
   434  	closeMetaFile = doGetProcAddress(libgdi32, "CloseMetaFile")
   435  	colorCorrectPalette = doGetProcAddress(libgdi32, "ColorCorrectPalette")
   436  	colorMatchToTarget = doGetProcAddress(libgdi32, "ColorMatchToTarget")
   437  	combineRgn = doGetProcAddress(libgdi32, "CombineRgn")
   438  	combineTransform = doGetProcAddress(libgdi32, "CombineTransform")
   439  	copyEnhMetaFile = doGetProcAddress(libgdi32, "CopyEnhMetaFileW")
   440  	copyMetaFile = doGetProcAddress(libgdi32, "CopyMetaFileW")
   441  	createBitmap = doGetProcAddress(libgdi32, "CreateBitmap")
   442  	createBitmapIndirect = doGetProcAddress(libgdi32, "CreateBitmapIndirect")
   443  	createBrushIndirect = doGetProcAddress(libgdi32, "CreateBrushIndirect")
   444  	createColorSpace = doGetProcAddress(libgdi32, "CreateColorSpaceW")
   445  	createCompatibleBitmap = doGetProcAddress(libgdi32, "CreateCompatibleBitmap")
   446  	createCompatibleDC = doGetProcAddress(libgdi32, "CreateCompatibleDC")
   447  	createDC = doGetProcAddress(libgdi32, "CreateDCW")
   448  	createDIBPatternBrush = doGetProcAddress(libgdi32, "CreateDIBPatternBrush")
   449  	createDIBPatternBrushPt = doGetProcAddress(libgdi32, "CreateDIBPatternBrushPt")
   450  	createDIBSection = doGetProcAddress(libgdi32, "CreateDIBSection")
   451  	createDIBitmap = doGetProcAddress(libgdi32, "CreateDIBitmap")
   452  	createDiscardableBitmap = doGetProcAddress(libgdi32, "CreateDiscardableBitmap")
   453  	createEllipticRgn = doGetProcAddress(libgdi32, "CreateEllipticRgn")
   454  	createEllipticRgnIndirect = doGetProcAddress(libgdi32, "CreateEllipticRgnIndirect")
   455  	createEnhMetaFile = doGetProcAddress(libgdi32, "CreateEnhMetaFileW")
   456  	createFontIndirectEx = doGetProcAddress(libgdi32, "CreateFontIndirectExW")
   457  	createFontIndirect = doGetProcAddress(libgdi32, "CreateFontIndirectW")
   458  	createFont = doGetProcAddress(libgdi32, "CreateFontW")
   459  	createHalftonePalette = doGetProcAddress(libgdi32, "CreateHalftonePalette")
   460  	createHatchBrush = doGetProcAddress(libgdi32, "CreateHatchBrush")
   461  	createIC = doGetProcAddress(libgdi32, "CreateICW")
   462  	createMetaFile = doGetProcAddress(libgdi32, "CreateMetaFileW")
   463  	createPalette = doGetProcAddress(libgdi32, "CreatePalette")
   464  	createPatternBrush = doGetProcAddress(libgdi32, "CreatePatternBrush")
   465  	createPen = doGetProcAddress(libgdi32, "CreatePen")
   466  	createPenIndirect = doGetProcAddress(libgdi32, "CreatePenIndirect")
   467  	createPolyPolygonRgn = doGetProcAddress(libgdi32, "CreatePolyPolygonRgn")
   468  	createPolygonRgn = doGetProcAddress(libgdi32, "CreatePolygonRgn")
   469  	createRectRgn = doGetProcAddress(libgdi32, "CreateRectRgn")
   470  	createRectRgnIndirect = doGetProcAddress(libgdi32, "CreateRectRgnIndirect")
   471  	createRoundRectRgn = doGetProcAddress(libgdi32, "CreateRoundRectRgn")
   472  	createScalableFontResource = doGetProcAddress(libgdi32, "CreateScalableFontResourceW")
   473  	createSolidBrush = doGetProcAddress(libgdi32, "CreateSolidBrush")
   474  	dPtoLP = doGetProcAddress(libgdi32, "DPtoLP")
   475  	deleteColorSpace = doGetProcAddress(libgdi32, "DeleteColorSpace")
   476  	deleteDC = doGetProcAddress(libgdi32, "DeleteDC")
   477  	deleteEnhMetaFile = doGetProcAddress(libgdi32, "DeleteEnhMetaFile")
   478  	deleteMetaFile = doGetProcAddress(libgdi32, "DeleteMetaFile")
   479  	deleteObject = doGetProcAddress(libgdi32, "DeleteObject")
   480  	describePixelFormat = doGetProcAddress(libgdi32, "DescribePixelFormat")
   481  	drawEscape = doGetProcAddress(libgdi32, "DrawEscape")
   482  	ellipse = doGetProcAddress(libgdi32, "Ellipse")
   483  	endDoc = doGetProcAddress(libgdi32, "EndDoc")
   484  	endPage = doGetProcAddress(libgdi32, "EndPage")
   485  	endPath = doGetProcAddress(libgdi32, "EndPath")
   486  	engAcquireSemaphore = doGetProcAddress(libgdi32, "EngAcquireSemaphore")
   487  	engAlphaBlend = doGetProcAddress(libgdi32, "EngAlphaBlend")
   488  	engAssociateSurface = doGetProcAddress(libgdi32, "EngAssociateSurface")
   489  	engBitBlt = doGetProcAddress(libgdi32, "EngBitBlt")
   490  	engCheckAbort = doGetProcAddress(libgdi32, "EngCheckAbort")
   491  	engCopyBits = doGetProcAddress(libgdi32, "EngCopyBits")
   492  	engCreateBitmap = doGetProcAddress(libgdi32, "EngCreateBitmap")
   493  	engCreateDeviceBitmap = doGetProcAddress(libgdi32, "EngCreateDeviceBitmap")
   494  	engCreateDeviceSurface = doGetProcAddress(libgdi32, "EngCreateDeviceSurface")
   495  	engCreatePalette = doGetProcAddress(libgdi32, "EngCreatePalette")
   496  	engCreateSemaphore = doGetProcAddress(libgdi32, "EngCreateSemaphore")
   497  	engDeleteClip = doGetProcAddress(libgdi32, "EngDeleteClip")
   498  	engDeletePalette = doGetProcAddress(libgdi32, "EngDeletePalette")
   499  	engDeletePath = doGetProcAddress(libgdi32, "EngDeletePath")
   500  	engDeleteSemaphore = doGetProcAddress(libgdi32, "EngDeleteSemaphore")
   501  	engDeleteSurface = doGetProcAddress(libgdi32, "EngDeleteSurface")
   502  	engEraseSurface = doGetProcAddress(libgdi32, "EngEraseSurface")
   503  	engFillPath = doGetProcAddress(libgdi32, "EngFillPath")
   504  	engFindResource = doGetProcAddress(libgdi32, "EngFindResource")
   505  	engFreeModule = doGetProcAddress(libgdi32, "EngFreeModule")
   506  	engGetCurrentCodePage = doGetProcAddress(libgdi32, "EngGetCurrentCodePage")
   507  	engGetDriverName = doGetProcAddress(libgdi32, "EngGetDriverName")
   508  	engGetPrinterDataFileName = doGetProcAddress(libgdi32, "EngGetPrinterDataFileName")
   509  	engGradientFill = doGetProcAddress(libgdi32, "EngGradientFill")
   510  	engLineTo = doGetProcAddress(libgdi32, "EngLineTo")
   511  	engLoadModule = doGetProcAddress(libgdi32, "EngLoadModule")
   512  	engMarkBandingSurface = doGetProcAddress(libgdi32, "EngMarkBandingSurface")
   513  	engMultiByteToUnicodeN = doGetProcAddress(libgdi32, "EngMultiByteToUnicodeN")
   514  	engMultiByteToWideChar = doGetProcAddress(libgdi32, "EngMultiByteToWideChar")
   515  	engPaint = doGetProcAddress(libgdi32, "EngPaint")
   516  	engPlgBlt = doGetProcAddress(libgdi32, "EngPlgBlt")
   517  	engQueryLocalTime = doGetProcAddress(libgdi32, "EngQueryLocalTime")
   518  	engReleaseSemaphore = doGetProcAddress(libgdi32, "EngReleaseSemaphore")
   519  	engStretchBlt = doGetProcAddress(libgdi32, "EngStretchBlt")
   520  	engStretchBltROP = doGetProcAddress(libgdi32, "EngStretchBltROP")
   521  	engStrokeAndFillPath = doGetProcAddress(libgdi32, "EngStrokeAndFillPath")
   522  	engStrokePath = doGetProcAddress(libgdi32, "EngStrokePath")
   523  	engTextOut = doGetProcAddress(libgdi32, "EngTextOut")
   524  	engTransparentBlt = doGetProcAddress(libgdi32, "EngTransparentBlt")
   525  	engUnicodeToMultiByteN = doGetProcAddress(libgdi32, "EngUnicodeToMultiByteN")
   526  	engUnlockSurface = doGetProcAddress(libgdi32, "EngUnlockSurface")
   527  	engWideCharToMultiByte = doGetProcAddress(libgdi32, "EngWideCharToMultiByte")
   528  	enumEnhMetaFile = doGetProcAddress(libgdi32, "EnumEnhMetaFile")
   529  	enumFontFamiliesEx = doGetProcAddress(libgdi32, "EnumFontFamiliesExW")
   530  	enumFontFamilies = doGetProcAddress(libgdi32, "EnumFontFamiliesW")
   531  	enumFonts = doGetProcAddress(libgdi32, "EnumFontsW")
   532  	enumICMProfiles = doGetProcAddress(libgdi32, "EnumICMProfilesW")
   533  	enumMetaFile = doGetProcAddress(libgdi32, "EnumMetaFile")
   534  	enumObjects = doGetProcAddress(libgdi32, "EnumObjects")
   535  	equalRgn = doGetProcAddress(libgdi32, "EqualRgn")
   536  	escape = doGetProcAddress(libgdi32, "Escape")
   537  	excludeClipRect = doGetProcAddress(libgdi32, "ExcludeClipRect")
   538  	extCreatePen = doGetProcAddress(libgdi32, "ExtCreatePen")
   539  	extCreateRegion = doGetProcAddress(libgdi32, "ExtCreateRegion")
   540  	extEscape = doGetProcAddress(libgdi32, "ExtEscape")
   541  	extFloodFill = doGetProcAddress(libgdi32, "ExtFloodFill")
   542  	extSelectClipRgn = doGetProcAddress(libgdi32, "ExtSelectClipRgn")
   543  	extTextOut = doGetProcAddress(libgdi32, "ExtTextOutW")
   544  	fONTOBJ_cGetAllGlyphHandles = doGetProcAddress(libgdi32, "FONTOBJ_cGetAllGlyphHandles")
   545  	fONTOBJ_cGetGlyphs = doGetProcAddress(libgdi32, "FONTOBJ_cGetGlyphs")
   546  	fONTOBJ_pQueryGlyphAttrs = doGetProcAddress(libgdi32, "FONTOBJ_pQueryGlyphAttrs")
   547  	fONTOBJ_pvTrueTypeFontFile = doGetProcAddress(libgdi32, "FONTOBJ_pvTrueTypeFontFile")
   548  	fONTOBJ_vGetInfo = doGetProcAddress(libgdi32, "FONTOBJ_vGetInfo")
   549  	fillPath = doGetProcAddress(libgdi32, "FillPath")
   550  	fillRgn = doGetProcAddress(libgdi32, "FillRgn")
   551  	fixBrushOrgEx = doGetProcAddress(libgdi32, "FixBrushOrgEx")
   552  	flattenPath = doGetProcAddress(libgdi32, "FlattenPath")
   553  	floodFill = doGetProcAddress(libgdi32, "FloodFill")
   554  	frameRgn = doGetProcAddress(libgdi32, "FrameRgn")
   555  	gdiAlphaBlend = doGetProcAddress(libgdi32, "GdiAlphaBlend")
   556  	gdiComment = doGetProcAddress(libgdi32, "GdiComment")
   557  	gdiFlush = doGetProcAddress(libgdi32, "GdiFlush")
   558  	gdiGetBatchLimit = doGetProcAddress(libgdi32, "GdiGetBatchLimit")
   559  	gdiGradientFill = doGetProcAddress(libgdi32, "GdiGradientFill")
   560  	gdiSetBatchLimit = doGetProcAddress(libgdi32, "GdiSetBatchLimit")
   561  	gdiTransparentBlt = doGetProcAddress(libgdi32, "GdiTransparentBlt")
   562  	getArcDirection = doGetProcAddress(libgdi32, "GetArcDirection")
   563  	getAspectRatioFilterEx = doGetProcAddress(libgdi32, "GetAspectRatioFilterEx")
   564  	getBitmapBits = doGetProcAddress(libgdi32, "GetBitmapBits")
   565  	getBitmapDimensionEx = doGetProcAddress(libgdi32, "GetBitmapDimensionEx")
   566  	getBkColor = doGetProcAddress(libgdi32, "GetBkColor")
   567  	getBkMode = doGetProcAddress(libgdi32, "GetBkMode")
   568  	getBoundsRect = doGetProcAddress(libgdi32, "GetBoundsRect")
   569  	getBrushOrgEx = doGetProcAddress(libgdi32, "GetBrushOrgEx")
   570  	getCharABCWidthsFloat = doGetProcAddress(libgdi32, "GetCharABCWidthsFloatW")
   571  	getCharABCWidthsI = doGetProcAddress(libgdi32, "GetCharABCWidthsI")
   572  	getCharABCWidths = doGetProcAddress(libgdi32, "GetCharABCWidthsW")
   573  	getCharWidth32 = doGetProcAddress(libgdi32, "GetCharWidth32W")
   574  	getCharWidthFloat = doGetProcAddress(libgdi32, "GetCharWidthFloatW")
   575  	getCharWidthI = doGetProcAddress(libgdi32, "GetCharWidthI")
   576  	getCharWidth = doGetProcAddress(libgdi32, "GetCharWidthW")
   577  	getCharacterPlacement = doGetProcAddress(libgdi32, "GetCharacterPlacementW")
   578  	getClipBox = doGetProcAddress(libgdi32, "GetClipBox")
   579  	getClipRgn = doGetProcAddress(libgdi32, "GetClipRgn")
   580  	getColorAdjustment = doGetProcAddress(libgdi32, "GetColorAdjustment")
   581  	getColorSpace = doGetProcAddress(libgdi32, "GetColorSpace")
   582  	getCurrentObject = doGetProcAddress(libgdi32, "GetCurrentObject")
   583  	getCurrentPositionEx = doGetProcAddress(libgdi32, "GetCurrentPositionEx")
   584  	getDCBrushColor = doGetProcAddress(libgdi32, "GetDCBrushColor")
   585  	getDCOrgEx = doGetProcAddress(libgdi32, "GetDCOrgEx")
   586  	getDCPenColor = doGetProcAddress(libgdi32, "GetDCPenColor")
   587  	getDIBColorTable = doGetProcAddress(libgdi32, "GetDIBColorTable")
   588  	getDIBits = doGetProcAddress(libgdi32, "GetDIBits")
   589  	getDeviceCaps = doGetProcAddress(libgdi32, "GetDeviceCaps")
   590  	getDeviceGammaRamp = doGetProcAddress(libgdi32, "GetDeviceGammaRamp")
   591  	getEnhMetaFileBits = doGetProcAddress(libgdi32, "GetEnhMetaFileBits")
   592  	getEnhMetaFileDescription = doGetProcAddress(libgdi32, "GetEnhMetaFileDescriptionW")
   593  	getEnhMetaFileHeader = doGetProcAddress(libgdi32, "GetEnhMetaFileHeader")
   594  	getEnhMetaFilePaletteEntries = doGetProcAddress(libgdi32, "GetEnhMetaFilePaletteEntries")
   595  	getEnhMetaFilePixelFormat = doGetProcAddress(libgdi32, "GetEnhMetaFilePixelFormat")
   596  	getEnhMetaFile = doGetProcAddress(libgdi32, "GetEnhMetaFileW")
   597  	getFontData = doGetProcAddress(libgdi32, "GetFontData")
   598  	getFontLanguageInfo = doGetProcAddress(libgdi32, "GetFontLanguageInfo")
   599  	getFontUnicodeRanges = doGetProcAddress(libgdi32, "GetFontUnicodeRanges")
   600  	getGlyphIndices = doGetProcAddress(libgdi32, "GetGlyphIndicesW")
   601  	getGlyphOutline = doGetProcAddress(libgdi32, "GetGlyphOutlineW")
   602  	getGraphicsMode = doGetProcAddress(libgdi32, "GetGraphicsMode")
   603  	getICMProfile = doGetProcAddress(libgdi32, "GetICMProfileW")
   604  	getKerningPairs = doGetProcAddress(libgdi32, "GetKerningPairsW")
   605  	getLayout = doGetProcAddress(libgdi32, "GetLayout")
   606  	getLogColorSpace = doGetProcAddress(libgdi32, "GetLogColorSpaceW")
   607  	getMapMode = doGetProcAddress(libgdi32, "GetMapMode")
   608  	getMetaFileBitsEx = doGetProcAddress(libgdi32, "GetMetaFileBitsEx")
   609  	getMetaFile = doGetProcAddress(libgdi32, "GetMetaFileW")
   610  	getMetaRgn = doGetProcAddress(libgdi32, "GetMetaRgn")
   611  	getMiterLimit = doGetProcAddress(libgdi32, "GetMiterLimit")
   612  	getNearestColor = doGetProcAddress(libgdi32, "GetNearestColor")
   613  	getNearestPaletteIndex = doGetProcAddress(libgdi32, "GetNearestPaletteIndex")
   614  	getObjectType = doGetProcAddress(libgdi32, "GetObjectType")
   615  	getObject = doGetProcAddress(libgdi32, "GetObjectW")
   616  	getOutlineTextMetrics = doGetProcAddress(libgdi32, "GetOutlineTextMetricsW")
   617  	getPaletteEntries = doGetProcAddress(libgdi32, "GetPaletteEntries")
   618  	getPath = doGetProcAddress(libgdi32, "GetPath")
   619  	getPixel = doGetProcAddress(libgdi32, "GetPixel")
   620  	getPixelFormat = doGetProcAddress(libgdi32, "GetPixelFormat")
   621  	getPolyFillMode = doGetProcAddress(libgdi32, "GetPolyFillMode")
   622  	getROP2 = doGetProcAddress(libgdi32, "GetROP2")
   623  	getRandomRgn = doGetProcAddress(libgdi32, "GetRandomRgn")
   624  	getRasterizerCaps = doGetProcAddress(libgdi32, "GetRasterizerCaps")
   625  	getRegionData = doGetProcAddress(libgdi32, "GetRegionData")
   626  	getRgnBox = doGetProcAddress(libgdi32, "GetRgnBox")
   627  	getStockObject = doGetProcAddress(libgdi32, "GetStockObject")
   628  	getStretchBltMode = doGetProcAddress(libgdi32, "GetStretchBltMode")
   629  	getSystemPaletteEntries = doGetProcAddress(libgdi32, "GetSystemPaletteEntries")
   630  	getSystemPaletteUse = doGetProcAddress(libgdi32, "GetSystemPaletteUse")
   631  	getTextAlign = doGetProcAddress(libgdi32, "GetTextAlign")
   632  	getTextCharacterExtra = doGetProcAddress(libgdi32, "GetTextCharacterExtra")
   633  	getTextCharset = doGetProcAddress(libgdi32, "GetTextCharset")
   634  	getTextCharsetInfo = doGetProcAddress(libgdi32, "GetTextCharsetInfo")
   635  	getTextColor = doGetProcAddress(libgdi32, "GetTextColor")
   636  	getTextExtentExPointI = doGetProcAddress(libgdi32, "GetTextExtentExPointI")
   637  	getTextExtentExPoint = doGetProcAddress(libgdi32, "GetTextExtentExPointW")
   638  	getTextExtentPoint32 = doGetProcAddress(libgdi32, "GetTextExtentPoint32W")
   639  	getTextExtentPointI = doGetProcAddress(libgdi32, "GetTextExtentPointI")
   640  	getTextExtentPoint = doGetProcAddress(libgdi32, "GetTextExtentPointW")
   641  	getTextFace = doGetProcAddress(libgdi32, "GetTextFaceW")
   642  	getTextMetrics = doGetProcAddress(libgdi32, "GetTextMetricsW")
   643  	getViewportExtEx = doGetProcAddress(libgdi32, "GetViewportExtEx")
   644  	getViewportOrgEx = doGetProcAddress(libgdi32, "GetViewportOrgEx")
   645  	getWinMetaFileBits = doGetProcAddress(libgdi32, "GetWinMetaFileBits")
   646  	getWindowExtEx = doGetProcAddress(libgdi32, "GetWindowExtEx")
   647  	getWindowOrgEx = doGetProcAddress(libgdi32, "GetWindowOrgEx")
   648  	getWorldTransform = doGetProcAddress(libgdi32, "GetWorldTransform")
   649  	hT_Get8BPPFormatPalette = doGetProcAddress(libgdi32, "HT_Get8BPPFormatPalette")
   650  	hT_Get8BPPMaskPalette = doGetProcAddress(libgdi32, "HT_Get8BPPMaskPalette")
   651  	intersectClipRect = doGetProcAddress(libgdi32, "IntersectClipRect")
   652  	invertRgn = doGetProcAddress(libgdi32, "InvertRgn")
   653  	lPtoDP = doGetProcAddress(libgdi32, "LPtoDP")
   654  	lineDDA = doGetProcAddress(libgdi32, "LineDDA")
   655  	lineTo = doGetProcAddress(libgdi32, "LineTo")
   656  	maskBlt = doGetProcAddress(libgdi32, "MaskBlt")
   657  	modifyWorldTransform = doGetProcAddress(libgdi32, "ModifyWorldTransform")
   658  	moveToEx = doGetProcAddress(libgdi32, "MoveToEx")
   659  	offsetClipRgn = doGetProcAddress(libgdi32, "OffsetClipRgn")
   660  	offsetRgn = doGetProcAddress(libgdi32, "OffsetRgn")
   661  	offsetViewportOrgEx = doGetProcAddress(libgdi32, "OffsetViewportOrgEx")
   662  	offsetWindowOrgEx = doGetProcAddress(libgdi32, "OffsetWindowOrgEx")
   663  	pATHOBJ_bEnum = doGetProcAddress(libgdi32, "PATHOBJ_bEnum")
   664  	pATHOBJ_bEnumClipLines = doGetProcAddress(libgdi32, "PATHOBJ_bEnumClipLines")
   665  	pATHOBJ_vEnumStart = doGetProcAddress(libgdi32, "PATHOBJ_vEnumStart")
   666  	pATHOBJ_vEnumStartClipLines = doGetProcAddress(libgdi32, "PATHOBJ_vEnumStartClipLines")
   667  	pATHOBJ_vGetBounds = doGetProcAddress(libgdi32, "PATHOBJ_vGetBounds")
   668  	paintRgn = doGetProcAddress(libgdi32, "PaintRgn")
   669  	patBlt = doGetProcAddress(libgdi32, "PatBlt")
   670  	pathToRegion = doGetProcAddress(libgdi32, "PathToRegion")
   671  	pie = doGetProcAddress(libgdi32, "Pie")
   672  	playEnhMetaFile = doGetProcAddress(libgdi32, "PlayEnhMetaFile")
   673  	playEnhMetaFileRecord = doGetProcAddress(libgdi32, "PlayEnhMetaFileRecord")
   674  	playMetaFile = doGetProcAddress(libgdi32, "PlayMetaFile")
   675  	playMetaFileRecord = doGetProcAddress(libgdi32, "PlayMetaFileRecord")
   676  	plgBlt = doGetProcAddress(libgdi32, "PlgBlt")
   677  	polyBezier = doGetProcAddress(libgdi32, "PolyBezier")
   678  	polyBezierTo = doGetProcAddress(libgdi32, "PolyBezierTo")
   679  	polyDraw = doGetProcAddress(libgdi32, "PolyDraw")
   680  	polyPolygon = doGetProcAddress(libgdi32, "PolyPolygon")
   681  	polyPolyline = doGetProcAddress(libgdi32, "PolyPolyline")
   682  	polyTextOut = doGetProcAddress(libgdi32, "PolyTextOutW")
   683  	polygon = doGetProcAddress(libgdi32, "Polygon")
   684  	polyline = doGetProcAddress(libgdi32, "Polyline")
   685  	polylineTo = doGetProcAddress(libgdi32, "PolylineTo")
   686  	ptInRegion = doGetProcAddress(libgdi32, "PtInRegion")
   687  	ptVisible = doGetProcAddress(libgdi32, "PtVisible")
   688  	realizePalette = doGetProcAddress(libgdi32, "RealizePalette")
   689  	rectInRegion = doGetProcAddress(libgdi32, "RectInRegion")
   690  	rectVisible = doGetProcAddress(libgdi32, "RectVisible")
   691  	rectangle = doGetProcAddress(libgdi32, "Rectangle")
   692  	removeFontMemResourceEx = doGetProcAddress(libgdi32, "RemoveFontMemResourceEx")
   693  	removeFontResourceEx = doGetProcAddress(libgdi32, "RemoveFontResourceExW")
   694  	removeFontResource = doGetProcAddress(libgdi32, "RemoveFontResourceW")
   695  	resetDC = doGetProcAddress(libgdi32, "ResetDCW")
   696  	resizePalette = doGetProcAddress(libgdi32, "ResizePalette")
   697  	restoreDC = doGetProcAddress(libgdi32, "RestoreDC")
   698  	roundRect = doGetProcAddress(libgdi32, "RoundRect")
   699  	sTROBJ_bEnum = doGetProcAddress(libgdi32, "STROBJ_bEnum")
   700  	sTROBJ_bEnumPositionsOnly = doGetProcAddress(libgdi32, "STROBJ_bEnumPositionsOnly")
   701  	sTROBJ_bGetAdvanceWidths = doGetProcAddress(libgdi32, "STROBJ_bGetAdvanceWidths")
   702  	sTROBJ_dwGetCodePage = doGetProcAddress(libgdi32, "STROBJ_dwGetCodePage")
   703  	sTROBJ_vEnumStart = doGetProcAddress(libgdi32, "STROBJ_vEnumStart")
   704  	saveDC = doGetProcAddress(libgdi32, "SaveDC")
   705  	scaleViewportExtEx = doGetProcAddress(libgdi32, "ScaleViewportExtEx")
   706  	scaleWindowExtEx = doGetProcAddress(libgdi32, "ScaleWindowExtEx")
   707  	selectClipPath = doGetProcAddress(libgdi32, "SelectClipPath")
   708  	selectClipRgn = doGetProcAddress(libgdi32, "SelectClipRgn")
   709  	selectObject = doGetProcAddress(libgdi32, "SelectObject")
   710  	selectPalette = doGetProcAddress(libgdi32, "SelectPalette")
   711  	setAbortProc = doGetProcAddress(libgdi32, "SetAbortProc")
   712  	setArcDirection = doGetProcAddress(libgdi32, "SetArcDirection")
   713  	setBitmapBits = doGetProcAddress(libgdi32, "SetBitmapBits")
   714  	setBitmapDimensionEx = doGetProcAddress(libgdi32, "SetBitmapDimensionEx")
   715  	setBkColor = doGetProcAddress(libgdi32, "SetBkColor")
   716  	setBkMode = doGetProcAddress(libgdi32, "SetBkMode")
   717  	setBoundsRect = doGetProcAddress(libgdi32, "SetBoundsRect")
   718  	setBrushOrgEx = doGetProcAddress(libgdi32, "SetBrushOrgEx")
   719  	setColorAdjustment = doGetProcAddress(libgdi32, "SetColorAdjustment")
   720  	setColorSpace = doGetProcAddress(libgdi32, "SetColorSpace")
   721  	setDCBrushColor = doGetProcAddress(libgdi32, "SetDCBrushColor")
   722  	setDCPenColor = doGetProcAddress(libgdi32, "SetDCPenColor")
   723  	setDIBColorTable = doGetProcAddress(libgdi32, "SetDIBColorTable")
   724  	setDIBits = doGetProcAddress(libgdi32, "SetDIBits")
   725  	setDIBitsToDevice = doGetProcAddress(libgdi32, "SetDIBitsToDevice")
   726  	setDeviceGammaRamp = doGetProcAddress(libgdi32, "SetDeviceGammaRamp")
   727  	setEnhMetaFileBits = doGetProcAddress(libgdi32, "SetEnhMetaFileBits")
   728  	setGraphicsMode = doGetProcAddress(libgdi32, "SetGraphicsMode")
   729  	setICMMode = doGetProcAddress(libgdi32, "SetICMMode")
   730  	setICMProfile = doGetProcAddress(libgdi32, "SetICMProfileW")
   731  	setLayout = doGetProcAddress(libgdi32, "SetLayout")
   732  	setMapMode = doGetProcAddress(libgdi32, "SetMapMode")
   733  	setMapperFlags = doGetProcAddress(libgdi32, "SetMapperFlags")
   734  	setMetaFileBitsEx = doGetProcAddress(libgdi32, "SetMetaFileBitsEx")
   735  	setMetaRgn = doGetProcAddress(libgdi32, "SetMetaRgn")
   736  	setMiterLimit = doGetProcAddress(libgdi32, "SetMiterLimit")
   737  	setPaletteEntries = doGetProcAddress(libgdi32, "SetPaletteEntries")
   738  	setPixel = doGetProcAddress(libgdi32, "SetPixel")
   739  	setPixelFormat = doGetProcAddress(libgdi32, "SetPixelFormat")
   740  	setPixelV = doGetProcAddress(libgdi32, "SetPixelV")
   741  	setPolyFillMode = doGetProcAddress(libgdi32, "SetPolyFillMode")
   742  	setROP2 = doGetProcAddress(libgdi32, "SetROP2")
   743  	setRectRgn = doGetProcAddress(libgdi32, "SetRectRgn")
   744  	setStretchBltMode = doGetProcAddress(libgdi32, "SetStretchBltMode")
   745  	setSystemPaletteUse = doGetProcAddress(libgdi32, "SetSystemPaletteUse")
   746  	setTextAlign = doGetProcAddress(libgdi32, "SetTextAlign")
   747  	setTextCharacterExtra = doGetProcAddress(libgdi32, "SetTextCharacterExtra")
   748  	setTextColor = doGetProcAddress(libgdi32, "SetTextColor")
   749  	setTextJustification = doGetProcAddress(libgdi32, "SetTextJustification")
   750  	setViewportExtEx = doGetProcAddress(libgdi32, "SetViewportExtEx")
   751  	setViewportOrgEx = doGetProcAddress(libgdi32, "SetViewportOrgEx")
   752  	setWinMetaFileBits = doGetProcAddress(libgdi32, "SetWinMetaFileBits")
   753  	setWindowExtEx = doGetProcAddress(libgdi32, "SetWindowExtEx")
   754  	setWindowOrgEx = doGetProcAddress(libgdi32, "SetWindowOrgEx")
   755  	setWorldTransform = doGetProcAddress(libgdi32, "SetWorldTransform")
   756  	startDoc = doGetProcAddress(libgdi32, "StartDocW")
   757  	startPage = doGetProcAddress(libgdi32, "StartPage")
   758  	stretchBlt = doGetProcAddress(libgdi32, "StretchBlt")
   759  	stretchDIBits = doGetProcAddress(libgdi32, "StretchDIBits")
   760  	strokeAndFillPath = doGetProcAddress(libgdi32, "StrokeAndFillPath")
   761  	strokePath = doGetProcAddress(libgdi32, "StrokePath")
   762  	swapBuffers = doGetProcAddress(libgdi32, "SwapBuffers")
   763  	textOut = doGetProcAddress(libgdi32, "TextOutW")
   764  	translateCharsetInfo = doGetProcAddress(libgdi32, "TranslateCharsetInfo")
   765  	unrealizeObject = doGetProcAddress(libgdi32, "UnrealizeObject")
   766  	updateColors = doGetProcAddress(libgdi32, "UpdateColors")
   767  	updateICMRegKey = doGetProcAddress(libgdi32, "UpdateICMRegKeyW")
   768  	widenPath = doGetProcAddress(libgdi32, "WidenPath")
   769  	xFORMOBJ_bApplyXform = doGetProcAddress(libgdi32, "XFORMOBJ_bApplyXform")
   770  	xFORMOBJ_iGetXform = doGetProcAddress(libgdi32, "XFORMOBJ_iGetXform")
   771  	xLATEOBJ_cGetPalette = doGetProcAddress(libgdi32, "XLATEOBJ_cGetPalette")
   772  	xLATEOBJ_hGetColorTransform = doGetProcAddress(libgdi32, "XLATEOBJ_hGetColorTransform")
   773  	xLATEOBJ_iXlate = doGetProcAddress(libgdi32, "XLATEOBJ_iXlate")
   774  	enableEUDC = doGetProcAddress(libgdi32, "EnableEUDC")
   775  	fontIsLinked = doGetProcAddress(libgdi32, "FontIsLinked")
   776  	gdiDescribePixelFormat = doGetProcAddress(libgdi32, "GdiDescribePixelFormat")
   777  	gdiDrawStream = doGetProcAddress(libgdi32, "GdiDrawStream")
   778  	gdiGetCharDimensions = doGetProcAddress(libgdi32, "GdiGetCharDimensions")
   779  	gdiGetCodePage = doGetProcAddress(libgdi32, "GdiGetCodePage")
   780  	gdiGetSpoolMessage = doGetProcAddress(libgdi32, "GdiGetSpoolMessage")
   781  	gdiInitSpool = doGetProcAddress(libgdi32, "GdiInitSpool")
   782  	gdiInitializeLanguagePack = doGetProcAddress(libgdi32, "GdiInitializeLanguagePack")
   783  	gdiIsMetaFileDC = doGetProcAddress(libgdi32, "GdiIsMetaFileDC")
   784  	gdiIsMetaPrintDC = doGetProcAddress(libgdi32, "GdiIsMetaPrintDC")
   785  	gdiIsPlayMetafileDC = doGetProcAddress(libgdi32, "GdiIsPlayMetafileDC")
   786  	gdiRealizationInfo = doGetProcAddress(libgdi32, "GdiRealizationInfo")
   787  	gdiSetPixelFormat = doGetProcAddress(libgdi32, "GdiSetPixelFormat")
   788  	gdiSwapBuffers = doGetProcAddress(libgdi32, "GdiSwapBuffers")
   789  	getFontResourceInfoW = doGetProcAddress(libgdi32, "GetFontResourceInfoW")
   790  	getRelAbs = doGetProcAddress(libgdi32, "GetRelAbs")
   791  	getTransform = doGetProcAddress(libgdi32, "GetTransform")
   792  	mirrorRgn = doGetProcAddress(libgdi32, "MirrorRgn")
   793  	namedEscape = doGetProcAddress(libgdi32, "NamedEscape")
   794  	setMagicColors = doGetProcAddress(libgdi32, "SetMagicColors")
   795  	setRelAbs = doGetProcAddress(libgdi32, "SetRelAbs")
   796  	setVirtualResolution = doGetProcAddress(libgdi32, "SetVirtualResolution")
   797  }
   798  
   799  func AbortDoc(hdc HDC) int32 {
   800  	ret1 := syscall3(abortDoc, 1,
   801  		uintptr(hdc),
   802  		0,
   803  		0)
   804  	return int32(ret1)
   805  }
   806  
   807  func AbortPath(hdc HDC) bool {
   808  	ret1 := syscall3(abortPath, 1,
   809  		uintptr(hdc),
   810  		0,
   811  		0)
   812  	return ret1 != 0
   813  }
   814  
   815  func AddFontMemResourceEx(pFileView uintptr, cjSize DWORD, pvResrved uintptr, pNumFonts *uint32) HANDLE {
   816  	ret1 := syscall6(addFontMemResourceEx, 4,
   817  		pFileView,
   818  		uintptr(cjSize),
   819  		pvResrved,
   820  		uintptr(unsafe.Pointer(pNumFonts)),
   821  		0,
   822  		0)
   823  	return HANDLE(ret1)
   824  }
   825  
   826  func AddFontResourceEx(name string, fl DWORD, res uintptr) int32 {
   827  	nameStr := unicode16FromString(name)
   828  	ret1 := syscall3(addFontResourceEx, 3,
   829  		uintptr(unsafe.Pointer(&nameStr[0])),
   830  		uintptr(fl),
   831  		res)
   832  	return int32(ret1)
   833  }
   834  
   835  func AddFontResource(unnamed0 string) int32 {
   836  	unnamed0Str := unicode16FromString(unnamed0)
   837  	ret1 := syscall3(addFontResource, 1,
   838  		uintptr(unsafe.Pointer(&unnamed0Str[0])),
   839  		0,
   840  		0)
   841  	return int32(ret1)
   842  }
   843  
   844  func AngleArc(hdc HDC, x int32, y int32, r DWORD, startAngle FLOAT, sweepAngle FLOAT) bool {
   845  	ret1 := syscall6(angleArc, 6,
   846  		uintptr(hdc),
   847  		uintptr(x),
   848  		uintptr(y),
   849  		uintptr(r),
   850  		uintptr(startAngle),
   851  		uintptr(sweepAngle))
   852  	return ret1 != 0
   853  }
   854  
   855  func AnimatePalette(hPal HPALETTE, iStartIndex UINT, cEntries UINT, ppe /*const*/ *PALETTEENTRY) bool {
   856  	ret1 := syscall6(animatePalette, 4,
   857  		uintptr(hPal),
   858  		uintptr(iStartIndex),
   859  		uintptr(cEntries),
   860  		uintptr(unsafe.Pointer(ppe)),
   861  		0,
   862  		0)
   863  	return ret1 != 0
   864  }
   865  
   866  func Arc(hdc HDC, x1 int32, y1 int32, x2 int32, y2 int32, x3 int32, y3 int32, x4 int32, y4 int32) bool {
   867  	ret1 := syscall9(arc, 9,
   868  		uintptr(hdc),
   869  		uintptr(x1),
   870  		uintptr(y1),
   871  		uintptr(x2),
   872  		uintptr(y2),
   873  		uintptr(x3),
   874  		uintptr(y3),
   875  		uintptr(x4),
   876  		uintptr(y4))
   877  	return ret1 != 0
   878  }
   879  
   880  func ArcTo(hdc HDC, left int32, top int32, right int32, bottom int32, xr1 int32, yr1 int32, xr2 int32, yr2 int32) bool {
   881  	ret1 := syscall9(arcTo, 9,
   882  		uintptr(hdc),
   883  		uintptr(left),
   884  		uintptr(top),
   885  		uintptr(right),
   886  		uintptr(bottom),
   887  		uintptr(xr1),
   888  		uintptr(yr1),
   889  		uintptr(xr2),
   890  		uintptr(yr2))
   891  	return ret1 != 0
   892  }
   893  
   894  func BRUSHOBJ_hGetColorTransform(pbo *BRUSHOBJ) HANDLE {
   895  	ret1 := syscall3(bRUSHOBJ_hGetColorTransform, 1,
   896  		uintptr(unsafe.Pointer(pbo)),
   897  		0,
   898  		0)
   899  	return HANDLE(ret1)
   900  }
   901  
   902  func BRUSHOBJ_pvAllocRbrush(pbo *BRUSHOBJ, cj ULONG) uintptr {
   903  	ret1 := syscall3(bRUSHOBJ_pvAllocRbrush, 2,
   904  		uintptr(unsafe.Pointer(pbo)),
   905  		uintptr(cj),
   906  		0)
   907  	return (uintptr)(unsafe.Pointer(ret1))
   908  }
   909  
   910  func BRUSHOBJ_pvGetRbrush(pbo *BRUSHOBJ) uintptr {
   911  	ret1 := syscall3(bRUSHOBJ_pvGetRbrush, 1,
   912  		uintptr(unsafe.Pointer(pbo)),
   913  		0,
   914  		0)
   915  	return (uintptr)(unsafe.Pointer(ret1))
   916  }
   917  
   918  func BRUSHOBJ_ulGetBrushColor(pbo *BRUSHOBJ) ULONG {
   919  	ret1 := syscall3(bRUSHOBJ_ulGetBrushColor, 1,
   920  		uintptr(unsafe.Pointer(pbo)),
   921  		0,
   922  		0)
   923  	return ULONG(ret1)
   924  }
   925  
   926  func BeginPath(hdc HDC) bool {
   927  	ret1 := syscall3(beginPath, 1,
   928  		uintptr(hdc),
   929  		0,
   930  		0)
   931  	return ret1 != 0
   932  }
   933  
   934  func BitBlt(hdc HDC, x int32, y int32, cx int32, cy int32, hdcSrc HDC, x1 int32, y1 int32, rop DWORD) bool {
   935  	ret1 := syscall9(bitBlt, 9,
   936  		uintptr(hdc),
   937  		uintptr(x),
   938  		uintptr(y),
   939  		uintptr(cx),
   940  		uintptr(cy),
   941  		uintptr(hdcSrc),
   942  		uintptr(x1),
   943  		uintptr(y1),
   944  		uintptr(rop))
   945  	return ret1 != 0
   946  }
   947  
   948  func CLIPOBJ_bEnum(pco *CLIPOBJ, cj ULONG, pv *ULONG) bool {
   949  	ret1 := syscall3(cLIPOBJ_bEnum, 3,
   950  		uintptr(unsafe.Pointer(pco)),
   951  		uintptr(cj),
   952  		uintptr(unsafe.Pointer(pv)))
   953  	return ret1 != 0
   954  }
   955  
   956  func CLIPOBJ_cEnumStart(pco *CLIPOBJ, bAll bool, iType ULONG, iDirection ULONG, cLimit ULONG) ULONG {
   957  	ret1 := syscall6(cLIPOBJ_cEnumStart, 5,
   958  		uintptr(unsafe.Pointer(pco)),
   959  		getUintptrFromBool(bAll),
   960  		uintptr(iType),
   961  		uintptr(iDirection),
   962  		uintptr(cLimit),
   963  		0)
   964  	return ULONG(ret1)
   965  }
   966  
   967  func CancelDC(hdc HDC) bool {
   968  	ret1 := syscall3(cancelDC, 1,
   969  		uintptr(hdc),
   970  		0,
   971  		0)
   972  	return ret1 != 0
   973  }
   974  
   975  func CheckColorsInGamut(hdc HDC, lpRGBTriple LPVOID, dlpBuffer LPVOID, nCount DWORD) bool {
   976  	ret1 := syscall6(checkColorsInGamut, 4,
   977  		uintptr(hdc),
   978  		uintptr(unsafe.Pointer(lpRGBTriple)),
   979  		uintptr(unsafe.Pointer(dlpBuffer)),
   980  		uintptr(nCount),
   981  		0,
   982  		0)
   983  	return ret1 != 0
   984  }
   985  
   986  func ChoosePixelFormat(hdc HDC, ppfd /*const*/ *PIXELFORMATDESCRIPTOR) int32 {
   987  	ret1 := syscall3(choosePixelFormat, 2,
   988  		uintptr(hdc),
   989  		uintptr(unsafe.Pointer(ppfd)),
   990  		0)
   991  	return int32(ret1)
   992  }
   993  
   994  func Chord(hdc HDC, x1 int32, y1 int32, x2 int32, y2 int32, x3 int32, y3 int32, x4 int32, y4 int32) bool {
   995  	ret1 := syscall9(chord, 9,
   996  		uintptr(hdc),
   997  		uintptr(x1),
   998  		uintptr(y1),
   999  		uintptr(x2),
  1000  		uintptr(y2),
  1001  		uintptr(x3),
  1002  		uintptr(y3),
  1003  		uintptr(x4),
  1004  		uintptr(y4))
  1005  	return ret1 != 0
  1006  }
  1007  
  1008  func CloseEnhMetaFile(hdc HDC) HENHMETAFILE {
  1009  	ret1 := syscall3(closeEnhMetaFile, 1,
  1010  		uintptr(hdc),
  1011  		0,
  1012  		0)
  1013  	return HENHMETAFILE(ret1)
  1014  }
  1015  
  1016  func CloseFigure(hdc HDC) bool {
  1017  	ret1 := syscall3(closeFigure, 1,
  1018  		uintptr(hdc),
  1019  		0,
  1020  		0)
  1021  	return ret1 != 0
  1022  }
  1023  
  1024  func CloseMetaFile(hdc HDC) HMETAFILE {
  1025  	ret1 := syscall3(closeMetaFile, 1,
  1026  		uintptr(hdc),
  1027  		0,
  1028  		0)
  1029  	return HMETAFILE(ret1)
  1030  }
  1031  
  1032  func ColorCorrectPalette(hdc HDC, hPal HPALETTE, deFirst DWORD, num DWORD) bool {
  1033  	ret1 := syscall6(colorCorrectPalette, 4,
  1034  		uintptr(hdc),
  1035  		uintptr(hPal),
  1036  		uintptr(deFirst),
  1037  		uintptr(num),
  1038  		0,
  1039  		0)
  1040  	return ret1 != 0
  1041  }
  1042  
  1043  func ColorMatchToTarget(hdc HDC, hdcTarget HDC, action DWORD) bool {
  1044  	ret1 := syscall3(colorMatchToTarget, 3,
  1045  		uintptr(hdc),
  1046  		uintptr(hdcTarget),
  1047  		uintptr(action))
  1048  	return ret1 != 0
  1049  }
  1050  
  1051  func CombineRgn(hrgnDst HRGN, hrgnSrc1 HRGN, hrgnSrc2 HRGN, iMode int32) int32 {
  1052  	ret1 := syscall6(combineRgn, 4,
  1053  		uintptr(hrgnDst),
  1054  		uintptr(hrgnSrc1),
  1055  		uintptr(hrgnSrc2),
  1056  		uintptr(iMode),
  1057  		0,
  1058  		0)
  1059  	return int32(ret1)
  1060  }
  1061  
  1062  func CombineTransform(lpxfOut *XFORM, lpxf1 /*const*/ *XFORM, lpxf2 /*const*/ *XFORM) bool {
  1063  	ret1 := syscall3(combineTransform, 3,
  1064  		uintptr(unsafe.Pointer(lpxfOut)),
  1065  		uintptr(unsafe.Pointer(lpxf1)),
  1066  		uintptr(unsafe.Pointer(lpxf2)))
  1067  	return ret1 != 0
  1068  }
  1069  
  1070  func CopyEnhMetaFile(hEnh HENHMETAFILE, lpFileName string) HENHMETAFILE {
  1071  	lpFileNameStr := unicode16FromString(lpFileName)
  1072  	ret1 := syscall3(copyEnhMetaFile, 2,
  1073  		uintptr(hEnh),
  1074  		uintptr(unsafe.Pointer(&lpFileNameStr[0])),
  1075  		0)
  1076  	return HENHMETAFILE(ret1)
  1077  }
  1078  
  1079  func CopyMetaFile(unnamed0 HMETAFILE, unnamed1 string) HMETAFILE {
  1080  	unnamed1Str := unicode16FromString(unnamed1)
  1081  	ret1 := syscall3(copyMetaFile, 2,
  1082  		uintptr(unnamed0),
  1083  		uintptr(unsafe.Pointer(&unnamed1Str[0])),
  1084  		0)
  1085  	return HMETAFILE(ret1)
  1086  }
  1087  
  1088  func CreateBitmap(nWidth int32, nHeight int32, nPlanes UINT, nBitCount UINT, lpBits /*const*/ uintptr) HBITMAP {
  1089  	ret1 := syscall6(createBitmap, 5,
  1090  		uintptr(nWidth),
  1091  		uintptr(nHeight),
  1092  		uintptr(nPlanes),
  1093  		uintptr(nBitCount),
  1094  		lpBits,
  1095  		0)
  1096  	return HBITMAP(ret1)
  1097  }
  1098  
  1099  func CreateBitmapIndirect(pbm /*const*/ *BITMAP) HBITMAP {
  1100  	ret1 := syscall3(createBitmapIndirect, 1,
  1101  		uintptr(unsafe.Pointer(pbm)),
  1102  		0,
  1103  		0)
  1104  	return HBITMAP(ret1)
  1105  }
  1106  
  1107  func CreateBrushIndirect(plbrush /*const*/ *LOGBRUSH) HBRUSH {
  1108  	ret1 := syscall3(createBrushIndirect, 1,
  1109  		uintptr(unsafe.Pointer(plbrush)),
  1110  		0,
  1111  		0)
  1112  	return HBRUSH(ret1)
  1113  }
  1114  
  1115  func CreateColorSpace(lplcs LPLOGCOLORSPACE) HCOLORSPACE {
  1116  	ret1 := syscall3(createColorSpace, 1,
  1117  		uintptr(unsafe.Pointer(lplcs)),
  1118  		0,
  1119  		0)
  1120  	return HCOLORSPACE(ret1)
  1121  }
  1122  
  1123  func CreateCompatibleBitmap(hdc HDC, cx int32, cy int32) HBITMAP {
  1124  	ret1 := syscall3(createCompatibleBitmap, 3,
  1125  		uintptr(hdc),
  1126  		uintptr(cx),
  1127  		uintptr(cy))
  1128  	return HBITMAP(ret1)
  1129  }
  1130  
  1131  func CreateCompatibleDC(hdc HDC) HDC {
  1132  	ret1 := syscall3(createCompatibleDC, 1,
  1133  		uintptr(hdc),
  1134  		0,
  1135  		0)
  1136  	return HDC(ret1)
  1137  }
  1138  
  1139  func CreateDC(pwszDriver string, pwszDevice string, pszPort string, pdm /*const*/ *DEVMODE) HDC {
  1140  	pwszDriverStr := unicode16FromString(pwszDriver)
  1141  	pwszDeviceStr := unicode16FromString(pwszDevice)
  1142  	pszPortStr := unicode16FromString(pszPort)
  1143  	ret1 := syscall6(createDC, 4,
  1144  		uintptr(unsafe.Pointer(&pwszDriverStr[0])),
  1145  		uintptr(unsafe.Pointer(&pwszDeviceStr[0])),
  1146  		uintptr(unsafe.Pointer(&pszPortStr[0])),
  1147  		uintptr(unsafe.Pointer(pdm)),
  1148  		0,
  1149  		0)
  1150  	return HDC(ret1)
  1151  }
  1152  
  1153  func CreateDIBPatternBrush(h HGLOBAL, iUsage UINT) HBRUSH {
  1154  	ret1 := syscall3(createDIBPatternBrush, 2,
  1155  		uintptr(h),
  1156  		uintptr(iUsage),
  1157  		0)
  1158  	return HBRUSH(ret1)
  1159  }
  1160  
  1161  func CreateDIBPatternBrushPt(lpPackedDIB /*const*/ uintptr, iUsage UINT) HBRUSH {
  1162  	ret1 := syscall3(createDIBPatternBrushPt, 2,
  1163  		lpPackedDIB,
  1164  		uintptr(iUsage),
  1165  		0)
  1166  	return HBRUSH(ret1)
  1167  }
  1168  
  1169  func CreateDIBSection(hdc HDC, lpbmi /*const*/ *BITMAPINFO, usage UINT, ppvBits uintptr, hSection HANDLE, offset DWORD) HBITMAP {
  1170  	ret1 := syscall6(createDIBSection, 6,
  1171  		uintptr(hdc),
  1172  		uintptr(unsafe.Pointer(lpbmi)),
  1173  		uintptr(usage),
  1174  		ppvBits,
  1175  		uintptr(hSection),
  1176  		uintptr(offset))
  1177  	return HBITMAP(ret1)
  1178  }
  1179  
  1180  func CreateDIBitmap(hdc HDC, pbmih /*const*/ *BITMAPINFOHEADER, flInit DWORD, pjBits /*const*/ uintptr, pbmi /*const*/ *BITMAPINFO, iUsage UINT) HBITMAP {
  1181  	ret1 := syscall6(createDIBitmap, 6,
  1182  		uintptr(hdc),
  1183  		uintptr(unsafe.Pointer(pbmih)),
  1184  		uintptr(flInit),
  1185  		pjBits,
  1186  		uintptr(unsafe.Pointer(pbmi)),
  1187  		uintptr(iUsage))
  1188  	return HBITMAP(ret1)
  1189  }
  1190  
  1191  func CreateDiscardableBitmap(hdc HDC, cx int32, cy int32) HBITMAP {
  1192  	ret1 := syscall3(createDiscardableBitmap, 3,
  1193  		uintptr(hdc),
  1194  		uintptr(cx),
  1195  		uintptr(cy))
  1196  	return HBITMAP(ret1)
  1197  }
  1198  
  1199  func CreateEllipticRgn(x1 int32, y1 int32, x2 int32, y2 int32) HRGN {
  1200  	ret1 := syscall6(createEllipticRgn, 4,
  1201  		uintptr(x1),
  1202  		uintptr(y1),
  1203  		uintptr(x2),
  1204  		uintptr(y2),
  1205  		0,
  1206  		0)
  1207  	return HRGN(ret1)
  1208  }
  1209  
  1210  func CreateEllipticRgnIndirect(lprect /*const*/ *RECT) HRGN {
  1211  	ret1 := syscall3(createEllipticRgnIndirect, 1,
  1212  		uintptr(unsafe.Pointer(lprect)),
  1213  		0,
  1214  		0)
  1215  	return HRGN(ret1)
  1216  }
  1217  
  1218  func CreateEnhMetaFile(hdc HDC, lpFilename string, lprc /*const*/ *RECT, lpDesc string) HDC {
  1219  	lpFilenameStr := unicode16FromString(lpFilename)
  1220  	lpDescStr := unicode16FromString(lpDesc)
  1221  	ret1 := syscall6(createEnhMetaFile, 4,
  1222  		uintptr(hdc),
  1223  		uintptr(unsafe.Pointer(&lpFilenameStr[0])),
  1224  		uintptr(unsafe.Pointer(lprc)),
  1225  		uintptr(unsafe.Pointer(&lpDescStr[0])),
  1226  		0,
  1227  		0)
  1228  	return HDC(ret1)
  1229  }
  1230  
  1231  func CreateFontIndirectEx(unnamed0 /*const*/ *ENUMLOGFONTEXDV) HFONT {
  1232  	ret1 := syscall3(createFontIndirectEx, 1,
  1233  		uintptr(unsafe.Pointer(unnamed0)),
  1234  		0,
  1235  		0)
  1236  	return HFONT(ret1)
  1237  }
  1238  
  1239  func CreateFontIndirect(lplf /*const*/ *LOGFONT) HFONT {
  1240  	ret1 := syscall3(createFontIndirect, 1,
  1241  		uintptr(unsafe.Pointer(lplf)),
  1242  		0,
  1243  		0)
  1244  	return HFONT(ret1)
  1245  }
  1246  
  1247  func CreateFont(cHeight int32, cWidth int32, cEscapement int32, cOrientation int32, cWeight int32, bItalic DWORD, bUnderline DWORD, bStrikeOut DWORD, iCharSet DWORD, iOutPrecision DWORD, iClipPrecision DWORD, iQuality DWORD, iPitchAndFamily DWORD, pszFaceName string) HFONT {
  1248  	pszFaceNameStr := unicode16FromString(pszFaceName)
  1249  	ret1 := syscall15(createFont, 14,
  1250  		uintptr(cHeight),
  1251  		uintptr(cWidth),
  1252  		uintptr(cEscapement),
  1253  		uintptr(cOrientation),
  1254  		uintptr(cWeight),
  1255  		uintptr(bItalic),
  1256  		uintptr(bUnderline),
  1257  		uintptr(bStrikeOut),
  1258  		uintptr(iCharSet),
  1259  		uintptr(iOutPrecision),
  1260  		uintptr(iClipPrecision),
  1261  		uintptr(iQuality),
  1262  		uintptr(iPitchAndFamily),
  1263  		uintptr(unsafe.Pointer(&pszFaceNameStr[0])),
  1264  		0)
  1265  	return HFONT(ret1)
  1266  }
  1267  
  1268  func CreateHalftonePalette(hdc HDC) HPALETTE {
  1269  	ret1 := syscall3(createHalftonePalette, 1,
  1270  		uintptr(hdc),
  1271  		0,
  1272  		0)
  1273  	return HPALETTE(ret1)
  1274  }
  1275  
  1276  func CreateHatchBrush(iHatch int32, color COLORREF) HBRUSH {
  1277  	ret1 := syscall3(createHatchBrush, 2,
  1278  		uintptr(iHatch),
  1279  		uintptr(color),
  1280  		0)
  1281  	return HBRUSH(ret1)
  1282  }
  1283  
  1284  func CreateIC(pszDriver string, pszDevice string, pszPort string, pdm /*const*/ *DEVMODE) HDC {
  1285  	pszDriverStr := unicode16FromString(pszDriver)
  1286  	pszDeviceStr := unicode16FromString(pszDevice)
  1287  	pszPortStr := unicode16FromString(pszPort)
  1288  	ret1 := syscall6(createIC, 4,
  1289  		uintptr(unsafe.Pointer(&pszDriverStr[0])),
  1290  		uintptr(unsafe.Pointer(&pszDeviceStr[0])),
  1291  		uintptr(unsafe.Pointer(&pszPortStr[0])),
  1292  		uintptr(unsafe.Pointer(pdm)),
  1293  		0,
  1294  		0)
  1295  	return HDC(ret1)
  1296  }
  1297  
  1298  func CreateMetaFile(pszFile string) HDC {
  1299  	pszFileStr := unicode16FromString(pszFile)
  1300  	ret1 := syscall3(createMetaFile, 1,
  1301  		uintptr(unsafe.Pointer(&pszFileStr[0])),
  1302  		0,
  1303  		0)
  1304  	return HDC(ret1)
  1305  }
  1306  
  1307  func CreatePalette(plpal /*const*/ *LOGPALETTE) HPALETTE {
  1308  	ret1 := syscall3(createPalette, 1,
  1309  		uintptr(unsafe.Pointer(plpal)),
  1310  		0,
  1311  		0)
  1312  	return HPALETTE(ret1)
  1313  }
  1314  
  1315  func CreatePatternBrush(hbm HBITMAP) HBRUSH {
  1316  	ret1 := syscall3(createPatternBrush, 1,
  1317  		uintptr(hbm),
  1318  		0,
  1319  		0)
  1320  	return HBRUSH(ret1)
  1321  }
  1322  
  1323  func CreatePen(iStyle int32, cWidth int32, color COLORREF) HPEN {
  1324  	ret1 := syscall3(createPen, 3,
  1325  		uintptr(iStyle),
  1326  		uintptr(cWidth),
  1327  		uintptr(color))
  1328  	return HPEN(ret1)
  1329  }
  1330  
  1331  func CreatePenIndirect(plpen /*const*/ *LOGPEN) HPEN {
  1332  	ret1 := syscall3(createPenIndirect, 1,
  1333  		uintptr(unsafe.Pointer(plpen)),
  1334  		0,
  1335  		0)
  1336  	return HPEN(ret1)
  1337  }
  1338  
  1339  func CreatePolyPolygonRgn(pptl /*const*/ *POINT, pc /*const*/ *int32, cPoly int32, iMode int32) HRGN {
  1340  	ret1 := syscall6(createPolyPolygonRgn, 4,
  1341  		uintptr(unsafe.Pointer(pptl)),
  1342  		uintptr(unsafe.Pointer(pc)),
  1343  		uintptr(cPoly),
  1344  		uintptr(iMode),
  1345  		0,
  1346  		0)
  1347  	return HRGN(ret1)
  1348  }
  1349  
  1350  func CreatePolygonRgn(pptl /*const*/ *POINT, cPoint int32, iMode int32) HRGN {
  1351  	ret1 := syscall3(createPolygonRgn, 3,
  1352  		uintptr(unsafe.Pointer(pptl)),
  1353  		uintptr(cPoint),
  1354  		uintptr(iMode))
  1355  	return HRGN(ret1)
  1356  }
  1357  
  1358  func CreateRectRgn(x1 int32, y1 int32, x2 int32, y2 int32) HRGN {
  1359  	ret1 := syscall6(createRectRgn, 4,
  1360  		uintptr(x1),
  1361  		uintptr(y1),
  1362  		uintptr(x2),
  1363  		uintptr(y2),
  1364  		0,
  1365  		0)
  1366  	return HRGN(ret1)
  1367  }
  1368  
  1369  func CreateRectRgnIndirect(lprect /*const*/ *RECT) HRGN {
  1370  	ret1 := syscall3(createRectRgnIndirect, 1,
  1371  		uintptr(unsafe.Pointer(lprect)),
  1372  		0,
  1373  		0)
  1374  	return HRGN(ret1)
  1375  }
  1376  
  1377  func CreateRoundRectRgn(x1 int32, y1 int32, x2 int32, y2 int32, w int32, h int32) HRGN {
  1378  	ret1 := syscall6(createRoundRectRgn, 6,
  1379  		uintptr(x1),
  1380  		uintptr(y1),
  1381  		uintptr(x2),
  1382  		uintptr(y2),
  1383  		uintptr(w),
  1384  		uintptr(h))
  1385  	return HRGN(ret1)
  1386  }
  1387  
  1388  func CreateScalableFontResource(fdwHidden DWORD, lpszFont string, lpszFile string, lpszPath string) bool {
  1389  	lpszFontStr := unicode16FromString(lpszFont)
  1390  	lpszFileStr := unicode16FromString(lpszFile)
  1391  	lpszPathStr := unicode16FromString(lpszPath)
  1392  	ret1 := syscall6(createScalableFontResource, 4,
  1393  		uintptr(fdwHidden),
  1394  		uintptr(unsafe.Pointer(&lpszFontStr[0])),
  1395  		uintptr(unsafe.Pointer(&lpszFileStr[0])),
  1396  		uintptr(unsafe.Pointer(&lpszPathStr[0])),
  1397  		0,
  1398  		0)
  1399  	return ret1 != 0
  1400  }
  1401  
  1402  func CreateSolidBrush(color COLORREF) HBRUSH {
  1403  	ret1 := syscall3(createSolidBrush, 1,
  1404  		uintptr(color),
  1405  		0,
  1406  		0)
  1407  	return HBRUSH(ret1)
  1408  }
  1409  
  1410  func DPtoLP(hdc HDC, lppt *POINT, c int32) bool {
  1411  	ret1 := syscall3(dPtoLP, 3,
  1412  		uintptr(hdc),
  1413  		uintptr(unsafe.Pointer(lppt)),
  1414  		uintptr(c))
  1415  	return ret1 != 0
  1416  }
  1417  
  1418  func DeleteColorSpace(hcs HCOLORSPACE) bool {
  1419  	ret1 := syscall3(deleteColorSpace, 1,
  1420  		uintptr(hcs),
  1421  		0,
  1422  		0)
  1423  	return ret1 != 0
  1424  }
  1425  
  1426  func DeleteDC(hdc HDC) bool {
  1427  	ret1 := syscall3(deleteDC, 1,
  1428  		uintptr(hdc),
  1429  		0,
  1430  		0)
  1431  	return ret1 != 0
  1432  }
  1433  
  1434  func DeleteEnhMetaFile(hmf HENHMETAFILE) bool {
  1435  	ret1 := syscall3(deleteEnhMetaFile, 1,
  1436  		uintptr(hmf),
  1437  		0,
  1438  		0)
  1439  	return ret1 != 0
  1440  }
  1441  
  1442  func DeleteMetaFile(hmf HMETAFILE) bool {
  1443  	ret1 := syscall3(deleteMetaFile, 1,
  1444  		uintptr(hmf),
  1445  		0,
  1446  		0)
  1447  	return ret1 != 0
  1448  }
  1449  
  1450  func DeleteObject(ho HGDIOBJ) bool {
  1451  	ret1 := syscall3(deleteObject, 1,
  1452  		uintptr(ho),
  1453  		0,
  1454  		0)
  1455  	return ret1 != 0
  1456  }
  1457  
  1458  func DescribePixelFormat(hdc HDC, iPixelFormat int32, nBytes UINT, ppfd *PIXELFORMATDESCRIPTOR) int32 {
  1459  	ret1 := syscall6(describePixelFormat, 4,
  1460  		uintptr(hdc),
  1461  		uintptr(iPixelFormat),
  1462  		uintptr(nBytes),
  1463  		uintptr(unsafe.Pointer(ppfd)),
  1464  		0,
  1465  		0)
  1466  	return int32(ret1)
  1467  }
  1468  
  1469  func DrawEscape(hdc HDC, iEscape int32, cjIn int32, lpIn /*const*/ LPCSTR) int32 {
  1470  	ret1 := syscall6(drawEscape, 4,
  1471  		uintptr(hdc),
  1472  		uintptr(iEscape),
  1473  		uintptr(cjIn),
  1474  		uintptr(unsafe.Pointer(lpIn)),
  1475  		0,
  1476  		0)
  1477  	return int32(ret1)
  1478  }
  1479  
  1480  func Ellipse(hdc HDC, left int32, top int32, right int32, bottom int32) bool {
  1481  	ret1 := syscall6(ellipse, 5,
  1482  		uintptr(hdc),
  1483  		uintptr(left),
  1484  		uintptr(top),
  1485  		uintptr(right),
  1486  		uintptr(bottom),
  1487  		0)
  1488  	return ret1 != 0
  1489  }
  1490  
  1491  func EndDoc(hdc HDC) int32 {
  1492  	ret1 := syscall3(endDoc, 1,
  1493  		uintptr(hdc),
  1494  		0,
  1495  		0)
  1496  	return int32(ret1)
  1497  }
  1498  
  1499  func EndPage(hdc HDC) int32 {
  1500  	ret1 := syscall3(endPage, 1,
  1501  		uintptr(hdc),
  1502  		0,
  1503  		0)
  1504  	return int32(ret1)
  1505  }
  1506  
  1507  func EndPath(hdc HDC) bool {
  1508  	ret1 := syscall3(endPath, 1,
  1509  		uintptr(hdc),
  1510  		0,
  1511  		0)
  1512  	return ret1 != 0
  1513  }
  1514  
  1515  func EngAcquireSemaphore(hsem HSEMAPHORE) {
  1516  	syscall3(engAcquireSemaphore, 1,
  1517  		uintptr(hsem),
  1518  		0,
  1519  		0)
  1520  }
  1521  
  1522  func EngAlphaBlend(psoDest *SURFOBJ, psoSrc *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, prclDest *RECTL, prclSrc *RECTL, pBlendObj *BLENDOBJ) bool {
  1523  	ret1 := syscall9(engAlphaBlend, 7,
  1524  		uintptr(unsafe.Pointer(psoDest)),
  1525  		uintptr(unsafe.Pointer(psoSrc)),
  1526  		uintptr(unsafe.Pointer(pco)),
  1527  		uintptr(unsafe.Pointer(pxlo)),
  1528  		uintptr(unsafe.Pointer(prclDest)),
  1529  		uintptr(unsafe.Pointer(prclSrc)),
  1530  		uintptr(unsafe.Pointer(pBlendObj)),
  1531  		0,
  1532  		0)
  1533  	return ret1 != 0
  1534  }
  1535  
  1536  func EngAssociateSurface(hsurf HSURF, hdev HDEV, flHooks FLONG) bool {
  1537  	ret1 := syscall3(engAssociateSurface, 3,
  1538  		uintptr(hsurf),
  1539  		uintptr(hdev),
  1540  		uintptr(flHooks))
  1541  	return ret1 != 0
  1542  }
  1543  
  1544  func EngBitBlt(psoTrg *SURFOBJ, psoSrc *SURFOBJ, psoMask *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, prclTrg *RECTL, pptlSrc *POINTL, pptlMask *POINTL, pbo *BRUSHOBJ, pptlBrush *POINTL, rop4 ROP4) bool {
  1545  	ret1 := syscall12(engBitBlt, 11,
  1546  		uintptr(unsafe.Pointer(psoTrg)),
  1547  		uintptr(unsafe.Pointer(psoSrc)),
  1548  		uintptr(unsafe.Pointer(psoMask)),
  1549  		uintptr(unsafe.Pointer(pco)),
  1550  		uintptr(unsafe.Pointer(pxlo)),
  1551  		uintptr(unsafe.Pointer(prclTrg)),
  1552  		uintptr(unsafe.Pointer(pptlSrc)),
  1553  		uintptr(unsafe.Pointer(pptlMask)),
  1554  		uintptr(unsafe.Pointer(pbo)),
  1555  		uintptr(unsafe.Pointer(pptlBrush)),
  1556  		uintptr(rop4),
  1557  		0)
  1558  	return ret1 != 0
  1559  }
  1560  
  1561  func EngCheckAbort(pso *SURFOBJ) bool {
  1562  	ret1 := syscall3(engCheckAbort, 1,
  1563  		uintptr(unsafe.Pointer(pso)),
  1564  		0,
  1565  		0)
  1566  	return ret1 != 0
  1567  }
  1568  
  1569  func EngCopyBits(psoDest *SURFOBJ, psoSrc *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, prclDest *RECTL, pptlSrc *POINTL) bool {
  1570  	ret1 := syscall6(engCopyBits, 6,
  1571  		uintptr(unsafe.Pointer(psoDest)),
  1572  		uintptr(unsafe.Pointer(psoSrc)),
  1573  		uintptr(unsafe.Pointer(pco)),
  1574  		uintptr(unsafe.Pointer(pxlo)),
  1575  		uintptr(unsafe.Pointer(prclDest)),
  1576  		uintptr(unsafe.Pointer(pptlSrc)))
  1577  	return ret1 != 0
  1578  }
  1579  
  1580  func EngCreateBitmap(sizl SIZEL, lWidth LONG, iFormat ULONG, fl FLONG, pvBits uintptr) HBITMAP {
  1581  	ret1 := syscall6(engCreateBitmap, 6,
  1582  		uintptr(sizl.Cx),
  1583  		uintptr(sizl.Cy),
  1584  		uintptr(lWidth),
  1585  		uintptr(iFormat),
  1586  		uintptr(fl),
  1587  		pvBits)
  1588  	return HBITMAP(ret1)
  1589  }
  1590  
  1591  func EngCreateDeviceBitmap(dhsurf DHSURF, sizl SIZEL, iFormatCompat ULONG) HBITMAP {
  1592  	ret1 := syscall6(engCreateDeviceBitmap, 4,
  1593  		uintptr(dhsurf),
  1594  		uintptr(sizl.Cx),
  1595  		uintptr(sizl.Cy),
  1596  		uintptr(iFormatCompat),
  1597  		0,
  1598  		0)
  1599  	return HBITMAP(ret1)
  1600  }
  1601  
  1602  func EngCreateDeviceSurface(dhsurf DHSURF, sizl SIZEL, iFormatCompat ULONG) HSURF {
  1603  	ret1 := syscall6(engCreateDeviceSurface, 4,
  1604  		uintptr(dhsurf),
  1605  		uintptr(sizl.Cx),
  1606  		uintptr(sizl.Cy),
  1607  		uintptr(iFormatCompat),
  1608  		0,
  1609  		0)
  1610  	return HSURF(ret1)
  1611  }
  1612  
  1613  func EngCreatePalette(iMode ULONG, cColors ULONG, pulColors *ULONG, flRed FLONG, flGreen FLONG, flBlue FLONG) HPALETTE {
  1614  	ret1 := syscall6(engCreatePalette, 6,
  1615  		uintptr(iMode),
  1616  		uintptr(cColors),
  1617  		uintptr(unsafe.Pointer(pulColors)),
  1618  		uintptr(flRed),
  1619  		uintptr(flGreen),
  1620  		uintptr(flBlue))
  1621  	return HPALETTE(ret1)
  1622  }
  1623  
  1624  func EngCreateSemaphore() HSEMAPHORE {
  1625  	ret1 := syscall3(engCreateSemaphore, 0,
  1626  		0,
  1627  		0,
  1628  		0)
  1629  	return HSEMAPHORE(ret1)
  1630  }
  1631  
  1632  func EngDeleteClip(pco *CLIPOBJ) {
  1633  	syscall3(engDeleteClip, 1,
  1634  		uintptr(unsafe.Pointer(pco)),
  1635  		0,
  1636  		0)
  1637  }
  1638  
  1639  func EngDeletePalette(hpal HPALETTE) bool {
  1640  	ret1 := syscall3(engDeletePalette, 1,
  1641  		uintptr(hpal),
  1642  		0,
  1643  		0)
  1644  	return ret1 != 0
  1645  }
  1646  
  1647  func EngDeletePath(ppo *PATHOBJ) {
  1648  	syscall3(engDeletePath, 1,
  1649  		uintptr(unsafe.Pointer(ppo)),
  1650  		0,
  1651  		0)
  1652  }
  1653  
  1654  func EngDeleteSemaphore(hsem HSEMAPHORE) {
  1655  	syscall3(engDeleteSemaphore, 1,
  1656  		uintptr(hsem),
  1657  		0,
  1658  		0)
  1659  }
  1660  
  1661  func EngDeleteSurface(hsurf HSURF) bool {
  1662  	ret1 := syscall3(engDeleteSurface, 1,
  1663  		uintptr(hsurf),
  1664  		0,
  1665  		0)
  1666  	return ret1 != 0
  1667  }
  1668  
  1669  func EngEraseSurface(pso *SURFOBJ, prcl *RECTL, iColor ULONG) bool {
  1670  	ret1 := syscall3(engEraseSurface, 3,
  1671  		uintptr(unsafe.Pointer(pso)),
  1672  		uintptr(unsafe.Pointer(prcl)),
  1673  		uintptr(iColor))
  1674  	return ret1 != 0
  1675  }
  1676  
  1677  func EngFillPath(pso *SURFOBJ, ppo *PATHOBJ, pco *CLIPOBJ, pbo *BRUSHOBJ, pptlBrushOrg *POINTL, mix MIX, flOptions FLONG) bool {
  1678  	ret1 := syscall9(engFillPath, 7,
  1679  		uintptr(unsafe.Pointer(pso)),
  1680  		uintptr(unsafe.Pointer(ppo)),
  1681  		uintptr(unsafe.Pointer(pco)),
  1682  		uintptr(unsafe.Pointer(pbo)),
  1683  		uintptr(unsafe.Pointer(pptlBrushOrg)),
  1684  		uintptr(mix),
  1685  		uintptr(flOptions),
  1686  		0,
  1687  		0)
  1688  	return ret1 != 0
  1689  }
  1690  
  1691  func EngFindResource(h HANDLE, iName int32, iType int32, pulSize *uint32) uintptr {
  1692  	ret1 := syscall6(engFindResource, 4,
  1693  		uintptr(h),
  1694  		uintptr(iName),
  1695  		uintptr(iType),
  1696  		uintptr(unsafe.Pointer(pulSize)),
  1697  		0,
  1698  		0)
  1699  	return (uintptr)(unsafe.Pointer(ret1))
  1700  }
  1701  
  1702  func EngFreeModule(h HANDLE) {
  1703  	syscall3(engFreeModule, 1,
  1704  		uintptr(h),
  1705  		0,
  1706  		0)
  1707  }
  1708  
  1709  func EngGetCurrentCodePage(oemCodePage PUSHORT, ansiCodePage PUSHORT) {
  1710  	syscall3(engGetCurrentCodePage, 2,
  1711  		uintptr(unsafe.Pointer(oemCodePage)),
  1712  		uintptr(unsafe.Pointer(ansiCodePage)),
  1713  		0)
  1714  }
  1715  
  1716  func EngGetDriverName(hdev HDEV) LPWSTR {
  1717  	ret1 := syscall3(engGetDriverName, 1,
  1718  		uintptr(hdev),
  1719  		0,
  1720  		0)
  1721  	return (LPWSTR)(unsafe.Pointer(ret1))
  1722  }
  1723  
  1724  func EngGetPrinterDataFileName(hdev HDEV) LPWSTR {
  1725  	ret1 := syscall3(engGetPrinterDataFileName, 1,
  1726  		uintptr(hdev),
  1727  		0,
  1728  		0)
  1729  	return (LPWSTR)(unsafe.Pointer(ret1))
  1730  }
  1731  
  1732  func EngGradientFill(psoDest *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, pVertex *TRIVERTEX, nVertex ULONG, pMesh uintptr, nMesh ULONG, prclExtents *RECTL, pptlDitherOrg *POINTL, ulMode ULONG) bool {
  1733  	ret1 := syscall12(engGradientFill, 10,
  1734  		uintptr(unsafe.Pointer(psoDest)),
  1735  		uintptr(unsafe.Pointer(pco)),
  1736  		uintptr(unsafe.Pointer(pxlo)),
  1737  		uintptr(unsafe.Pointer(pVertex)),
  1738  		uintptr(nVertex),
  1739  		pMesh,
  1740  		uintptr(nMesh),
  1741  		uintptr(unsafe.Pointer(prclExtents)),
  1742  		uintptr(unsafe.Pointer(pptlDitherOrg)),
  1743  		uintptr(ulMode),
  1744  		0,
  1745  		0)
  1746  	return ret1 != 0
  1747  }
  1748  
  1749  func EngLineTo(pso *SURFOBJ, pco *CLIPOBJ, pbo *BRUSHOBJ, x1 LONG, y1 LONG, x2 LONG, y2 LONG, prclBounds *RECTL, mix MIX) bool {
  1750  	ret1 := syscall9(engLineTo, 9,
  1751  		uintptr(unsafe.Pointer(pso)),
  1752  		uintptr(unsafe.Pointer(pco)),
  1753  		uintptr(unsafe.Pointer(pbo)),
  1754  		uintptr(x1),
  1755  		uintptr(y1),
  1756  		uintptr(x2),
  1757  		uintptr(y2),
  1758  		uintptr(unsafe.Pointer(prclBounds)),
  1759  		uintptr(mix))
  1760  	return ret1 != 0
  1761  }
  1762  
  1763  func EngLoadModule(pwsz LPWSTR) HANDLE {
  1764  	ret1 := syscall3(engLoadModule, 1,
  1765  		uintptr(unsafe.Pointer(pwsz)),
  1766  		0,
  1767  		0)
  1768  	return HANDLE(ret1)
  1769  }
  1770  
  1771  func EngMarkBandingSurface(hsurf HSURF) bool {
  1772  	ret1 := syscall3(engMarkBandingSurface, 1,
  1773  		uintptr(hsurf),
  1774  		0,
  1775  		0)
  1776  	return ret1 != 0
  1777  }
  1778  
  1779  func EngMultiByteToUnicodeN(unicodeString LPWSTR, maxBytesInUnicodeString ULONG, bytesInUnicodeString *uint32, multiByteString PCHAR, bytesInMultiByteString ULONG) {
  1780  	syscall6(engMultiByteToUnicodeN, 5,
  1781  		uintptr(unsafe.Pointer(unicodeString)),
  1782  		uintptr(maxBytesInUnicodeString),
  1783  		uintptr(unsafe.Pointer(bytesInUnicodeString)),
  1784  		uintptr(unsafe.Pointer(multiByteString)),
  1785  		uintptr(bytesInMultiByteString),
  1786  		0)
  1787  }
  1788  
  1789  func EngMultiByteToWideChar(codePage UINT, wideCharString LPWSTR, bytesInWideCharString INT, multiByteString LPSTR, bytesInMultiByteString INT) INT {
  1790  	ret1 := syscall6(engMultiByteToWideChar, 5,
  1791  		uintptr(codePage),
  1792  		uintptr(unsafe.Pointer(wideCharString)),
  1793  		uintptr(bytesInWideCharString),
  1794  		uintptr(unsafe.Pointer(multiByteString)),
  1795  		uintptr(bytesInMultiByteString),
  1796  		0)
  1797  	return INT(ret1)
  1798  }
  1799  
  1800  func EngPaint(pso *SURFOBJ, pco *CLIPOBJ, pbo *BRUSHOBJ, pptlBrushOrg *POINTL, mix MIX) bool {
  1801  	ret1 := syscall6(engPaint, 5,
  1802  		uintptr(unsafe.Pointer(pso)),
  1803  		uintptr(unsafe.Pointer(pco)),
  1804  		uintptr(unsafe.Pointer(pbo)),
  1805  		uintptr(unsafe.Pointer(pptlBrushOrg)),
  1806  		uintptr(mix),
  1807  		0)
  1808  	return ret1 != 0
  1809  }
  1810  
  1811  func EngPlgBlt(psoTrg *SURFOBJ, psoSrc *SURFOBJ, psoMsk *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, pca *COLORADJUSTMENT, pptlBrushOrg *POINTL, pptfx *POINTFIX, prcl *RECTL, pptl *POINTL, iMode ULONG) bool {
  1812  	ret1 := syscall12(engPlgBlt, 11,
  1813  		uintptr(unsafe.Pointer(psoTrg)),
  1814  		uintptr(unsafe.Pointer(psoSrc)),
  1815  		uintptr(unsafe.Pointer(psoMsk)),
  1816  		uintptr(unsafe.Pointer(pco)),
  1817  		uintptr(unsafe.Pointer(pxlo)),
  1818  		uintptr(unsafe.Pointer(pca)),
  1819  		uintptr(unsafe.Pointer(pptlBrushOrg)),
  1820  		uintptr(unsafe.Pointer(pptfx)),
  1821  		uintptr(unsafe.Pointer(prcl)),
  1822  		uintptr(unsafe.Pointer(pptl)),
  1823  		uintptr(iMode),
  1824  		0)
  1825  	return ret1 != 0
  1826  }
  1827  
  1828  func EngQueryLocalTime(ptf PENG_TIME_FIELDS) {
  1829  	syscall3(engQueryLocalTime, 1,
  1830  		uintptr(unsafe.Pointer(ptf)),
  1831  		0,
  1832  		0)
  1833  }
  1834  
  1835  func EngReleaseSemaphore(hsem HSEMAPHORE) {
  1836  	syscall3(engReleaseSemaphore, 1,
  1837  		uintptr(hsem),
  1838  		0,
  1839  		0)
  1840  }
  1841  
  1842  func EngStretchBlt(psoDest *SURFOBJ, psoSrc *SURFOBJ, psoMask *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, pca *COLORADJUSTMENT, pptlHTOrg *POINTL, prclDest *RECTL, prclSrc *RECTL, pptlMask *POINTL, iMode ULONG) bool {
  1843  	ret1 := syscall12(engStretchBlt, 11,
  1844  		uintptr(unsafe.Pointer(psoDest)),
  1845  		uintptr(unsafe.Pointer(psoSrc)),
  1846  		uintptr(unsafe.Pointer(psoMask)),
  1847  		uintptr(unsafe.Pointer(pco)),
  1848  		uintptr(unsafe.Pointer(pxlo)),
  1849  		uintptr(unsafe.Pointer(pca)),
  1850  		uintptr(unsafe.Pointer(pptlHTOrg)),
  1851  		uintptr(unsafe.Pointer(prclDest)),
  1852  		uintptr(unsafe.Pointer(prclSrc)),
  1853  		uintptr(unsafe.Pointer(pptlMask)),
  1854  		uintptr(iMode),
  1855  		0)
  1856  	return ret1 != 0
  1857  }
  1858  
  1859  func EngStretchBltROP(psoDest *SURFOBJ, psoSrc *SURFOBJ, psoMask *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, pca *COLORADJUSTMENT, pptlHTOrg *POINTL, prclDest *RECTL, prclSrc *RECTL, pptlMask *POINTL, iMode ULONG, pbo *BRUSHOBJ, rop4 DWORD) bool {
  1860  	ret1 := syscall15(engStretchBltROP, 13,
  1861  		uintptr(unsafe.Pointer(psoDest)),
  1862  		uintptr(unsafe.Pointer(psoSrc)),
  1863  		uintptr(unsafe.Pointer(psoMask)),
  1864  		uintptr(unsafe.Pointer(pco)),
  1865  		uintptr(unsafe.Pointer(pxlo)),
  1866  		uintptr(unsafe.Pointer(pca)),
  1867  		uintptr(unsafe.Pointer(pptlHTOrg)),
  1868  		uintptr(unsafe.Pointer(prclDest)),
  1869  		uintptr(unsafe.Pointer(prclSrc)),
  1870  		uintptr(unsafe.Pointer(pptlMask)),
  1871  		uintptr(iMode),
  1872  		uintptr(unsafe.Pointer(pbo)),
  1873  		uintptr(rop4),
  1874  		0,
  1875  		0)
  1876  	return ret1 != 0
  1877  }
  1878  
  1879  func EngStrokeAndFillPath(pso *SURFOBJ, ppo *PATHOBJ, pco *CLIPOBJ, pxo *XFORMOBJ, pboStroke *BRUSHOBJ, plineattrs *LINEATTRS, pboFill *BRUSHOBJ, pptlBrushOrg *POINTL, mixFill MIX, flOptions FLONG) bool {
  1880  	ret1 := syscall12(engStrokeAndFillPath, 10,
  1881  		uintptr(unsafe.Pointer(pso)),
  1882  		uintptr(unsafe.Pointer(ppo)),
  1883  		uintptr(unsafe.Pointer(pco)),
  1884  		uintptr(unsafe.Pointer(pxo)),
  1885  		uintptr(unsafe.Pointer(pboStroke)),
  1886  		uintptr(unsafe.Pointer(plineattrs)),
  1887  		uintptr(unsafe.Pointer(pboFill)),
  1888  		uintptr(unsafe.Pointer(pptlBrushOrg)),
  1889  		uintptr(mixFill),
  1890  		uintptr(flOptions),
  1891  		0,
  1892  		0)
  1893  	return ret1 != 0
  1894  }
  1895  
  1896  func EngStrokePath(pso *SURFOBJ, ppo *PATHOBJ, pco *CLIPOBJ, pxo *XFORMOBJ, pbo *BRUSHOBJ, pptlBrushOrg *POINTL, plineattrs *LINEATTRS, mix MIX) bool {
  1897  	ret1 := syscall9(engStrokePath, 8,
  1898  		uintptr(unsafe.Pointer(pso)),
  1899  		uintptr(unsafe.Pointer(ppo)),
  1900  		uintptr(unsafe.Pointer(pco)),
  1901  		uintptr(unsafe.Pointer(pxo)),
  1902  		uintptr(unsafe.Pointer(pbo)),
  1903  		uintptr(unsafe.Pointer(pptlBrushOrg)),
  1904  		uintptr(unsafe.Pointer(plineattrs)),
  1905  		uintptr(mix),
  1906  		0)
  1907  	return ret1 != 0
  1908  }
  1909  
  1910  func EngTextOut(pso *SURFOBJ, pstro *STROBJ, pfo *FONTOBJ, pco *CLIPOBJ, prclExtra *RECTL, prclOpaque *RECTL, pboFore *BRUSHOBJ, pboOpaque *BRUSHOBJ, pptlOrg *POINTL, mix MIX) bool {
  1911  	ret1 := syscall12(engTextOut, 10,
  1912  		uintptr(unsafe.Pointer(pso)),
  1913  		uintptr(unsafe.Pointer(pstro)),
  1914  		uintptr(unsafe.Pointer(pfo)),
  1915  		uintptr(unsafe.Pointer(pco)),
  1916  		uintptr(unsafe.Pointer(prclExtra)),
  1917  		uintptr(unsafe.Pointer(prclOpaque)),
  1918  		uintptr(unsafe.Pointer(pboFore)),
  1919  		uintptr(unsafe.Pointer(pboOpaque)),
  1920  		uintptr(unsafe.Pointer(pptlOrg)),
  1921  		uintptr(mix),
  1922  		0,
  1923  		0)
  1924  	return ret1 != 0
  1925  }
  1926  
  1927  func EngTransparentBlt(psoDst *SURFOBJ, psoSrc *SURFOBJ, pco *CLIPOBJ, pxlo *XLATEOBJ, prclDst *RECTL, prclSrc *RECTL, iTransColor ULONG, ulReserved ULONG) bool {
  1928  	ret1 := syscall9(engTransparentBlt, 8,
  1929  		uintptr(unsafe.Pointer(psoDst)),
  1930  		uintptr(unsafe.Pointer(psoSrc)),
  1931  		uintptr(unsafe.Pointer(pco)),
  1932  		uintptr(unsafe.Pointer(pxlo)),
  1933  		uintptr(unsafe.Pointer(prclDst)),
  1934  		uintptr(unsafe.Pointer(prclSrc)),
  1935  		uintptr(iTransColor),
  1936  		uintptr(ulReserved),
  1937  		0)
  1938  	return ret1 != 0
  1939  }
  1940  
  1941  func EngUnicodeToMultiByteN(multiByteString PCHAR, maxBytesInMultiByteString ULONG, bytesInMultiByteString *uint32, unicodeString PWSTR, bytesInUnicodeString ULONG) {
  1942  	syscall6(engUnicodeToMultiByteN, 5,
  1943  		uintptr(unsafe.Pointer(multiByteString)),
  1944  		uintptr(maxBytesInMultiByteString),
  1945  		uintptr(unsafe.Pointer(bytesInMultiByteString)),
  1946  		uintptr(unsafe.Pointer(unicodeString)),
  1947  		uintptr(bytesInUnicodeString),
  1948  		0)
  1949  }
  1950  
  1951  func EngUnlockSurface(pso *SURFOBJ) {
  1952  	syscall3(engUnlockSurface, 1,
  1953  		uintptr(unsafe.Pointer(pso)),
  1954  		0,
  1955  		0)
  1956  }
  1957  
  1958  func EngWideCharToMultiByte(codePage UINT, wideCharString LPWSTR, bytesInWideCharString INT, multiByteString LPSTR, bytesInMultiByteString INT) INT {
  1959  	ret1 := syscall6(engWideCharToMultiByte, 5,
  1960  		uintptr(codePage),
  1961  		uintptr(unsafe.Pointer(wideCharString)),
  1962  		uintptr(bytesInWideCharString),
  1963  		uintptr(unsafe.Pointer(multiByteString)),
  1964  		uintptr(bytesInMultiByteString),
  1965  		0)
  1966  	return INT(ret1)
  1967  }
  1968  
  1969  func EnumEnhMetaFile(hdc HDC, hmf HENHMETAFILE, lpProc ENHMFENUMPROC, lpParam LPVOID, lpRect /*const*/ *RECT) bool {
  1970  	lpProcCallback := syscall.NewCallback(func(hdcRawArg HDC, lphtRawArg *HANDLETABLE, lpmrRawArg /*const*/ *ENHMETARECORD, nHandlesRawArg int32, dataRawArg LPARAM) uintptr {
  1971  		ret := lpProc(hdcRawArg, lphtRawArg, lpmrRawArg, nHandlesRawArg, dataRawArg)
  1972  		return uintptr(ret)
  1973  	})
  1974  	ret1 := syscall6(enumEnhMetaFile, 5,
  1975  		uintptr(hdc),
  1976  		uintptr(hmf),
  1977  		lpProcCallback,
  1978  		uintptr(unsafe.Pointer(lpParam)),
  1979  		uintptr(unsafe.Pointer(lpRect)),
  1980  		0)
  1981  	return ret1 != 0
  1982  }
  1983  
  1984  func EnumFontFamiliesEx(hdc HDC, lpLogfont LPLOGFONT, lpProc FONTENUMPROC, lParam LPARAM, dwFlags DWORD) int32 {
  1985  	lpProcCallback := syscall.NewCallback(func(unnamed0RawArg /*const*/ *LOGFONT, unnamed1RawArg /*const*/ *TEXTMETRIC, unnamed2RawArg DWORD, unnamed3RawArg LPARAM) uintptr {
  1986  		ret := lpProc(unnamed0RawArg, unnamed1RawArg, unnamed2RawArg, unnamed3RawArg)
  1987  		return uintptr(ret)
  1988  	})
  1989  	ret1 := syscall6(enumFontFamiliesEx, 5,
  1990  		uintptr(hdc),
  1991  		uintptr(unsafe.Pointer(lpLogfont)),
  1992  		lpProcCallback,
  1993  		uintptr(lParam),
  1994  		uintptr(dwFlags),
  1995  		0)
  1996  	return int32(ret1)
  1997  }
  1998  
  1999  func EnumFontFamilies(hdc HDC, lpLogfont string, lpProc FONTENUMPROC, lParam LPARAM) int32 {
  2000  	lpLogfontStr := unicode16FromString(lpLogfont)
  2001  	lpProcCallback := syscall.NewCallback(func(unnamed0RawArg /*const*/ *LOGFONT, unnamed1RawArg /*const*/ *TEXTMETRIC, unnamed2RawArg DWORD, unnamed3RawArg LPARAM) uintptr {
  2002  		ret := lpProc(unnamed0RawArg, unnamed1RawArg, unnamed2RawArg, unnamed3RawArg)
  2003  		return uintptr(ret)
  2004  	})
  2005  	ret1 := syscall6(enumFontFamilies, 4,
  2006  		uintptr(hdc),
  2007  		uintptr(unsafe.Pointer(&lpLogfontStr[0])),
  2008  		lpProcCallback,
  2009  		uintptr(lParam),
  2010  		0,
  2011  		0)
  2012  	return int32(ret1)
  2013  }
  2014  
  2015  func EnumFonts(hdc HDC, lpLogfont string, lpProc FONTENUMPROC, lParam LPARAM) int32 {
  2016  	lpLogfontStr := unicode16FromString(lpLogfont)
  2017  	lpProcCallback := syscall.NewCallback(func(unnamed0RawArg /*const*/ *LOGFONT, unnamed1RawArg /*const*/ *TEXTMETRIC, unnamed2RawArg DWORD, unnamed3RawArg LPARAM) uintptr {
  2018  		ret := lpProc(unnamed0RawArg, unnamed1RawArg, unnamed2RawArg, unnamed3RawArg)
  2019  		return uintptr(ret)
  2020  	})
  2021  	ret1 := syscall6(enumFonts, 4,
  2022  		uintptr(hdc),
  2023  		uintptr(unsafe.Pointer(&lpLogfontStr[0])),
  2024  		lpProcCallback,
  2025  		uintptr(lParam),
  2026  		0,
  2027  		0)
  2028  	return int32(ret1)
  2029  }
  2030  
  2031  func EnumICMProfiles(hdc HDC, lpProc ICMENUMPROC, lParam LPARAM) int32 {
  2032  	lpProcCallback := syscall.NewCallback(func(unnamed0RawArg LPWSTR, unnamed1RawArg LPARAM) uintptr {
  2033  		ret := lpProc(unnamed0RawArg, unnamed1RawArg)
  2034  		return uintptr(ret)
  2035  	})
  2036  	ret1 := syscall3(enumICMProfiles, 3,
  2037  		uintptr(hdc),
  2038  		lpProcCallback,
  2039  		uintptr(lParam))
  2040  	return int32(ret1)
  2041  }
  2042  
  2043  func EnumMetaFile(hdc HDC, hmf HMETAFILE, lpProc MFENUMPROC, lParam LPARAM) bool {
  2044  	lpProcCallback := syscall.NewCallback(func(hdcRawArg HDC, lphtRawArg *HANDLETABLE, lpMRRawArg *METARECORD, nObjRawArg int32, paramRawArg LPARAM) uintptr {
  2045  		ret := lpProc(hdcRawArg, lphtRawArg, lpMRRawArg, nObjRawArg, paramRawArg)
  2046  		return uintptr(ret)
  2047  	})
  2048  	ret1 := syscall6(enumMetaFile, 4,
  2049  		uintptr(hdc),
  2050  		uintptr(hmf),
  2051  		lpProcCallback,
  2052  		uintptr(lParam),
  2053  		0,
  2054  		0)
  2055  	return ret1 != 0
  2056  }
  2057  
  2058  func EnumObjects(hdc HDC, nType int32, lpFunc GOBJENUMPROC, lParam LPARAM) int32 {
  2059  	lpFuncCallback := syscall.NewCallback(func(unnamed0RawArg LPVOID, unnamed1RawArg LPARAM) uintptr {
  2060  		ret := lpFunc(unnamed0RawArg, unnamed1RawArg)
  2061  		return uintptr(ret)
  2062  	})
  2063  	ret1 := syscall6(enumObjects, 4,
  2064  		uintptr(hdc),
  2065  		uintptr(nType),
  2066  		lpFuncCallback,
  2067  		uintptr(lParam),
  2068  		0,
  2069  		0)
  2070  	return int32(ret1)
  2071  }
  2072  
  2073  func EqualRgn(hrgn1 HRGN, hrgn2 HRGN) bool {
  2074  	ret1 := syscall3(equalRgn, 2,
  2075  		uintptr(hrgn1),
  2076  		uintptr(hrgn2),
  2077  		0)
  2078  	return ret1 != 0
  2079  }
  2080  
  2081  func Escape(hdc HDC, iEscape int32, cjIn int32, pvIn /*const*/ LPCSTR, pvOut LPVOID) int32 {
  2082  	ret1 := syscall6(escape, 5,
  2083  		uintptr(hdc),
  2084  		uintptr(iEscape),
  2085  		uintptr(cjIn),
  2086  		uintptr(unsafe.Pointer(pvIn)),
  2087  		uintptr(unsafe.Pointer(pvOut)),
  2088  		0)
  2089  	return int32(ret1)
  2090  }
  2091  
  2092  func ExcludeClipRect(hdc HDC, left int32, top int32, right int32, bottom int32) int32 {
  2093  	ret1 := syscall6(excludeClipRect, 5,
  2094  		uintptr(hdc),
  2095  		uintptr(left),
  2096  		uintptr(top),
  2097  		uintptr(right),
  2098  		uintptr(bottom),
  2099  		0)
  2100  	return int32(ret1)
  2101  }
  2102  
  2103  func ExtCreatePen(iPenStyle DWORD, cWidth DWORD, plbrush /*const*/ *LOGBRUSH, cStyle DWORD, pstyle /*const*/ *uint32) HPEN {
  2104  	ret1 := syscall6(extCreatePen, 5,
  2105  		uintptr(iPenStyle),
  2106  		uintptr(cWidth),
  2107  		uintptr(unsafe.Pointer(plbrush)),
  2108  		uintptr(cStyle),
  2109  		uintptr(unsafe.Pointer(pstyle)),
  2110  		0)
  2111  	return HPEN(ret1)
  2112  }
  2113  
  2114  func ExtCreateRegion(lpx /*const*/ *XFORM, nCount DWORD, lpData /*const*/ *RGNDATA) HRGN {
  2115  	ret1 := syscall3(extCreateRegion, 3,
  2116  		uintptr(unsafe.Pointer(lpx)),
  2117  		uintptr(nCount),
  2118  		uintptr(unsafe.Pointer(lpData)))
  2119  	return HRGN(ret1)
  2120  }
  2121  
  2122  func ExtEscape(hdc HDC, iEscape int32, cjInput int32, lpInData /*const*/ LPCSTR, cjOutput int32, lpOutData LPSTR) int32 {
  2123  	ret1 := syscall6(extEscape, 6,
  2124  		uintptr(hdc),
  2125  		uintptr(iEscape),
  2126  		uintptr(cjInput),
  2127  		uintptr(unsafe.Pointer(lpInData)),
  2128  		uintptr(cjOutput),
  2129  		uintptr(unsafe.Pointer(lpOutData)))
  2130  	return int32(ret1)
  2131  }
  2132  
  2133  func ExtFloodFill(hdc HDC, x int32, y int32, color COLORREF, aType UINT) bool {
  2134  	ret1 := syscall6(extFloodFill, 5,
  2135  		uintptr(hdc),
  2136  		uintptr(x),
  2137  		uintptr(y),
  2138  		uintptr(color),
  2139  		uintptr(aType),
  2140  		0)
  2141  	return ret1 != 0
  2142  }
  2143  
  2144  func ExtSelectClipRgn(hdc HDC, hrgn HRGN, mode int32) int32 {
  2145  	ret1 := syscall3(extSelectClipRgn, 3,
  2146  		uintptr(hdc),
  2147  		uintptr(hrgn),
  2148  		uintptr(mode))
  2149  	return int32(ret1)
  2150  }
  2151  
  2152  func ExtTextOut(hdc HDC, x int32, y int32, options UINT, lprect /*const*/ *RECT, lpString string, c UINT, lpDx /*const*/ *int32) bool {
  2153  	lpStringStr := unicode16FromString(lpString)
  2154  	ret1 := syscall9(extTextOut, 8,
  2155  		uintptr(hdc),
  2156  		uintptr(x),
  2157  		uintptr(y),
  2158  		uintptr(options),
  2159  		uintptr(unsafe.Pointer(lprect)),
  2160  		uintptr(unsafe.Pointer(&lpStringStr[0])),
  2161  		uintptr(c),
  2162  		uintptr(unsafe.Pointer(lpDx)),
  2163  		0)
  2164  	return ret1 != 0
  2165  }
  2166  
  2167  func FONTOBJ_cGetAllGlyphHandles(pfo *FONTOBJ, phg *HGLYPH) ULONG {
  2168  	ret1 := syscall3(fONTOBJ_cGetAllGlyphHandles, 2,
  2169  		uintptr(unsafe.Pointer(pfo)),
  2170  		uintptr(unsafe.Pointer(phg)),
  2171  		0)
  2172  	return ULONG(ret1)
  2173  }
  2174  
  2175  func FONTOBJ_cGetGlyphs(pfo *FONTOBJ, iMode ULONG, cGlyph ULONG, phg *HGLYPH, ppvGlyph *PVOID) ULONG {
  2176  	ret1 := syscall6(fONTOBJ_cGetGlyphs, 5,
  2177  		uintptr(unsafe.Pointer(pfo)),
  2178  		uintptr(iMode),
  2179  		uintptr(cGlyph),
  2180  		uintptr(unsafe.Pointer(phg)),
  2181  		uintptr(unsafe.Pointer(ppvGlyph)),
  2182  		0)
  2183  	return ULONG(ret1)
  2184  }
  2185  
  2186  func FONTOBJ_pQueryGlyphAttrs(pfo *FONTOBJ, iMode ULONG) PFD_GLYPHATTR {
  2187  	ret1 := syscall3(fONTOBJ_pQueryGlyphAttrs, 2,
  2188  		uintptr(unsafe.Pointer(pfo)),
  2189  		uintptr(iMode),
  2190  		0)
  2191  	return (PFD_GLYPHATTR)(unsafe.Pointer(ret1))
  2192  }
  2193  
  2194  func FONTOBJ_pvTrueTypeFontFile(pfo *FONTOBJ, pcjFile *ULONG) uintptr {
  2195  	ret1 := syscall3(fONTOBJ_pvTrueTypeFontFile, 2,
  2196  		uintptr(unsafe.Pointer(pfo)),
  2197  		uintptr(unsafe.Pointer(pcjFile)),
  2198  		0)
  2199  	return (uintptr)(unsafe.Pointer(ret1))
  2200  }
  2201  
  2202  func FONTOBJ_vGetInfo(pfo *FONTOBJ, cjSize ULONG, pfi *FONTINFO) {
  2203  	syscall3(fONTOBJ_vGetInfo, 3,
  2204  		uintptr(unsafe.Pointer(pfo)),
  2205  		uintptr(cjSize),
  2206  		uintptr(unsafe.Pointer(pfi)))
  2207  }
  2208  
  2209  func FillPath(hdc HDC) bool {
  2210  	ret1 := syscall3(fillPath, 1,
  2211  		uintptr(hdc),
  2212  		0,
  2213  		0)
  2214  	return ret1 != 0
  2215  }
  2216  
  2217  func FillRgn(hdc HDC, hrgn HRGN, hbr HBRUSH) bool {
  2218  	ret1 := syscall3(fillRgn, 3,
  2219  		uintptr(hdc),
  2220  		uintptr(hrgn),
  2221  		uintptr(hbr))
  2222  	return ret1 != 0
  2223  }
  2224  
  2225  func FixBrushOrgEx(hdc HDC, x int32, y int32, ptl *POINT) bool {
  2226  	ret1 := syscall6(fixBrushOrgEx, 4,
  2227  		uintptr(hdc),
  2228  		uintptr(x),
  2229  		uintptr(y),
  2230  		uintptr(unsafe.Pointer(ptl)),
  2231  		0,
  2232  		0)
  2233  	return ret1 != 0
  2234  }
  2235  
  2236  func FlattenPath(hdc HDC) bool {
  2237  	ret1 := syscall3(flattenPath, 1,
  2238  		uintptr(hdc),
  2239  		0,
  2240  		0)
  2241  	return ret1 != 0
  2242  }
  2243  
  2244  func FloodFill(hdc HDC, x int32, y int32, color COLORREF) bool {
  2245  	ret1 := syscall6(floodFill, 4,
  2246  		uintptr(hdc),
  2247  		uintptr(x),
  2248  		uintptr(y),
  2249  		uintptr(color),
  2250  		0,
  2251  		0)
  2252  	return ret1 != 0
  2253  }
  2254  
  2255  func FrameRgn(hdc HDC, hrgn HRGN, hbr HBRUSH, w int32, h int32) bool {
  2256  	ret1 := syscall6(frameRgn, 5,
  2257  		uintptr(hdc),
  2258  		uintptr(hrgn),
  2259  		uintptr(hbr),
  2260  		uintptr(w),
  2261  		uintptr(h),
  2262  		0)
  2263  	return ret1 != 0
  2264  }
  2265  
  2266  func GdiAlphaBlend(hdcDest HDC, xoriginDest int32, yoriginDest int32, wDest int32, hDest int32, hdcSrc HDC, xoriginSrc int32, yoriginSrc int32, wSrc int32, hSrc int32, ftn BLENDFUNCTION) bool {
  2267  	ret1 := syscall12(gdiAlphaBlend, 11,
  2268  		uintptr(hdcDest),
  2269  		uintptr(xoriginDest),
  2270  		uintptr(yoriginDest),
  2271  		uintptr(wDest),
  2272  		uintptr(hDest),
  2273  		uintptr(hdcSrc),
  2274  		uintptr(xoriginSrc),
  2275  		uintptr(yoriginSrc),
  2276  		uintptr(wSrc),
  2277  		uintptr(hSrc),
  2278  		getUintptrFromBLENDFUNCTION(ftn),
  2279  		0)
  2280  	return ret1 != 0
  2281  }
  2282  
  2283  func GdiComment(hdc HDC, nSize UINT, lpData /*const*/ *byte) bool {
  2284  	ret1 := syscall3(gdiComment, 3,
  2285  		uintptr(hdc),
  2286  		uintptr(nSize),
  2287  		uintptr(unsafe.Pointer(lpData)))
  2288  	return ret1 != 0
  2289  }
  2290  
  2291  func GdiFlush() bool {
  2292  	ret1 := syscall3(gdiFlush, 0,
  2293  		0,
  2294  		0,
  2295  		0)
  2296  	return ret1 != 0
  2297  }
  2298  
  2299  func GdiGetBatchLimit() DWORD {
  2300  	ret1 := syscall3(gdiGetBatchLimit, 0,
  2301  		0,
  2302  		0,
  2303  		0)
  2304  	return DWORD(ret1)
  2305  }
  2306  
  2307  func GdiGradientFill(hdc HDC, pVertex PTRIVERTEX, nVertex ULONG, pMesh uintptr, nMesh ULONG, ulMode ULONG) bool {
  2308  	ret1 := syscall6(gdiGradientFill, 6,
  2309  		uintptr(hdc),
  2310  		uintptr(unsafe.Pointer(pVertex)),
  2311  		uintptr(nVertex),
  2312  		pMesh,
  2313  		uintptr(nMesh),
  2314  		uintptr(ulMode))
  2315  	return ret1 != 0
  2316  }
  2317  
  2318  func GdiSetBatchLimit(dw DWORD) DWORD {
  2319  	ret1 := syscall3(gdiSetBatchLimit, 1,
  2320  		uintptr(dw),
  2321  		0,
  2322  		0)
  2323  	return DWORD(ret1)
  2324  }
  2325  
  2326  func GdiTransparentBlt(hdcDest HDC, xoriginDest int32, yoriginDest int32, wDest int32, hDest int32, hdcSrc HDC, xoriginSrc int32, yoriginSrc int32, wSrc int32, hSrc int32, crTransparent UINT) bool {
  2327  	ret1 := syscall12(gdiTransparentBlt, 11,
  2328  		uintptr(hdcDest),
  2329  		uintptr(xoriginDest),
  2330  		uintptr(yoriginDest),
  2331  		uintptr(wDest),
  2332  		uintptr(hDest),
  2333  		uintptr(hdcSrc),
  2334  		uintptr(xoriginSrc),
  2335  		uintptr(yoriginSrc),
  2336  		uintptr(wSrc),
  2337  		uintptr(hSrc),
  2338  		uintptr(crTransparent),
  2339  		0)
  2340  	return ret1 != 0
  2341  }
  2342  
  2343  func GetArcDirection(hdc HDC) int32 {
  2344  	ret1 := syscall3(getArcDirection, 1,
  2345  		uintptr(hdc),
  2346  		0,
  2347  		0)
  2348  	return int32(ret1)
  2349  }
  2350  
  2351  func GetAspectRatioFilterEx(hdc HDC, lpsize *SIZE) bool {
  2352  	ret1 := syscall3(getAspectRatioFilterEx, 2,
  2353  		uintptr(hdc),
  2354  		uintptr(unsafe.Pointer(lpsize)),
  2355  		0)
  2356  	return ret1 != 0
  2357  }
  2358  
  2359  func GetBitmapBits(hbit HBITMAP, cb LONG, lpvBits LPVOID) LONG {
  2360  	ret1 := syscall3(getBitmapBits, 3,
  2361  		uintptr(hbit),
  2362  		uintptr(cb),
  2363  		uintptr(unsafe.Pointer(lpvBits)))
  2364  	return LONG(ret1)
  2365  }
  2366  
  2367  func GetBitmapDimensionEx(hbit HBITMAP, lpsize *SIZE) bool {
  2368  	ret1 := syscall3(getBitmapDimensionEx, 2,
  2369  		uintptr(hbit),
  2370  		uintptr(unsafe.Pointer(lpsize)),
  2371  		0)
  2372  	return ret1 != 0
  2373  }
  2374  
  2375  func GetBkColor(hdc HDC) COLORREF {
  2376  	ret1 := syscall3(getBkColor, 1,
  2377  		uintptr(hdc),
  2378  		0,
  2379  		0)
  2380  	return COLORREF(ret1)
  2381  }
  2382  
  2383  func GetBkMode(hdc HDC) int32 {
  2384  	ret1 := syscall3(getBkMode, 1,
  2385  		uintptr(hdc),
  2386  		0,
  2387  		0)
  2388  	return int32(ret1)
  2389  }
  2390  
  2391  func GetBoundsRect(hdc HDC, lprect *RECT, flags UINT) UINT {
  2392  	ret1 := syscall3(getBoundsRect, 3,
  2393  		uintptr(hdc),
  2394  		uintptr(unsafe.Pointer(lprect)),
  2395  		uintptr(flags))
  2396  	return UINT(ret1)
  2397  }
  2398  
  2399  func GetBrushOrgEx(hdc HDC, lppt *POINT) bool {
  2400  	ret1 := syscall3(getBrushOrgEx, 2,
  2401  		uintptr(hdc),
  2402  		uintptr(unsafe.Pointer(lppt)),
  2403  		0)
  2404  	return ret1 != 0
  2405  }
  2406  
  2407  func GetCharABCWidthsFloat(hdc HDC, iFirst UINT, iLast UINT, lpABC *ABCFLOAT) bool {
  2408  	ret1 := syscall6(getCharABCWidthsFloat, 4,
  2409  		uintptr(hdc),
  2410  		uintptr(iFirst),
  2411  		uintptr(iLast),
  2412  		uintptr(unsafe.Pointer(lpABC)),
  2413  		0,
  2414  		0)
  2415  	return ret1 != 0
  2416  }
  2417  
  2418  func GetCharABCWidthsI(hdc HDC, giFirst UINT, cgi UINT, pgi *uint16, pabc *ABC) bool {
  2419  	ret1 := syscall6(getCharABCWidthsI, 5,
  2420  		uintptr(hdc),
  2421  		uintptr(giFirst),
  2422  		uintptr(cgi),
  2423  		uintptr(unsafe.Pointer(pgi)),
  2424  		uintptr(unsafe.Pointer(pabc)),
  2425  		0)
  2426  	return ret1 != 0
  2427  }
  2428  
  2429  func GetCharABCWidths(hdc HDC, wFirst UINT, wLast UINT, lpABC *ABC) bool {
  2430  	ret1 := syscall6(getCharABCWidths, 4,
  2431  		uintptr(hdc),
  2432  		uintptr(wFirst),
  2433  		uintptr(wLast),
  2434  		uintptr(unsafe.Pointer(lpABC)),
  2435  		0,
  2436  		0)
  2437  	return ret1 != 0
  2438  }
  2439  
  2440  func GetCharWidth32(hdc HDC, iFirst UINT, iLast UINT, lpBuffer *int32) bool {
  2441  	ret1 := syscall6(getCharWidth32, 4,
  2442  		uintptr(hdc),
  2443  		uintptr(iFirst),
  2444  		uintptr(iLast),
  2445  		uintptr(unsafe.Pointer(lpBuffer)),
  2446  		0,
  2447  		0)
  2448  	return ret1 != 0
  2449  }
  2450  
  2451  func GetCharWidthFloat(hdc HDC, iFirst UINT, iLast UINT, lpBuffer *float32) bool {
  2452  	ret1 := syscall6(getCharWidthFloat, 4,
  2453  		uintptr(hdc),
  2454  		uintptr(iFirst),
  2455  		uintptr(iLast),
  2456  		uintptr(unsafe.Pointer(lpBuffer)),
  2457  		0,
  2458  		0)
  2459  	return ret1 != 0
  2460  }
  2461  
  2462  func GetCharWidthI(hdc HDC, giFirst UINT, cgi UINT, pgi *uint16, piWidths *int32) bool {
  2463  	ret1 := syscall6(getCharWidthI, 5,
  2464  		uintptr(hdc),
  2465  		uintptr(giFirst),
  2466  		uintptr(cgi),
  2467  		uintptr(unsafe.Pointer(pgi)),
  2468  		uintptr(unsafe.Pointer(piWidths)),
  2469  		0)
  2470  	return ret1 != 0
  2471  }
  2472  
  2473  func GetCharWidth(hdc HDC, iFirst UINT, iLast UINT, lpBuffer *int32) bool {
  2474  	ret1 := syscall6(getCharWidth, 4,
  2475  		uintptr(hdc),
  2476  		uintptr(iFirst),
  2477  		uintptr(iLast),
  2478  		uintptr(unsafe.Pointer(lpBuffer)),
  2479  		0,
  2480  		0)
  2481  	return ret1 != 0
  2482  }
  2483  
  2484  func GetCharacterPlacement(hdc HDC, lpString string, nCount int32, nMexExtent int32, lpResults LPGCP_RESULTS, dwFlags DWORD) DWORD {
  2485  	lpStringStr := unicode16FromString(lpString)
  2486  	ret1 := syscall6(getCharacterPlacement, 6,
  2487  		uintptr(hdc),
  2488  		uintptr(unsafe.Pointer(&lpStringStr[0])),
  2489  		uintptr(nCount),
  2490  		uintptr(nMexExtent),
  2491  		uintptr(unsafe.Pointer(lpResults)),
  2492  		uintptr(dwFlags))
  2493  	return DWORD(ret1)
  2494  }
  2495  
  2496  func GetClipBox(hdc HDC, lprect *RECT) int32 {
  2497  	ret1 := syscall3(getClipBox, 2,
  2498  		uintptr(hdc),
  2499  		uintptr(unsafe.Pointer(lprect)),
  2500  		0)
  2501  	return int32(ret1)
  2502  }
  2503  
  2504  func GetClipRgn(hdc HDC, hrgn HRGN) int32 {
  2505  	ret1 := syscall3(getClipRgn, 2,
  2506  		uintptr(hdc),
  2507  		uintptr(hrgn),
  2508  		0)
  2509  	return int32(ret1)
  2510  }
  2511  
  2512  func GetColorAdjustment(hdc HDC, lpca *COLORADJUSTMENT) bool {
  2513  	ret1 := syscall3(getColorAdjustment, 2,
  2514  		uintptr(hdc),
  2515  		uintptr(unsafe.Pointer(lpca)),
  2516  		0)
  2517  	return ret1 != 0
  2518  }
  2519  
  2520  func GetColorSpace(hdc HDC) HCOLORSPACE {
  2521  	ret1 := syscall3(getColorSpace, 1,
  2522  		uintptr(hdc),
  2523  		0,
  2524  		0)
  2525  	return HCOLORSPACE(ret1)
  2526  }
  2527  
  2528  func GetCurrentObject(hdc HDC, aType UINT) HGDIOBJ {
  2529  	ret1 := syscall3(getCurrentObject, 2,
  2530  		uintptr(hdc),
  2531  		uintptr(aType),
  2532  		0)
  2533  	return HGDIOBJ(ret1)
  2534  }
  2535  
  2536  func GetCurrentPositionEx(hdc HDC, lppt *POINT) bool {
  2537  	ret1 := syscall3(getCurrentPositionEx, 2,
  2538  		uintptr(hdc),
  2539  		uintptr(unsafe.Pointer(lppt)),
  2540  		0)
  2541  	return ret1 != 0
  2542  }
  2543  
  2544  func GetDCBrushColor(hdc HDC) COLORREF {
  2545  	ret1 := syscall3(getDCBrushColor, 1,
  2546  		uintptr(hdc),
  2547  		0,
  2548  		0)
  2549  	return COLORREF(ret1)
  2550  }
  2551  
  2552  func GetDCOrgEx(hdc HDC, lppt *POINT) bool {
  2553  	ret1 := syscall3(getDCOrgEx, 2,
  2554  		uintptr(hdc),
  2555  		uintptr(unsafe.Pointer(lppt)),
  2556  		0)
  2557  	return ret1 != 0
  2558  }
  2559  
  2560  func GetDCPenColor(hdc HDC) COLORREF {
  2561  	ret1 := syscall3(getDCPenColor, 1,
  2562  		uintptr(hdc),
  2563  		0,
  2564  		0)
  2565  	return COLORREF(ret1)
  2566  }
  2567  
  2568  func GetDIBColorTable(hdc HDC, iStart UINT, cEntries UINT, prgbq *RGBQUAD) UINT {
  2569  	ret1 := syscall6(getDIBColorTable, 4,
  2570  		uintptr(hdc),
  2571  		uintptr(iStart),
  2572  		uintptr(cEntries),
  2573  		uintptr(unsafe.Pointer(prgbq)),
  2574  		0,
  2575  		0)
  2576  	return UINT(ret1)
  2577  }
  2578  
  2579  func GetDIBits(hdc HDC, hbm HBITMAP, start UINT, cLines UINT, lpvBits LPVOID, lpbmi *BITMAPINFO, usage UINT) int32 {
  2580  	ret1 := syscall9(getDIBits, 7,
  2581  		uintptr(hdc),
  2582  		uintptr(hbm),
  2583  		uintptr(start),
  2584  		uintptr(cLines),
  2585  		uintptr(unsafe.Pointer(lpvBits)),
  2586  		uintptr(unsafe.Pointer(lpbmi)),
  2587  		uintptr(usage),
  2588  		0,
  2589  		0)
  2590  	return int32(ret1)
  2591  }
  2592  
  2593  func GetDeviceCaps(hdc HDC, index int32) int32 {
  2594  	ret1 := syscall3(getDeviceCaps, 2,
  2595  		uintptr(hdc),
  2596  		uintptr(index),
  2597  		0)
  2598  	return int32(ret1)
  2599  }
  2600  
  2601  func GetDeviceGammaRamp(hdc HDC, lpRamp LPVOID) bool {
  2602  	ret1 := syscall3(getDeviceGammaRamp, 2,
  2603  		uintptr(hdc),
  2604  		uintptr(unsafe.Pointer(lpRamp)),
  2605  		0)
  2606  	return ret1 != 0
  2607  }
  2608  
  2609  func GetEnhMetaFileBits(hEMF HENHMETAFILE, nSize UINT, lpData *byte) UINT {
  2610  	ret1 := syscall3(getEnhMetaFileBits, 3,
  2611  		uintptr(hEMF),
  2612  		uintptr(nSize),
  2613  		uintptr(unsafe.Pointer(lpData)))
  2614  	return UINT(ret1)
  2615  }
  2616  
  2617  func GetEnhMetaFileDescription(hemf HENHMETAFILE, cchBuffer UINT, lpDescription LPWSTR) UINT {
  2618  	ret1 := syscall3(getEnhMetaFileDescription, 3,
  2619  		uintptr(hemf),
  2620  		uintptr(cchBuffer),
  2621  		uintptr(unsafe.Pointer(lpDescription)))
  2622  	return UINT(ret1)
  2623  }
  2624  
  2625  func GetEnhMetaFileHeader(hemf HENHMETAFILE, nSize UINT, lpEnhMetaHeader *ENHMETAHEADER) UINT {
  2626  	ret1 := syscall3(getEnhMetaFileHeader, 3,
  2627  		uintptr(hemf),
  2628  		uintptr(nSize),
  2629  		uintptr(unsafe.Pointer(lpEnhMetaHeader)))
  2630  	return UINT(ret1)
  2631  }
  2632  
  2633  func GetEnhMetaFilePaletteEntries(hemf HENHMETAFILE, nNumEntries UINT, lpPaletteEntries *PALETTEENTRY) UINT {
  2634  	ret1 := syscall3(getEnhMetaFilePaletteEntries, 3,
  2635  		uintptr(hemf),
  2636  		uintptr(nNumEntries),
  2637  		uintptr(unsafe.Pointer(lpPaletteEntries)))
  2638  	return UINT(ret1)
  2639  }
  2640  
  2641  func GetEnhMetaFilePixelFormat(hemf HENHMETAFILE, cbBuffer UINT, ppfd *PIXELFORMATDESCRIPTOR) UINT {
  2642  	ret1 := syscall3(getEnhMetaFilePixelFormat, 3,
  2643  		uintptr(hemf),
  2644  		uintptr(cbBuffer),
  2645  		uintptr(unsafe.Pointer(ppfd)))
  2646  	return UINT(ret1)
  2647  }
  2648  
  2649  func GetEnhMetaFile(lpName string) HENHMETAFILE {
  2650  	lpNameStr := unicode16FromString(lpName)
  2651  	ret1 := syscall3(getEnhMetaFile, 1,
  2652  		uintptr(unsafe.Pointer(&lpNameStr[0])),
  2653  		0,
  2654  		0)
  2655  	return HENHMETAFILE(ret1)
  2656  }
  2657  
  2658  func GetFontData(hdc HDC, dwTable DWORD, dwOffset DWORD, pvBuffer uintptr, cjBuffer DWORD) DWORD {
  2659  	ret1 := syscall6(getFontData, 5,
  2660  		uintptr(hdc),
  2661  		uintptr(dwTable),
  2662  		uintptr(dwOffset),
  2663  		pvBuffer,
  2664  		uintptr(cjBuffer),
  2665  		0)
  2666  	return DWORD(ret1)
  2667  }
  2668  
  2669  func GetFontLanguageInfo(hdc HDC) DWORD {
  2670  	ret1 := syscall3(getFontLanguageInfo, 1,
  2671  		uintptr(hdc),
  2672  		0,
  2673  		0)
  2674  	return DWORD(ret1)
  2675  }
  2676  
  2677  func GetFontUnicodeRanges(hdc HDC, lpgs *GLYPHSET) DWORD {
  2678  	ret1 := syscall3(getFontUnicodeRanges, 2,
  2679  		uintptr(hdc),
  2680  		uintptr(unsafe.Pointer(lpgs)),
  2681  		0)
  2682  	return DWORD(ret1)
  2683  }
  2684  
  2685  func GetGlyphIndices(hdc HDC, lpstr string, c int32, pgi *uint16, fl DWORD) DWORD {
  2686  	lpstrStr := unicode16FromString(lpstr)
  2687  	ret1 := syscall6(getGlyphIndices, 5,
  2688  		uintptr(hdc),
  2689  		uintptr(unsafe.Pointer(&lpstrStr[0])),
  2690  		uintptr(c),
  2691  		uintptr(unsafe.Pointer(pgi)),
  2692  		uintptr(fl),
  2693  		0)
  2694  	return DWORD(ret1)
  2695  }
  2696  
  2697  func GetGlyphOutline(hdc HDC, uChar UINT, fuFormat UINT, lpgm *GLYPHMETRICS, cjBuffer DWORD, pvBuffer LPVOID, lpmat2 /*const*/ *MAT2) DWORD {
  2698  	ret1 := syscall9(getGlyphOutline, 7,
  2699  		uintptr(hdc),
  2700  		uintptr(uChar),
  2701  		uintptr(fuFormat),
  2702  		uintptr(unsafe.Pointer(lpgm)),
  2703  		uintptr(cjBuffer),
  2704  		uintptr(unsafe.Pointer(pvBuffer)),
  2705  		uintptr(unsafe.Pointer(lpmat2)),
  2706  		0,
  2707  		0)
  2708  	return DWORD(ret1)
  2709  }
  2710  
  2711  func GetGraphicsMode(hdc HDC) int32 {
  2712  	ret1 := syscall3(getGraphicsMode, 1,
  2713  		uintptr(hdc),
  2714  		0,
  2715  		0)
  2716  	return int32(ret1)
  2717  }
  2718  
  2719  func GetICMProfile(hdc HDC, pBufSize *uint32, pszFilename LPWSTR) bool {
  2720  	ret1 := syscall3(getICMProfile, 3,
  2721  		uintptr(hdc),
  2722  		uintptr(unsafe.Pointer(pBufSize)),
  2723  		uintptr(unsafe.Pointer(pszFilename)))
  2724  	return ret1 != 0
  2725  }
  2726  
  2727  func GetKerningPairs(hdc HDC, nPairs DWORD, lpKernPair *KERNINGPAIR) DWORD {
  2728  	ret1 := syscall3(getKerningPairs, 3,
  2729  		uintptr(hdc),
  2730  		uintptr(nPairs),
  2731  		uintptr(unsafe.Pointer(lpKernPair)))
  2732  	return DWORD(ret1)
  2733  }
  2734  
  2735  func GetLayout(hdc HDC) DWORD {
  2736  	ret1 := syscall3(getLayout, 1,
  2737  		uintptr(hdc),
  2738  		0,
  2739  		0)
  2740  	return DWORD(ret1)
  2741  }
  2742  
  2743  func GetLogColorSpace(hColorSpace HCOLORSPACE, lpBuffer LPLOGCOLORSPACE, nSize DWORD) bool {
  2744  	ret1 := syscall3(getLogColorSpace, 3,
  2745  		uintptr(hColorSpace),
  2746  		uintptr(unsafe.Pointer(lpBuffer)),
  2747  		uintptr(nSize))
  2748  	return ret1 != 0
  2749  }
  2750  
  2751  func GetMapMode(hdc HDC) int32 {
  2752  	ret1 := syscall3(getMapMode, 1,
  2753  		uintptr(hdc),
  2754  		0,
  2755  		0)
  2756  	return int32(ret1)
  2757  }
  2758  
  2759  func GetMetaFileBitsEx(hMF HMETAFILE, cbBuffer UINT, lpData LPVOID) UINT {
  2760  	ret1 := syscall3(getMetaFileBitsEx, 3,
  2761  		uintptr(hMF),
  2762  		uintptr(cbBuffer),
  2763  		uintptr(unsafe.Pointer(lpData)))
  2764  	return UINT(ret1)
  2765  }
  2766  
  2767  func GetMetaFile(lpName string) HMETAFILE {
  2768  	lpNameStr := unicode16FromString(lpName)
  2769  	ret1 := syscall3(getMetaFile, 1,
  2770  		uintptr(unsafe.Pointer(&lpNameStr[0])),
  2771  		0,
  2772  		0)
  2773  	return HMETAFILE(ret1)
  2774  }
  2775  
  2776  func GetMetaRgn(hdc HDC, hrgn HRGN) int32 {
  2777  	ret1 := syscall3(getMetaRgn, 2,
  2778  		uintptr(hdc),
  2779  		uintptr(hrgn),
  2780  		0)
  2781  	return int32(ret1)
  2782  }
  2783  
  2784  func GetMiterLimit(hdc HDC, plimit *float32) bool {
  2785  	ret1 := syscall3(getMiterLimit, 2,
  2786  		uintptr(hdc),
  2787  		uintptr(unsafe.Pointer(plimit)),
  2788  		0)
  2789  	return ret1 != 0
  2790  }
  2791  
  2792  func GetNearestColor(hdc HDC, color COLORREF) COLORREF {
  2793  	ret1 := syscall3(getNearestColor, 2,
  2794  		uintptr(hdc),
  2795  		uintptr(color),
  2796  		0)
  2797  	return COLORREF(ret1)
  2798  }
  2799  
  2800  func GetNearestPaletteIndex(h HPALETTE, color COLORREF) UINT {
  2801  	ret1 := syscall3(getNearestPaletteIndex, 2,
  2802  		uintptr(h),
  2803  		uintptr(color),
  2804  		0)
  2805  	return UINT(ret1)
  2806  }
  2807  
  2808  func GetObjectType(h HGDIOBJ) DWORD {
  2809  	ret1 := syscall3(getObjectType, 1,
  2810  		uintptr(h),
  2811  		0,
  2812  		0)
  2813  	return DWORD(ret1)
  2814  }
  2815  
  2816  func GetObject(h HANDLE, c int32, pv LPVOID) int32 {
  2817  	ret1 := syscall3(getObject, 3,
  2818  		uintptr(h),
  2819  		uintptr(c),
  2820  		uintptr(unsafe.Pointer(pv)))
  2821  	return int32(ret1)
  2822  }
  2823  
  2824  func GetOutlineTextMetrics(hdc HDC, cjCopy UINT, potm LPOUTLINETEXTMETRIC) UINT {
  2825  	ret1 := syscall3(getOutlineTextMetrics, 3,
  2826  		uintptr(hdc),
  2827  		uintptr(cjCopy),
  2828  		uintptr(unsafe.Pointer(potm)))
  2829  	return UINT(ret1)
  2830  }
  2831  
  2832  func GetPaletteEntries(hpal HPALETTE, iStart UINT, cEntries UINT, pPalEntries *PALETTEENTRY) UINT {
  2833  	ret1 := syscall6(getPaletteEntries, 4,
  2834  		uintptr(hpal),
  2835  		uintptr(iStart),
  2836  		uintptr(cEntries),
  2837  		uintptr(unsafe.Pointer(pPalEntries)),
  2838  		0,
  2839  		0)
  2840  	return UINT(ret1)
  2841  }
  2842  
  2843  func GetPath(hdc HDC, apt *POINT, aj *byte, cpt int32) int32 {
  2844  	ret1 := syscall6(getPath, 4,
  2845  		uintptr(hdc),
  2846  		uintptr(unsafe.Pointer(apt)),
  2847  		uintptr(unsafe.Pointer(aj)),
  2848  		uintptr(cpt),
  2849  		0,
  2850  		0)
  2851  	return int32(ret1)
  2852  }
  2853  
  2854  func GetPixel(hdc HDC, x int32, y int32) COLORREF {
  2855  	ret1 := syscall3(getPixel, 3,
  2856  		uintptr(hdc),
  2857  		uintptr(x),
  2858  		uintptr(y))
  2859  	return COLORREF(ret1)
  2860  }
  2861  
  2862  func GetPixelFormat(hdc HDC) int32 {
  2863  	ret1 := syscall3(getPixelFormat, 1,
  2864  		uintptr(hdc),
  2865  		0,
  2866  		0)
  2867  	return int32(ret1)
  2868  }
  2869  
  2870  func GetPolyFillMode(hdc HDC) int32 {
  2871  	ret1 := syscall3(getPolyFillMode, 1,
  2872  		uintptr(hdc),
  2873  		0,
  2874  		0)
  2875  	return int32(ret1)
  2876  }
  2877  
  2878  func GetROP2(hdc HDC) int32 {
  2879  	ret1 := syscall3(getROP2, 1,
  2880  		uintptr(hdc),
  2881  		0,
  2882  		0)
  2883  	return int32(ret1)
  2884  }
  2885  
  2886  func GetRandomRgn(hdc HDC, hrgn HRGN, i INT) int32 {
  2887  	ret1 := syscall3(getRandomRgn, 3,
  2888  		uintptr(hdc),
  2889  		uintptr(hrgn),
  2890  		uintptr(i))
  2891  	return int32(ret1)
  2892  }
  2893  
  2894  func GetRasterizerCaps(lpraststat LPRASTERIZER_STATUS, cjBytes UINT) bool {
  2895  	ret1 := syscall3(getRasterizerCaps, 2,
  2896  		uintptr(unsafe.Pointer(lpraststat)),
  2897  		uintptr(cjBytes),
  2898  		0)
  2899  	return ret1 != 0
  2900  }
  2901  
  2902  func GetRegionData(hrgn HRGN, nCount DWORD, lpRgnData *RGNDATA) DWORD {
  2903  	ret1 := syscall3(getRegionData, 3,
  2904  		uintptr(hrgn),
  2905  		uintptr(nCount),
  2906  		uintptr(unsafe.Pointer(lpRgnData)))
  2907  	return DWORD(ret1)
  2908  }
  2909  
  2910  func GetRgnBox(hrgn HRGN, lprc *RECT) int32 {
  2911  	ret1 := syscall3(getRgnBox, 2,
  2912  		uintptr(hrgn),
  2913  		uintptr(unsafe.Pointer(lprc)),
  2914  		0)
  2915  	return int32(ret1)
  2916  }
  2917  
  2918  func GetStockObject(i int32) HGDIOBJ {
  2919  	ret1 := syscall3(getStockObject, 1,
  2920  		uintptr(i),
  2921  		0,
  2922  		0)
  2923  	return HGDIOBJ(ret1)
  2924  }
  2925  
  2926  func GetStretchBltMode(hdc HDC) int32 {
  2927  	ret1 := syscall3(getStretchBltMode, 1,
  2928  		uintptr(hdc),
  2929  		0,
  2930  		0)
  2931  	return int32(ret1)
  2932  }
  2933  
  2934  func GetSystemPaletteEntries(hdc HDC, iStart UINT, cEntries UINT, pPalEntries *PALETTEENTRY) UINT {
  2935  	ret1 := syscall6(getSystemPaletteEntries, 4,
  2936  		uintptr(hdc),
  2937  		uintptr(iStart),
  2938  		uintptr(cEntries),
  2939  		uintptr(unsafe.Pointer(pPalEntries)),
  2940  		0,
  2941  		0)
  2942  	return UINT(ret1)
  2943  }
  2944  
  2945  func GetSystemPaletteUse(hdc HDC) UINT {
  2946  	ret1 := syscall3(getSystemPaletteUse, 1,
  2947  		uintptr(hdc),
  2948  		0,
  2949  		0)
  2950  	return UINT(ret1)
  2951  }
  2952  
  2953  func GetTextAlign(hdc HDC) UINT {
  2954  	ret1 := syscall3(getTextAlign, 1,
  2955  		uintptr(hdc),
  2956  		0,
  2957  		0)
  2958  	return UINT(ret1)
  2959  }
  2960  
  2961  func GetTextCharacterExtra(hdc HDC) int32 {
  2962  	ret1 := syscall3(getTextCharacterExtra, 1,
  2963  		uintptr(hdc),
  2964  		0,
  2965  		0)
  2966  	return int32(ret1)
  2967  }
  2968  
  2969  func GetTextCharset(hdc HDC) int32 {
  2970  	ret1 := syscall3(getTextCharset, 1,
  2971  		uintptr(hdc),
  2972  		0,
  2973  		0)
  2974  	return int32(ret1)
  2975  }
  2976  
  2977  func GetTextCharsetInfo(hdc HDC, lpSig *FONTSIGNATURE, dwFlags DWORD) int32 {
  2978  	ret1 := syscall3(getTextCharsetInfo, 3,
  2979  		uintptr(hdc),
  2980  		uintptr(unsafe.Pointer(lpSig)),
  2981  		uintptr(dwFlags))
  2982  	return int32(ret1)
  2983  }
  2984  
  2985  func GetTextColor(hdc HDC) COLORREF {
  2986  	ret1 := syscall3(getTextColor, 1,
  2987  		uintptr(hdc),
  2988  		0,
  2989  		0)
  2990  	return COLORREF(ret1)
  2991  }
  2992  
  2993  func GetTextExtentExPointI(hdc HDC, lpwszString *uint16, cwchString int32, nMaxExtent int32, lpnFit *int32, lpnDx *int32, lpSize *SIZE) bool {
  2994  	ret1 := syscall9(getTextExtentExPointI, 7,
  2995  		uintptr(hdc),
  2996  		uintptr(unsafe.Pointer(lpwszString)),
  2997  		uintptr(cwchString),
  2998  		uintptr(nMaxExtent),
  2999  		uintptr(unsafe.Pointer(lpnFit)),
  3000  		uintptr(unsafe.Pointer(lpnDx)),
  3001  		uintptr(unsafe.Pointer(lpSize)),
  3002  		0,
  3003  		0)
  3004  	return ret1 != 0
  3005  }
  3006  
  3007  func GetTextExtentExPoint(hdc HDC, lpszString string, cchString int32, nMaxExtent int32, lpnFit *int32, lpnDx *int32, lpSize *SIZE) bool {
  3008  	lpszStringStr := unicode16FromString(lpszString)
  3009  	ret1 := syscall9(getTextExtentExPoint, 7,
  3010  		uintptr(hdc),
  3011  		uintptr(unsafe.Pointer(&lpszStringStr[0])),
  3012  		uintptr(cchString),
  3013  		uintptr(nMaxExtent),
  3014  		uintptr(unsafe.Pointer(lpnFit)),
  3015  		uintptr(unsafe.Pointer(lpnDx)),
  3016  		uintptr(unsafe.Pointer(lpSize)),
  3017  		0,
  3018  		0)
  3019  	return ret1 != 0
  3020  }
  3021  
  3022  func GetTextExtentPoint32(hdc HDC, lpString string, c int32, psizl *SIZE) bool {
  3023  	lpStringStr := unicode16FromString(lpString)
  3024  	ret1 := syscall6(getTextExtentPoint32, 4,
  3025  		uintptr(hdc),
  3026  		uintptr(unsafe.Pointer(&lpStringStr[0])),
  3027  		uintptr(c),
  3028  		uintptr(unsafe.Pointer(psizl)),
  3029  		0,
  3030  		0)
  3031  	return ret1 != 0
  3032  }
  3033  
  3034  func GetTextExtentPointI(hdc HDC, pgiIn *uint16, cgi int32, psize *SIZE) bool {
  3035  	ret1 := syscall6(getTextExtentPointI, 4,
  3036  		uintptr(hdc),
  3037  		uintptr(unsafe.Pointer(pgiIn)),
  3038  		uintptr(cgi),
  3039  		uintptr(unsafe.Pointer(psize)),
  3040  		0,
  3041  		0)
  3042  	return ret1 != 0
  3043  }
  3044  
  3045  func GetTextExtentPoint(hdc HDC, lpString string, c int32, lpsz *SIZE) bool {
  3046  	lpStringStr := unicode16FromString(lpString)
  3047  	ret1 := syscall6(getTextExtentPoint, 4,
  3048  		uintptr(hdc),
  3049  		uintptr(unsafe.Pointer(&lpStringStr[0])),
  3050  		uintptr(c),
  3051  		uintptr(unsafe.Pointer(lpsz)),
  3052  		0,
  3053  		0)
  3054  	return ret1 != 0
  3055  }
  3056  
  3057  func GetTextFace(hdc HDC, c int32, lpName LPWSTR) int32 {
  3058  	ret1 := syscall3(getTextFace, 3,
  3059  		uintptr(hdc),
  3060  		uintptr(c),
  3061  		uintptr(unsafe.Pointer(lpName)))
  3062  	return int32(ret1)
  3063  }
  3064  
  3065  func GetTextMetrics(hdc HDC, lptm LPTEXTMETRIC) bool {
  3066  	ret1 := syscall3(getTextMetrics, 2,
  3067  		uintptr(hdc),
  3068  		uintptr(unsafe.Pointer(lptm)),
  3069  		0)
  3070  	return ret1 != 0
  3071  }
  3072  
  3073  func GetViewportExtEx(hdc HDC, lpsize *SIZE) bool {
  3074  	ret1 := syscall3(getViewportExtEx, 2,
  3075  		uintptr(hdc),
  3076  		uintptr(unsafe.Pointer(lpsize)),
  3077  		0)
  3078  	return ret1 != 0
  3079  }
  3080  
  3081  func GetViewportOrgEx(hdc HDC, lppoint *POINT) bool {
  3082  	ret1 := syscall3(getViewportOrgEx, 2,
  3083  		uintptr(hdc),
  3084  		uintptr(unsafe.Pointer(lppoint)),
  3085  		0)
  3086  	return ret1 != 0
  3087  }
  3088  
  3089  func GetWinMetaFileBits(hemf HENHMETAFILE, cbData16 UINT, pData16 *byte, iMapMode INT, hdcRef HDC) UINT {
  3090  	ret1 := syscall6(getWinMetaFileBits, 5,
  3091  		uintptr(hemf),
  3092  		uintptr(cbData16),
  3093  		uintptr(unsafe.Pointer(pData16)),
  3094  		uintptr(iMapMode),
  3095  		uintptr(hdcRef),
  3096  		0)
  3097  	return UINT(ret1)
  3098  }
  3099  
  3100  func GetWindowExtEx(hdc HDC, lpsize *SIZE) bool {
  3101  	ret1 := syscall3(getWindowExtEx, 2,
  3102  		uintptr(hdc),
  3103  		uintptr(unsafe.Pointer(lpsize)),
  3104  		0)
  3105  	return ret1 != 0
  3106  }
  3107  
  3108  func GetWindowOrgEx(hdc HDC, lppoint *POINT) bool {
  3109  	ret1 := syscall3(getWindowOrgEx, 2,
  3110  		uintptr(hdc),
  3111  		uintptr(unsafe.Pointer(lppoint)),
  3112  		0)
  3113  	return ret1 != 0
  3114  }
  3115  
  3116  func GetWorldTransform(hdc HDC, lpxf *XFORM) bool {
  3117  	ret1 := syscall3(getWorldTransform, 2,
  3118  		uintptr(hdc),
  3119  		uintptr(unsafe.Pointer(lpxf)),
  3120  		0)
  3121  	return ret1 != 0
  3122  }
  3123  
  3124  func HT_Get8BPPFormatPalette(pPaletteEntry *PALETTEENTRY, redGamma USHORT, greenGamma USHORT, blueGamma USHORT) LONG {
  3125  	ret1 := syscall6(hT_Get8BPPFormatPalette, 4,
  3126  		uintptr(unsafe.Pointer(pPaletteEntry)),
  3127  		uintptr(redGamma),
  3128  		uintptr(greenGamma),
  3129  		uintptr(blueGamma),
  3130  		0,
  3131  		0)
  3132  	return LONG(ret1)
  3133  }
  3134  
  3135  func HT_Get8BPPMaskPalette(pPaletteEntry *PALETTEENTRY, use8BPPMaskPal bool, cMYMask BYTE, redGamma USHORT, greenGamma USHORT, blueGamma USHORT) LONG {
  3136  	ret1 := syscall6(hT_Get8BPPMaskPalette, 6,
  3137  		uintptr(unsafe.Pointer(pPaletteEntry)),
  3138  		getUintptrFromBool(use8BPPMaskPal),
  3139  		uintptr(cMYMask),
  3140  		uintptr(redGamma),
  3141  		uintptr(greenGamma),
  3142  		uintptr(blueGamma))
  3143  	return LONG(ret1)
  3144  }
  3145  
  3146  func IntersectClipRect(hdc HDC, left int32, top int32, right int32, bottom int32) int32 {
  3147  	ret1 := syscall6(intersectClipRect, 5,
  3148  		uintptr(hdc),
  3149  		uintptr(left),
  3150  		uintptr(top),
  3151  		uintptr(right),
  3152  		uintptr(bottom),
  3153  		0)
  3154  	return int32(ret1)
  3155  }
  3156  
  3157  func InvertRgn(hdc HDC, hrgn HRGN) bool {
  3158  	ret1 := syscall3(invertRgn, 2,
  3159  		uintptr(hdc),
  3160  		uintptr(hrgn),
  3161  		0)
  3162  	return ret1 != 0
  3163  }
  3164  
  3165  func LPtoDP(hdc HDC, lppt *POINT, c int32) bool {
  3166  	ret1 := syscall3(lPtoDP, 3,
  3167  		uintptr(hdc),
  3168  		uintptr(unsafe.Pointer(lppt)),
  3169  		uintptr(c))
  3170  	return ret1 != 0
  3171  }
  3172  
  3173  func LineDDA(xStart int32, yStart int32, xEnd int32, yEnd int32, lpProc LINEDDAPROC, data LPARAM) bool {
  3174  	lpProcCallback := syscall.NewCallback(lpProc)
  3175  	ret1 := syscall6(lineDDA, 6,
  3176  		uintptr(xStart),
  3177  		uintptr(yStart),
  3178  		uintptr(xEnd),
  3179  		uintptr(yEnd),
  3180  		lpProcCallback,
  3181  		uintptr(data))
  3182  	return ret1 != 0
  3183  }
  3184  
  3185  func LineTo(hdc HDC, x int32, y int32) bool {
  3186  	ret1 := syscall3(lineTo, 3,
  3187  		uintptr(hdc),
  3188  		uintptr(x),
  3189  		uintptr(y))
  3190  	return ret1 != 0
  3191  }
  3192  
  3193  func MaskBlt(hdcDest HDC, xDest int32, yDest int32, width int32, height int32, hdcSrc HDC, xSrc int32, ySrc int32, hbmMask HBITMAP, xMask int32, yMask int32, rop DWORD) bool {
  3194  	ret1 := syscall12(maskBlt, 12,
  3195  		uintptr(hdcDest),
  3196  		uintptr(xDest),
  3197  		uintptr(yDest),
  3198  		uintptr(width),
  3199  		uintptr(height),
  3200  		uintptr(hdcSrc),
  3201  		uintptr(xSrc),
  3202  		uintptr(ySrc),
  3203  		uintptr(hbmMask),
  3204  		uintptr(xMask),
  3205  		uintptr(yMask),
  3206  		uintptr(rop))
  3207  	return ret1 != 0
  3208  }
  3209  
  3210  func ModifyWorldTransform(hdc HDC, lpxf /*const*/ *XFORM, mode DWORD) bool {
  3211  	ret1 := syscall3(modifyWorldTransform, 3,
  3212  		uintptr(hdc),
  3213  		uintptr(unsafe.Pointer(lpxf)),
  3214  		uintptr(mode))
  3215  	return ret1 != 0
  3216  }
  3217  
  3218  func MoveToEx(hdc HDC, x int32, y int32, lppt *POINT) bool {
  3219  	ret1 := syscall6(moveToEx, 4,
  3220  		uintptr(hdc),
  3221  		uintptr(x),
  3222  		uintptr(y),
  3223  		uintptr(unsafe.Pointer(lppt)),
  3224  		0,
  3225  		0)
  3226  	return ret1 != 0
  3227  }
  3228  
  3229  func OffsetClipRgn(hdc HDC, x int32, y int32) int32 {
  3230  	ret1 := syscall3(offsetClipRgn, 3,
  3231  		uintptr(hdc),
  3232  		uintptr(x),
  3233  		uintptr(y))
  3234  	return int32(ret1)
  3235  }
  3236  
  3237  func OffsetRgn(hrgn HRGN, x int32, y int32) int32 {
  3238  	ret1 := syscall3(offsetRgn, 3,
  3239  		uintptr(hrgn),
  3240  		uintptr(x),
  3241  		uintptr(y))
  3242  	return int32(ret1)
  3243  }
  3244  
  3245  func OffsetViewportOrgEx(hdc HDC, x int32, y int32, lppt *POINT) bool {
  3246  	ret1 := syscall6(offsetViewportOrgEx, 4,
  3247  		uintptr(hdc),
  3248  		uintptr(x),
  3249  		uintptr(y),
  3250  		uintptr(unsafe.Pointer(lppt)),
  3251  		0,
  3252  		0)
  3253  	return ret1 != 0
  3254  }
  3255  
  3256  func OffsetWindowOrgEx(hdc HDC, x int32, y int32, lppt *POINT) bool {
  3257  	ret1 := syscall6(offsetWindowOrgEx, 4,
  3258  		uintptr(hdc),
  3259  		uintptr(x),
  3260  		uintptr(y),
  3261  		uintptr(unsafe.Pointer(lppt)),
  3262  		0,
  3263  		0)
  3264  	return ret1 != 0
  3265  }
  3266  
  3267  func PATHOBJ_bEnum(ppo *PATHOBJ, ppd *PATHDATA) bool {
  3268  	ret1 := syscall3(pATHOBJ_bEnum, 2,
  3269  		uintptr(unsafe.Pointer(ppo)),
  3270  		uintptr(unsafe.Pointer(ppd)),
  3271  		0)
  3272  	return ret1 != 0
  3273  }
  3274  
  3275  func PATHOBJ_bEnumClipLines(ppo *PATHOBJ, cb ULONG, pcl *CLIPLINE) bool {
  3276  	ret1 := syscall3(pATHOBJ_bEnumClipLines, 3,
  3277  		uintptr(unsafe.Pointer(ppo)),
  3278  		uintptr(cb),
  3279  		uintptr(unsafe.Pointer(pcl)))
  3280  	return ret1 != 0
  3281  }
  3282  
  3283  func PATHOBJ_vEnumStart(ppo *PATHOBJ) {
  3284  	syscall3(pATHOBJ_vEnumStart, 1,
  3285  		uintptr(unsafe.Pointer(ppo)),
  3286  		0,
  3287  		0)
  3288  }
  3289  
  3290  func PATHOBJ_vEnumStartClipLines(ppo *PATHOBJ, pco *CLIPOBJ, pso *SURFOBJ, pla *LINEATTRS) {
  3291  	syscall6(pATHOBJ_vEnumStartClipLines, 4,
  3292  		uintptr(unsafe.Pointer(ppo)),
  3293  		uintptr(unsafe.Pointer(pco)),
  3294  		uintptr(unsafe.Pointer(pso)),
  3295  		uintptr(unsafe.Pointer(pla)),
  3296  		0,
  3297  		0)
  3298  }
  3299  
  3300  func PATHOBJ_vGetBounds(ppo *PATHOBJ, prectfx PRECTFX) {
  3301  	syscall3(pATHOBJ_vGetBounds, 2,
  3302  		uintptr(unsafe.Pointer(ppo)),
  3303  		uintptr(unsafe.Pointer(prectfx)),
  3304  		0)
  3305  }
  3306  
  3307  func PaintRgn(hdc HDC, hrgn HRGN) bool {
  3308  	ret1 := syscall3(paintRgn, 2,
  3309  		uintptr(hdc),
  3310  		uintptr(hrgn),
  3311  		0)
  3312  	return ret1 != 0
  3313  }
  3314  
  3315  func PatBlt(hdc HDC, x int32, y int32, w int32, h int32, rop DWORD) bool {
  3316  	ret1 := syscall6(patBlt, 6,
  3317  		uintptr(hdc),
  3318  		uintptr(x),
  3319  		uintptr(y),
  3320  		uintptr(w),
  3321  		uintptr(h),
  3322  		uintptr(rop))
  3323  	return ret1 != 0
  3324  }
  3325  
  3326  func PathToRegion(hdc HDC) HRGN {
  3327  	ret1 := syscall3(pathToRegion, 1,
  3328  		uintptr(hdc),
  3329  		0,
  3330  		0)
  3331  	return HRGN(ret1)
  3332  }
  3333  
  3334  func Pie(hdc HDC, left int32, top int32, right int32, bottom int32, xr1 int32, yr1 int32, xr2 int32, yr2 int32) bool {
  3335  	ret1 := syscall9(pie, 9,
  3336  		uintptr(hdc),
  3337  		uintptr(left),
  3338  		uintptr(top),
  3339  		uintptr(right),
  3340  		uintptr(bottom),
  3341  		uintptr(xr1),
  3342  		uintptr(yr1),
  3343  		uintptr(xr2),
  3344  		uintptr(yr2))
  3345  	return ret1 != 0
  3346  }
  3347  
  3348  func PlayEnhMetaFile(hdc HDC, hmf HENHMETAFILE, lprect /*const*/ *RECT) bool {
  3349  	ret1 := syscall3(playEnhMetaFile, 3,
  3350  		uintptr(hdc),
  3351  		uintptr(hmf),
  3352  		uintptr(unsafe.Pointer(lprect)))
  3353  	return ret1 != 0
  3354  }
  3355  
  3356  func PlayEnhMetaFileRecord(hdc HDC, pht *HANDLETABLE, pmr /*const*/ *ENHMETARECORD, cht UINT) bool {
  3357  	ret1 := syscall6(playEnhMetaFileRecord, 4,
  3358  		uintptr(hdc),
  3359  		uintptr(unsafe.Pointer(pht)),
  3360  		uintptr(unsafe.Pointer(pmr)),
  3361  		uintptr(cht),
  3362  		0,
  3363  		0)
  3364  	return ret1 != 0
  3365  }
  3366  
  3367  func PlayMetaFile(hdc HDC, hmf HMETAFILE) bool {
  3368  	ret1 := syscall3(playMetaFile, 2,
  3369  		uintptr(hdc),
  3370  		uintptr(hmf),
  3371  		0)
  3372  	return ret1 != 0
  3373  }
  3374  
  3375  func PlayMetaFileRecord(hdc HDC, lpHandleTable *HANDLETABLE, lpMR *METARECORD, noObjs UINT) bool {
  3376  	ret1 := syscall6(playMetaFileRecord, 4,
  3377  		uintptr(hdc),
  3378  		uintptr(unsafe.Pointer(lpHandleTable)),
  3379  		uintptr(unsafe.Pointer(lpMR)),
  3380  		uintptr(noObjs),
  3381  		0,
  3382  		0)
  3383  	return ret1 != 0
  3384  }
  3385  
  3386  func PlgBlt(hdcDest HDC, lpPoint /*const*/ *POINT, hdcSrc HDC, xSrc int32, ySrc int32, width int32, height int32, hbmMask HBITMAP, xMask int32, yMask int32) bool {
  3387  	ret1 := syscall12(plgBlt, 10,
  3388  		uintptr(hdcDest),
  3389  		uintptr(unsafe.Pointer(lpPoint)),
  3390  		uintptr(hdcSrc),
  3391  		uintptr(xSrc),
  3392  		uintptr(ySrc),
  3393  		uintptr(width),
  3394  		uintptr(height),
  3395  		uintptr(hbmMask),
  3396  		uintptr(xMask),
  3397  		uintptr(yMask),
  3398  		0,
  3399  		0)
  3400  	return ret1 != 0
  3401  }
  3402  
  3403  func PolyBezier(hdc HDC, apt /*const*/ *POINT, cpt DWORD) bool {
  3404  	ret1 := syscall3(polyBezier, 3,
  3405  		uintptr(hdc),
  3406  		uintptr(unsafe.Pointer(apt)),
  3407  		uintptr(cpt))
  3408  	return ret1 != 0
  3409  }
  3410  
  3411  func PolyBezierTo(hdc HDC, apt /*const*/ *POINT, cpt DWORD) bool {
  3412  	ret1 := syscall3(polyBezierTo, 3,
  3413  		uintptr(hdc),
  3414  		uintptr(unsafe.Pointer(apt)),
  3415  		uintptr(cpt))
  3416  	return ret1 != 0
  3417  }
  3418  
  3419  func PolyDraw(hdc HDC, apt /*const*/ *POINT, aj /*const*/ *byte, cpt int32) bool {
  3420  	ret1 := syscall6(polyDraw, 4,
  3421  		uintptr(hdc),
  3422  		uintptr(unsafe.Pointer(apt)),
  3423  		uintptr(unsafe.Pointer(aj)),
  3424  		uintptr(cpt),
  3425  		0,
  3426  		0)
  3427  	return ret1 != 0
  3428  }
  3429  
  3430  func PolyPolygon(hdc HDC, apt /*const*/ *POINT, asz /*const*/ *int32, csz int32) bool {
  3431  	ret1 := syscall6(polyPolygon, 4,
  3432  		uintptr(hdc),
  3433  		uintptr(unsafe.Pointer(apt)),
  3434  		uintptr(unsafe.Pointer(asz)),
  3435  		uintptr(csz),
  3436  		0,
  3437  		0)
  3438  	return ret1 != 0
  3439  }
  3440  
  3441  func PolyPolyline(hdc HDC, apt /*const*/ *POINT, asz /*const*/ *uint32, csz DWORD) bool {
  3442  	ret1 := syscall6(polyPolyline, 4,
  3443  		uintptr(hdc),
  3444  		uintptr(unsafe.Pointer(apt)),
  3445  		uintptr(unsafe.Pointer(asz)),
  3446  		uintptr(csz),
  3447  		0,
  3448  		0)
  3449  	return ret1 != 0
  3450  }
  3451  
  3452  func PolyTextOut(hdc HDC, ppt /*const*/ *POLYTEXT, nstrings int32) bool {
  3453  	ret1 := syscall3(polyTextOut, 3,
  3454  		uintptr(hdc),
  3455  		uintptr(unsafe.Pointer(ppt)),
  3456  		uintptr(nstrings))
  3457  	return ret1 != 0
  3458  }
  3459  
  3460  func Polygon(hdc HDC, apt /*const*/ *POINT, cpt int32) bool {
  3461  	ret1 := syscall3(polygon, 3,
  3462  		uintptr(hdc),
  3463  		uintptr(unsafe.Pointer(apt)),
  3464  		uintptr(cpt))
  3465  	return ret1 != 0
  3466  }
  3467  
  3468  func Polyline(hdc HDC, apt /*const*/ *POINT, cpt int32) bool {
  3469  	ret1 := syscall3(polyline, 3,
  3470  		uintptr(hdc),
  3471  		uintptr(unsafe.Pointer(apt)),
  3472  		uintptr(cpt))
  3473  	return ret1 != 0
  3474  }
  3475  
  3476  func PolylineTo(hdc HDC, apt /*const*/ *POINT, cpt DWORD) bool {
  3477  	ret1 := syscall3(polylineTo, 3,
  3478  		uintptr(hdc),
  3479  		uintptr(unsafe.Pointer(apt)),
  3480  		uintptr(cpt))
  3481  	return ret1 != 0
  3482  }
  3483  
  3484  func PtInRegion(hrgn HRGN, x int32, y int32) bool {
  3485  	ret1 := syscall3(ptInRegion, 3,
  3486  		uintptr(hrgn),
  3487  		uintptr(x),
  3488  		uintptr(y))
  3489  	return ret1 != 0
  3490  }
  3491  
  3492  func PtVisible(hdc HDC, x int32, y int32) bool {
  3493  	ret1 := syscall3(ptVisible, 3,
  3494  		uintptr(hdc),
  3495  		uintptr(x),
  3496  		uintptr(y))
  3497  	return ret1 != 0
  3498  }
  3499  
  3500  func RealizePalette(hdc HDC) UINT {
  3501  	ret1 := syscall3(realizePalette, 1,
  3502  		uintptr(hdc),
  3503  		0,
  3504  		0)
  3505  	return UINT(ret1)
  3506  }
  3507  
  3508  func RectInRegion(hrgn HRGN, lprect /*const*/ *RECT) bool {
  3509  	ret1 := syscall3(rectInRegion, 2,
  3510  		uintptr(hrgn),
  3511  		uintptr(unsafe.Pointer(lprect)),
  3512  		0)
  3513  	return ret1 != 0
  3514  }
  3515  
  3516  func RectVisible(hdc HDC, lprect /*const*/ *RECT) bool {
  3517  	ret1 := syscall3(rectVisible, 2,
  3518  		uintptr(hdc),
  3519  		uintptr(unsafe.Pointer(lprect)),
  3520  		0)
  3521  	return ret1 != 0
  3522  }
  3523  
  3524  func Rectangle(hdc HDC, left int32, top int32, right int32, bottom int32) bool {
  3525  	ret1 := syscall6(rectangle, 5,
  3526  		uintptr(hdc),
  3527  		uintptr(left),
  3528  		uintptr(top),
  3529  		uintptr(right),
  3530  		uintptr(bottom),
  3531  		0)
  3532  	return ret1 != 0
  3533  }
  3534  
  3535  func RemoveFontMemResourceEx(h HANDLE) bool {
  3536  	ret1 := syscall3(removeFontMemResourceEx, 1,
  3537  		uintptr(h),
  3538  		0,
  3539  		0)
  3540  	return ret1 != 0
  3541  }
  3542  
  3543  func RemoveFontResourceEx(name string, fl DWORD, pdv uintptr) bool {
  3544  	nameStr := unicode16FromString(name)
  3545  	ret1 := syscall3(removeFontResourceEx, 3,
  3546  		uintptr(unsafe.Pointer(&nameStr[0])),
  3547  		uintptr(fl),
  3548  		pdv)
  3549  	return ret1 != 0
  3550  }
  3551  
  3552  func RemoveFontResource(lpFileName string) bool {
  3553  	lpFileNameStr := unicode16FromString(lpFileName)
  3554  	ret1 := syscall3(removeFontResource, 1,
  3555  		uintptr(unsafe.Pointer(&lpFileNameStr[0])),
  3556  		0,
  3557  		0)
  3558  	return ret1 != 0
  3559  }
  3560  
  3561  func ResetDC(hdc HDC, lpdm /*const*/ *DEVMODE) HDC {
  3562  	ret1 := syscall3(resetDC, 2,
  3563  		uintptr(hdc),
  3564  		uintptr(unsafe.Pointer(lpdm)),
  3565  		0)
  3566  	return HDC(ret1)
  3567  }
  3568  
  3569  func ResizePalette(hpal HPALETTE, n UINT) bool {
  3570  	ret1 := syscall3(resizePalette, 2,
  3571  		uintptr(hpal),
  3572  		uintptr(n),
  3573  		0)
  3574  	return ret1 != 0
  3575  }
  3576  
  3577  func RestoreDC(hdc HDC, nSavedDC int32) bool {
  3578  	ret1 := syscall3(restoreDC, 2,
  3579  		uintptr(hdc),
  3580  		uintptr(nSavedDC),
  3581  		0)
  3582  	return ret1 != 0
  3583  }
  3584  
  3585  func RoundRect(hdc HDC, left int32, top int32, right int32, bottom int32, width int32, height int32) bool {
  3586  	ret1 := syscall9(roundRect, 7,
  3587  		uintptr(hdc),
  3588  		uintptr(left),
  3589  		uintptr(top),
  3590  		uintptr(right),
  3591  		uintptr(bottom),
  3592  		uintptr(width),
  3593  		uintptr(height),
  3594  		0,
  3595  		0)
  3596  	return ret1 != 0
  3597  }
  3598  
  3599  func STROBJ_bEnum(pstro *STROBJ, pc *ULONG, ppgpos *PGLYPHPOS) bool {
  3600  	ret1 := syscall3(sTROBJ_bEnum, 3,
  3601  		uintptr(unsafe.Pointer(pstro)),
  3602  		uintptr(unsafe.Pointer(pc)),
  3603  		uintptr(unsafe.Pointer(ppgpos)))
  3604  	return ret1 != 0
  3605  }
  3606  
  3607  func STROBJ_bEnumPositionsOnly(pstro *STROBJ, pc *ULONG, ppgpos *PGLYPHPOS) bool {
  3608  	ret1 := syscall3(sTROBJ_bEnumPositionsOnly, 3,
  3609  		uintptr(unsafe.Pointer(pstro)),
  3610  		uintptr(unsafe.Pointer(pc)),
  3611  		uintptr(unsafe.Pointer(ppgpos)))
  3612  	return ret1 != 0
  3613  }
  3614  
  3615  func STROBJ_bGetAdvanceWidths(pso *STROBJ, iFirst ULONG, c ULONG, pptqD *POINTQF) bool {
  3616  	ret1 := syscall6(sTROBJ_bGetAdvanceWidths, 4,
  3617  		uintptr(unsafe.Pointer(pso)),
  3618  		uintptr(iFirst),
  3619  		uintptr(c),
  3620  		uintptr(unsafe.Pointer(pptqD)),
  3621  		0,
  3622  		0)
  3623  	return ret1 != 0
  3624  }
  3625  
  3626  func STROBJ_dwGetCodePage(pstro *STROBJ) DWORD {
  3627  	ret1 := syscall3(sTROBJ_dwGetCodePage, 1,
  3628  		uintptr(unsafe.Pointer(pstro)),
  3629  		0,
  3630  		0)
  3631  	return DWORD(ret1)
  3632  }
  3633  
  3634  func STROBJ_vEnumStart(pstro *STROBJ) {
  3635  	syscall3(sTROBJ_vEnumStart, 1,
  3636  		uintptr(unsafe.Pointer(pstro)),
  3637  		0,
  3638  		0)
  3639  }
  3640  
  3641  func SaveDC(hdc HDC) int32 {
  3642  	ret1 := syscall3(saveDC, 1,
  3643  		uintptr(hdc),
  3644  		0,
  3645  		0)
  3646  	return int32(ret1)
  3647  }
  3648  
  3649  func ScaleViewportExtEx(hdc HDC, xn int32, dx int32, yn int32, yd int32, lpsz *SIZE) bool {
  3650  	ret1 := syscall6(scaleViewportExtEx, 6,
  3651  		uintptr(hdc),
  3652  		uintptr(xn),
  3653  		uintptr(dx),
  3654  		uintptr(yn),
  3655  		uintptr(yd),
  3656  		uintptr(unsafe.Pointer(lpsz)))
  3657  	return ret1 != 0
  3658  }
  3659  
  3660  func ScaleWindowExtEx(hdc HDC, xn int32, xd int32, yn int32, yd int32, lpsz *SIZE) bool {
  3661  	ret1 := syscall6(scaleWindowExtEx, 6,
  3662  		uintptr(hdc),
  3663  		uintptr(xn),
  3664  		uintptr(xd),
  3665  		uintptr(yn),
  3666  		uintptr(yd),
  3667  		uintptr(unsafe.Pointer(lpsz)))
  3668  	return ret1 != 0
  3669  }
  3670  
  3671  func SelectClipPath(hdc HDC, mode int32) bool {
  3672  	ret1 := syscall3(selectClipPath, 2,
  3673  		uintptr(hdc),
  3674  		uintptr(mode),
  3675  		0)
  3676  	return ret1 != 0
  3677  }
  3678  
  3679  func SelectClipRgn(hdc HDC, hrgn HRGN) int32 {
  3680  	ret1 := syscall3(selectClipRgn, 2,
  3681  		uintptr(hdc),
  3682  		uintptr(hrgn),
  3683  		0)
  3684  	return int32(ret1)
  3685  }
  3686  
  3687  func SelectObject(hdc HDC, h HGDIOBJ) HGDIOBJ {
  3688  	ret1 := syscall3(selectObject, 2,
  3689  		uintptr(hdc),
  3690  		uintptr(h),
  3691  		0)
  3692  	return HGDIOBJ(ret1)
  3693  }
  3694  
  3695  func SelectPalette(hdc HDC, hPal HPALETTE, bForceBkgd bool) HPALETTE {
  3696  	ret1 := syscall3(selectPalette, 3,
  3697  		uintptr(hdc),
  3698  		uintptr(hPal),
  3699  		getUintptrFromBool(bForceBkgd))
  3700  	return HPALETTE(ret1)
  3701  }
  3702  
  3703  func SetAbortProc(hdc HDC, lpProc ABORTPROC) int32 {
  3704  	lpProcCallback := syscall.NewCallback(func(unnamed0RawArg HDC, unnamed1RawArg int32) uintptr {
  3705  		ret := lpProc(unnamed0RawArg, unnamed1RawArg)
  3706  		return uintptr(ret)
  3707  	})
  3708  	ret1 := syscall3(setAbortProc, 2,
  3709  		uintptr(hdc),
  3710  		lpProcCallback,
  3711  		0)
  3712  	return int32(ret1)
  3713  }
  3714  
  3715  func SetArcDirection(hdc HDC, dir int32) int32 {
  3716  	ret1 := syscall3(setArcDirection, 2,
  3717  		uintptr(hdc),
  3718  		uintptr(dir),
  3719  		0)
  3720  	return int32(ret1)
  3721  }
  3722  
  3723  func SetBitmapBits(hbm HBITMAP, cb DWORD, pvBits /*const*/ uintptr) LONG {
  3724  	ret1 := syscall3(setBitmapBits, 3,
  3725  		uintptr(hbm),
  3726  		uintptr(cb),
  3727  		pvBits)
  3728  	return LONG(ret1)
  3729  }
  3730  
  3731  func SetBitmapDimensionEx(hbm HBITMAP, w int32, h int32, lpsz *SIZE) bool {
  3732  	ret1 := syscall6(setBitmapDimensionEx, 4,
  3733  		uintptr(hbm),
  3734  		uintptr(w),
  3735  		uintptr(h),
  3736  		uintptr(unsafe.Pointer(lpsz)),
  3737  		0,
  3738  		0)
  3739  	return ret1 != 0
  3740  }
  3741  
  3742  func SetBkColor(hdc HDC, color COLORREF) COLORREF {
  3743  	ret1 := syscall3(setBkColor, 2,
  3744  		uintptr(hdc),
  3745  		uintptr(color),
  3746  		0)
  3747  	return COLORREF(ret1)
  3748  }
  3749  
  3750  func SetBkMode(hdc HDC, mode int32) int32 {
  3751  	ret1 := syscall3(setBkMode, 2,
  3752  		uintptr(hdc),
  3753  		uintptr(mode),
  3754  		0)
  3755  	return int32(ret1)
  3756  }
  3757  
  3758  func SetBoundsRect(hdc HDC, lprect /*const*/ *RECT, flags UINT) UINT {
  3759  	ret1 := syscall3(setBoundsRect, 3,
  3760  		uintptr(hdc),
  3761  		uintptr(unsafe.Pointer(lprect)),
  3762  		uintptr(flags))
  3763  	return UINT(ret1)
  3764  }
  3765  
  3766  func SetBrushOrgEx(hdc HDC, x int32, y int32, lppt *POINT) bool {
  3767  	ret1 := syscall6(setBrushOrgEx, 4,
  3768  		uintptr(hdc),
  3769  		uintptr(x),
  3770  		uintptr(y),
  3771  		uintptr(unsafe.Pointer(lppt)),
  3772  		0,
  3773  		0)
  3774  	return ret1 != 0
  3775  }
  3776  
  3777  func SetColorAdjustment(hdc HDC, lpca /*const*/ *COLORADJUSTMENT) bool {
  3778  	ret1 := syscall3(setColorAdjustment, 2,
  3779  		uintptr(hdc),
  3780  		uintptr(unsafe.Pointer(lpca)),
  3781  		0)
  3782  	return ret1 != 0
  3783  }
  3784  
  3785  func SetColorSpace(hdc HDC, hcs HCOLORSPACE) HCOLORSPACE {
  3786  	ret1 := syscall3(setColorSpace, 2,
  3787  		uintptr(hdc),
  3788  		uintptr(hcs),
  3789  		0)
  3790  	return HCOLORSPACE(ret1)
  3791  }
  3792  
  3793  func SetDCBrushColor(hdc HDC, color COLORREF) COLORREF {
  3794  	ret1 := syscall3(setDCBrushColor, 2,
  3795  		uintptr(hdc),
  3796  		uintptr(color),
  3797  		0)
  3798  	return COLORREF(ret1)
  3799  }
  3800  
  3801  func SetDCPenColor(hdc HDC, color COLORREF) COLORREF {
  3802  	ret1 := syscall3(setDCPenColor, 2,
  3803  		uintptr(hdc),
  3804  		uintptr(color),
  3805  		0)
  3806  	return COLORREF(ret1)
  3807  }
  3808  
  3809  func SetDIBColorTable(hdc HDC, iStart UINT, cEntries UINT, prgbq /*const*/ *RGBQUAD) UINT {
  3810  	ret1 := syscall6(setDIBColorTable, 4,
  3811  		uintptr(hdc),
  3812  		uintptr(iStart),
  3813  		uintptr(cEntries),
  3814  		uintptr(unsafe.Pointer(prgbq)),
  3815  		0,
  3816  		0)
  3817  	return UINT(ret1)
  3818  }
  3819  
  3820  func SetDIBits(hdc HDC, hbm HBITMAP, start UINT, cLines UINT, lpBits /*const*/ uintptr, lpbmi /*const*/ *BITMAPINFO, colorUse UINT) int32 {
  3821  	ret1 := syscall9(setDIBits, 7,
  3822  		uintptr(hdc),
  3823  		uintptr(hbm),
  3824  		uintptr(start),
  3825  		uintptr(cLines),
  3826  		lpBits,
  3827  		uintptr(unsafe.Pointer(lpbmi)),
  3828  		uintptr(colorUse),
  3829  		0,
  3830  		0)
  3831  	return int32(ret1)
  3832  }
  3833  
  3834  func SetDIBitsToDevice(hdc HDC, xDest int32, yDest int32, w DWORD, h DWORD, xSrc int32, ySrc int32, startScan UINT, cLines UINT, lpvBits /*const*/ uintptr, lpbmi /*const*/ *BITMAPINFO, colorUse UINT) int32 {
  3835  	ret1 := syscall12(setDIBitsToDevice, 12,
  3836  		uintptr(hdc),
  3837  		uintptr(xDest),
  3838  		uintptr(yDest),
  3839  		uintptr(w),
  3840  		uintptr(h),
  3841  		uintptr(xSrc),
  3842  		uintptr(ySrc),
  3843  		uintptr(startScan),
  3844  		uintptr(cLines),
  3845  		lpvBits,
  3846  		uintptr(unsafe.Pointer(lpbmi)),
  3847  		uintptr(colorUse))
  3848  	return int32(ret1)
  3849  }
  3850  
  3851  func SetDeviceGammaRamp(hdc HDC, lpRamp LPVOID) bool {
  3852  	ret1 := syscall3(setDeviceGammaRamp, 2,
  3853  		uintptr(hdc),
  3854  		uintptr(unsafe.Pointer(lpRamp)),
  3855  		0)
  3856  	return ret1 != 0
  3857  }
  3858  
  3859  func SetEnhMetaFileBits(nSize UINT, pb /*const*/ *byte) HENHMETAFILE {
  3860  	ret1 := syscall3(setEnhMetaFileBits, 2,
  3861  		uintptr(nSize),
  3862  		uintptr(unsafe.Pointer(pb)),
  3863  		0)
  3864  	return HENHMETAFILE(ret1)
  3865  }
  3866  
  3867  func SetGraphicsMode(hdc HDC, iMode int32) int32 {
  3868  	ret1 := syscall3(setGraphicsMode, 2,
  3869  		uintptr(hdc),
  3870  		uintptr(iMode),
  3871  		0)
  3872  	return int32(ret1)
  3873  }
  3874  
  3875  func SetICMMode(hdc HDC, mode int32) int32 {
  3876  	ret1 := syscall3(setICMMode, 2,
  3877  		uintptr(hdc),
  3878  		uintptr(mode),
  3879  		0)
  3880  	return int32(ret1)
  3881  }
  3882  
  3883  func SetICMProfile(hdc HDC, lpFileName LPWSTR) bool {
  3884  	ret1 := syscall3(setICMProfile, 2,
  3885  		uintptr(hdc),
  3886  		uintptr(unsafe.Pointer(lpFileName)),
  3887  		0)
  3888  	return ret1 != 0
  3889  }
  3890  
  3891  func SetLayout(hdc HDC, l DWORD) DWORD {
  3892  	ret1 := syscall3(setLayout, 2,
  3893  		uintptr(hdc),
  3894  		uintptr(l),
  3895  		0)
  3896  	return DWORD(ret1)
  3897  }
  3898  
  3899  func SetMapMode(hdc HDC, iMode int32) int32 {
  3900  	ret1 := syscall3(setMapMode, 2,
  3901  		uintptr(hdc),
  3902  		uintptr(iMode),
  3903  		0)
  3904  	return int32(ret1)
  3905  }
  3906  
  3907  func SetMapperFlags(hdc HDC, flags DWORD) DWORD {
  3908  	ret1 := syscall3(setMapperFlags, 2,
  3909  		uintptr(hdc),
  3910  		uintptr(flags),
  3911  		0)
  3912  	return DWORD(ret1)
  3913  }
  3914  
  3915  func SetMetaFileBitsEx(cbBuffer UINT, lpData /*const*/ *byte) HMETAFILE {
  3916  	ret1 := syscall3(setMetaFileBitsEx, 2,
  3917  		uintptr(cbBuffer),
  3918  		uintptr(unsafe.Pointer(lpData)),
  3919  		0)
  3920  	return HMETAFILE(ret1)
  3921  }
  3922  
  3923  func SetMetaRgn(hdc HDC) int32 {
  3924  	ret1 := syscall3(setMetaRgn, 1,
  3925  		uintptr(hdc),
  3926  		0,
  3927  		0)
  3928  	return int32(ret1)
  3929  }
  3930  
  3931  func SetMiterLimit(hdc HDC, limit FLOAT, old *float32) bool {
  3932  	ret1 := syscall3(setMiterLimit, 3,
  3933  		uintptr(hdc),
  3934  		uintptr(limit),
  3935  		uintptr(unsafe.Pointer(old)))
  3936  	return ret1 != 0
  3937  }
  3938  
  3939  func SetPaletteEntries(hpal HPALETTE, iStart UINT, cEntries UINT, pPalEntries /*const*/ *PALETTEENTRY) UINT {
  3940  	ret1 := syscall6(setPaletteEntries, 4,
  3941  		uintptr(hpal),
  3942  		uintptr(iStart),
  3943  		uintptr(cEntries),
  3944  		uintptr(unsafe.Pointer(pPalEntries)),
  3945  		0,
  3946  		0)
  3947  	return UINT(ret1)
  3948  }
  3949  
  3950  func SetPixel(hdc HDC, x int32, y int32, color COLORREF) COLORREF {
  3951  	ret1 := syscall6(setPixel, 4,
  3952  		uintptr(hdc),
  3953  		uintptr(x),
  3954  		uintptr(y),
  3955  		uintptr(color),
  3956  		0,
  3957  		0)
  3958  	return COLORREF(ret1)
  3959  }
  3960  
  3961  func SetPixelFormat(hdc HDC, format int32, ppfd /*const*/ *PIXELFORMATDESCRIPTOR) bool {
  3962  	ret1 := syscall3(setPixelFormat, 3,
  3963  		uintptr(hdc),
  3964  		uintptr(format),
  3965  		uintptr(unsafe.Pointer(ppfd)))
  3966  	return ret1 != 0
  3967  }
  3968  
  3969  func SetPixelV(hdc HDC, x int32, y int32, color COLORREF) bool {
  3970  	ret1 := syscall6(setPixelV, 4,
  3971  		uintptr(hdc),
  3972  		uintptr(x),
  3973  		uintptr(y),
  3974  		uintptr(color),
  3975  		0,
  3976  		0)
  3977  	return ret1 != 0
  3978  }
  3979  
  3980  func SetPolyFillMode(hdc HDC, mode int32) int32 {
  3981  	ret1 := syscall3(setPolyFillMode, 2,
  3982  		uintptr(hdc),
  3983  		uintptr(mode),
  3984  		0)
  3985  	return int32(ret1)
  3986  }
  3987  
  3988  func SetROP2(hdc HDC, rop2 int32) int32 {
  3989  	ret1 := syscall3(setROP2, 2,
  3990  		uintptr(hdc),
  3991  		uintptr(rop2),
  3992  		0)
  3993  	return int32(ret1)
  3994  }
  3995  
  3996  func SetRectRgn(hrgn HRGN, left int32, top int32, right int32, bottom int32) bool {
  3997  	ret1 := syscall6(setRectRgn, 5,
  3998  		uintptr(hrgn),
  3999  		uintptr(left),
  4000  		uintptr(top),
  4001  		uintptr(right),
  4002  		uintptr(bottom),
  4003  		0)
  4004  	return ret1 != 0
  4005  }
  4006  
  4007  func SetStretchBltMode(hdc HDC, mode int32) int32 {
  4008  	ret1 := syscall3(setStretchBltMode, 2,
  4009  		uintptr(hdc),
  4010  		uintptr(mode),
  4011  		0)
  4012  	return int32(ret1)
  4013  }
  4014  
  4015  func SetSystemPaletteUse(hdc HDC, use UINT) UINT {
  4016  	ret1 := syscall3(setSystemPaletteUse, 2,
  4017  		uintptr(hdc),
  4018  		uintptr(use),
  4019  		0)
  4020  	return UINT(ret1)
  4021  }
  4022  
  4023  func SetTextAlign(hdc HDC, align UINT) UINT {
  4024  	ret1 := syscall3(setTextAlign, 2,
  4025  		uintptr(hdc),
  4026  		uintptr(align),
  4027  		0)
  4028  	return UINT(ret1)
  4029  }
  4030  
  4031  func SetTextCharacterExtra(hdc HDC, extra int32) int32 {
  4032  	ret1 := syscall3(setTextCharacterExtra, 2,
  4033  		uintptr(hdc),
  4034  		uintptr(extra),
  4035  		0)
  4036  	return int32(ret1)
  4037  }
  4038  
  4039  func SetTextColor(hdc HDC, color COLORREF) COLORREF {
  4040  	ret1 := syscall3(setTextColor, 2,
  4041  		uintptr(hdc),
  4042  		uintptr(color),
  4043  		0)
  4044  	return COLORREF(ret1)
  4045  }
  4046  
  4047  func SetTextJustification(hdc HDC, extra int32, count int32) bool {
  4048  	ret1 := syscall3(setTextJustification, 3,
  4049  		uintptr(hdc),
  4050  		uintptr(extra),
  4051  		uintptr(count))
  4052  	return ret1 != 0
  4053  }
  4054  
  4055  func SetViewportExtEx(hdc HDC, x int32, y int32, lpsz *SIZE) bool {
  4056  	ret1 := syscall6(setViewportExtEx, 4,
  4057  		uintptr(hdc),
  4058  		uintptr(x),
  4059  		uintptr(y),
  4060  		uintptr(unsafe.Pointer(lpsz)),
  4061  		0,
  4062  		0)
  4063  	return ret1 != 0
  4064  }
  4065  
  4066  func SetViewportOrgEx(hdc HDC, x int32, y int32, lppt *POINT) bool {
  4067  	ret1 := syscall6(setViewportOrgEx, 4,
  4068  		uintptr(hdc),
  4069  		uintptr(x),
  4070  		uintptr(y),
  4071  		uintptr(unsafe.Pointer(lppt)),
  4072  		0,
  4073  		0)
  4074  	return ret1 != 0
  4075  }
  4076  
  4077  func SetWinMetaFileBits(nSize UINT, lpMeta16Data /*const*/ *byte, hdcRef HDC, lpMFP /*const*/ *METAFILEPICT) HENHMETAFILE {
  4078  	ret1 := syscall6(setWinMetaFileBits, 4,
  4079  		uintptr(nSize),
  4080  		uintptr(unsafe.Pointer(lpMeta16Data)),
  4081  		uintptr(hdcRef),
  4082  		uintptr(unsafe.Pointer(lpMFP)),
  4083  		0,
  4084  		0)
  4085  	return HENHMETAFILE(ret1)
  4086  }
  4087  
  4088  func SetWindowExtEx(hdc HDC, x int32, y int32, lpsz *SIZE) bool {
  4089  	ret1 := syscall6(setWindowExtEx, 4,
  4090  		uintptr(hdc),
  4091  		uintptr(x),
  4092  		uintptr(y),
  4093  		uintptr(unsafe.Pointer(lpsz)),
  4094  		0,
  4095  		0)
  4096  	return ret1 != 0
  4097  }
  4098  
  4099  func SetWindowOrgEx(hdc HDC, x int32, y int32, lppt *POINT) bool {
  4100  	ret1 := syscall6(setWindowOrgEx, 4,
  4101  		uintptr(hdc),
  4102  		uintptr(x),
  4103  		uintptr(y),
  4104  		uintptr(unsafe.Pointer(lppt)),
  4105  		0,
  4106  		0)
  4107  	return ret1 != 0
  4108  }
  4109  
  4110  func SetWorldTransform(hdc HDC, lpxf /*const*/ *XFORM) bool {
  4111  	ret1 := syscall3(setWorldTransform, 2,
  4112  		uintptr(hdc),
  4113  		uintptr(unsafe.Pointer(lpxf)),
  4114  		0)
  4115  	return ret1 != 0
  4116  }
  4117  
  4118  func StartDoc(hdc HDC, lpdi /*const*/ *DOCINFO) int32 {
  4119  	ret1 := syscall3(startDoc, 2,
  4120  		uintptr(hdc),
  4121  		uintptr(unsafe.Pointer(lpdi)),
  4122  		0)
  4123  	return int32(ret1)
  4124  }
  4125  
  4126  func StartPage(hdc HDC) int32 {
  4127  	ret1 := syscall3(startPage, 1,
  4128  		uintptr(hdc),
  4129  		0,
  4130  		0)
  4131  	return int32(ret1)
  4132  }
  4133  
  4134  func StretchBlt(hdcDest HDC, xDest int32, yDest int32, wDest int32, hDest int32, hdcSrc HDC, xSrc int32, ySrc int32, wSrc int32, hSrc int32, rop DWORD) bool {
  4135  	ret1 := syscall12(stretchBlt, 11,
  4136  		uintptr(hdcDest),
  4137  		uintptr(xDest),
  4138  		uintptr(yDest),
  4139  		uintptr(wDest),
  4140  		uintptr(hDest),
  4141  		uintptr(hdcSrc),
  4142  		uintptr(xSrc),
  4143  		uintptr(ySrc),
  4144  		uintptr(wSrc),
  4145  		uintptr(hSrc),
  4146  		uintptr(rop),
  4147  		0)
  4148  	return ret1 != 0
  4149  }
  4150  
  4151  func StretchDIBits(hdc HDC, xDest int32, yDest int32, destWidth int32, destHeight int32, xSrc int32, ySrc int32, srcWidth int32, srcHeight int32, lpBits /*const*/ uintptr, lpbmi /*const*/ *BITMAPINFO, iUsage UINT, rop DWORD) int32 {
  4152  	ret1 := syscall15(stretchDIBits, 13,
  4153  		uintptr(hdc),
  4154  		uintptr(xDest),
  4155  		uintptr(yDest),
  4156  		uintptr(destWidth),
  4157  		uintptr(destHeight),
  4158  		uintptr(xSrc),
  4159  		uintptr(ySrc),
  4160  		uintptr(srcWidth),
  4161  		uintptr(srcHeight),
  4162  		lpBits,
  4163  		uintptr(unsafe.Pointer(lpbmi)),
  4164  		uintptr(iUsage),
  4165  		uintptr(rop),
  4166  		0,
  4167  		0)
  4168  	return int32(ret1)
  4169  }
  4170  
  4171  func StrokeAndFillPath(hdc HDC) bool {
  4172  	ret1 := syscall3(strokeAndFillPath, 1,
  4173  		uintptr(hdc),
  4174  		0,
  4175  		0)
  4176  	return ret1 != 0
  4177  }
  4178  
  4179  func StrokePath(hdc HDC) bool {
  4180  	ret1 := syscall3(strokePath, 1,
  4181  		uintptr(hdc),
  4182  		0,
  4183  		0)
  4184  	return ret1 != 0
  4185  }
  4186  
  4187  func SwapBuffers(unnamed0 HDC) bool {
  4188  	ret1 := syscall3(swapBuffers, 1,
  4189  		uintptr(unnamed0),
  4190  		0,
  4191  		0)
  4192  	return ret1 != 0
  4193  }
  4194  
  4195  func TextOut(hdc HDC, x int32, y int32, lpString string, c int32) bool {
  4196  	lpStringStr := unicode16FromString(lpString)
  4197  	ret1 := syscall6(textOut, 5,
  4198  		uintptr(hdc),
  4199  		uintptr(x),
  4200  		uintptr(y),
  4201  		uintptr(unsafe.Pointer(&lpStringStr[0])),
  4202  		uintptr(c),
  4203  		0)
  4204  	return ret1 != 0
  4205  }
  4206  
  4207  func TranslateCharsetInfo(lpSrc *uint32, lpCs *CHARSETINFO, dwFlags DWORD) bool {
  4208  	ret1 := syscall3(translateCharsetInfo, 3,
  4209  		uintptr(unsafe.Pointer(lpSrc)),
  4210  		uintptr(unsafe.Pointer(lpCs)),
  4211  		uintptr(dwFlags))
  4212  	return ret1 != 0
  4213  }
  4214  
  4215  func UnrealizeObject(h HGDIOBJ) bool {
  4216  	ret1 := syscall3(unrealizeObject, 1,
  4217  		uintptr(h),
  4218  		0,
  4219  		0)
  4220  	return ret1 != 0
  4221  }
  4222  
  4223  func UpdateColors(hdc HDC) bool {
  4224  	ret1 := syscall3(updateColors, 1,
  4225  		uintptr(hdc),
  4226  		0,
  4227  		0)
  4228  	return ret1 != 0
  4229  }
  4230  
  4231  func UpdateICMRegKey(reserved DWORD, lpszCMID LPWSTR, lpszFileName LPWSTR, command UINT) bool {
  4232  	ret1 := syscall6(updateICMRegKey, 4,
  4233  		uintptr(reserved),
  4234  		uintptr(unsafe.Pointer(lpszCMID)),
  4235  		uintptr(unsafe.Pointer(lpszFileName)),
  4236  		uintptr(command),
  4237  		0,
  4238  		0)
  4239  	return ret1 != 0
  4240  }
  4241  
  4242  func WidenPath(hdc HDC) bool {
  4243  	ret1 := syscall3(widenPath, 1,
  4244  		uintptr(hdc),
  4245  		0,
  4246  		0)
  4247  	return ret1 != 0
  4248  }
  4249  
  4250  func XFORMOBJ_bApplyXform(pxo *XFORMOBJ, iMode ULONG, cPoints ULONG, pvIn uintptr, pvOut uintptr) bool {
  4251  	ret1 := syscall6(xFORMOBJ_bApplyXform, 5,
  4252  		uintptr(unsafe.Pointer(pxo)),
  4253  		uintptr(iMode),
  4254  		uintptr(cPoints),
  4255  		pvIn,
  4256  		pvOut,
  4257  		0)
  4258  	return ret1 != 0
  4259  }
  4260  
  4261  func XFORMOBJ_iGetXform(pxo *XFORMOBJ, pxform *XFORML) ULONG {
  4262  	ret1 := syscall3(xFORMOBJ_iGetXform, 2,
  4263  		uintptr(unsafe.Pointer(pxo)),
  4264  		uintptr(unsafe.Pointer(pxform)),
  4265  		0)
  4266  	return ULONG(ret1)
  4267  }
  4268  
  4269  func XLATEOBJ_cGetPalette(pxlo *XLATEOBJ, iPal ULONG, cPal ULONG, pPal *ULONG) ULONG {
  4270  	ret1 := syscall6(xLATEOBJ_cGetPalette, 4,
  4271  		uintptr(unsafe.Pointer(pxlo)),
  4272  		uintptr(iPal),
  4273  		uintptr(cPal),
  4274  		uintptr(unsafe.Pointer(pPal)),
  4275  		0,
  4276  		0)
  4277  	return ULONG(ret1)
  4278  }
  4279  
  4280  func XLATEOBJ_hGetColorTransform(pxlo *XLATEOBJ) HANDLE {
  4281  	ret1 := syscall3(xLATEOBJ_hGetColorTransform, 1,
  4282  		uintptr(unsafe.Pointer(pxlo)),
  4283  		0,
  4284  		0)
  4285  	return HANDLE(ret1)
  4286  }
  4287  
  4288  func XLATEOBJ_iXlate(pxlo *XLATEOBJ, iColor ULONG) ULONG {
  4289  	ret1 := syscall3(xLATEOBJ_iXlate, 2,
  4290  		uintptr(unsafe.Pointer(pxlo)),
  4291  		uintptr(iColor),
  4292  		0)
  4293  	return ULONG(ret1)
  4294  }
  4295  
  4296  func EnableEUDC(fEnableEUDC bool) bool {
  4297  	ret1 := syscall3(enableEUDC, 1,
  4298  		getUintptrFromBool(fEnableEUDC),
  4299  		0,
  4300  		0)
  4301  	return ret1 != 0
  4302  }
  4303  
  4304  func FontIsLinked(hdc HDC) bool {
  4305  	ret1 := syscall3(fontIsLinked, 1,
  4306  		uintptr(hdc),
  4307  		0,
  4308  		0)
  4309  	return ret1 != 0
  4310  }
  4311  
  4312  func GdiDescribePixelFormat(hdc HDC, format INT, size UINT, descr *PIXELFORMATDESCRIPTOR) INT {
  4313  	ret1 := syscall6(gdiDescribePixelFormat, 4,
  4314  		uintptr(hdc),
  4315  		uintptr(format),
  4316  		uintptr(size),
  4317  		uintptr(unsafe.Pointer(descr)),
  4318  		0,
  4319  		0)
  4320  	return INT(ret1)
  4321  }
  4322  
  4323  func GdiDrawStream(hdc HDC, in ULONG, pvin uintptr) bool {
  4324  	ret1 := syscall3(gdiDrawStream, 3,
  4325  		uintptr(hdc),
  4326  		uintptr(in),
  4327  		pvin)
  4328  	return ret1 != 0
  4329  }
  4330  
  4331  func GdiGetCharDimensions(hdc HDC, lptm LPTEXTMETRIC, height *LONG) LONG {
  4332  	ret1 := syscall3(gdiGetCharDimensions, 3,
  4333  		uintptr(hdc),
  4334  		uintptr(unsafe.Pointer(lptm)),
  4335  		uintptr(unsafe.Pointer(height)))
  4336  	return LONG(ret1)
  4337  }
  4338  
  4339  func GdiGetCodePage(hdc HDC) DWORD {
  4340  	ret1 := syscall3(gdiGetCodePage, 1,
  4341  		uintptr(hdc),
  4342  		0,
  4343  		0)
  4344  	return DWORD(ret1)
  4345  }
  4346  
  4347  func GdiGetSpoolMessage(ptr1 LPVOID, data2 DWORD, ptr3 LPVOID, data4 DWORD) DWORD {
  4348  	ret1 := syscall6(gdiGetSpoolMessage, 4,
  4349  		uintptr(unsafe.Pointer(ptr1)),
  4350  		uintptr(data2),
  4351  		uintptr(unsafe.Pointer(ptr3)),
  4352  		uintptr(data4),
  4353  		0,
  4354  		0)
  4355  	return DWORD(ret1)
  4356  }
  4357  
  4358  func GdiInitSpool() DWORD {
  4359  	ret1 := syscall3(gdiInitSpool, 0,
  4360  		0,
  4361  		0,
  4362  		0)
  4363  	return DWORD(ret1)
  4364  }
  4365  
  4366  func GdiInitializeLanguagePack(arg DWORD) DWORD {
  4367  	ret1 := syscall3(gdiInitializeLanguagePack, 1,
  4368  		uintptr(arg),
  4369  		0,
  4370  		0)
  4371  	return DWORD(ret1)
  4372  }
  4373  
  4374  func GdiIsMetaFileDC(hdc HDC) bool {
  4375  	ret1 := syscall3(gdiIsMetaFileDC, 1,
  4376  		uintptr(hdc),
  4377  		0,
  4378  		0)
  4379  	return ret1 != 0
  4380  }
  4381  
  4382  func GdiIsMetaPrintDC(hdc HDC) bool {
  4383  	ret1 := syscall3(gdiIsMetaPrintDC, 1,
  4384  		uintptr(hdc),
  4385  		0,
  4386  		0)
  4387  	return ret1 != 0
  4388  }
  4389  
  4390  func GdiIsPlayMetafileDC(hdc HDC) bool {
  4391  	ret1 := syscall3(gdiIsPlayMetafileDC, 1,
  4392  		uintptr(hdc),
  4393  		0,
  4394  		0)
  4395  	return ret1 != 0
  4396  }
  4397  
  4398  func GdiRealizationInfo(hdc HDC, info uintptr) bool {
  4399  	ret1 := syscall3(gdiRealizationInfo, 2,
  4400  		uintptr(hdc),
  4401  		info,
  4402  		0)
  4403  	return ret1 != 0
  4404  }
  4405  
  4406  func GdiSetPixelFormat(hdc HDC, fmt INT, pfd /*const*/ *PIXELFORMATDESCRIPTOR) bool {
  4407  	ret1 := syscall3(gdiSetPixelFormat, 3,
  4408  		uintptr(hdc),
  4409  		uintptr(fmt),
  4410  		uintptr(unsafe.Pointer(pfd)))
  4411  	return ret1 != 0
  4412  }
  4413  
  4414  func GdiSwapBuffers(hdc HDC) bool {
  4415  	ret1 := syscall3(gdiSwapBuffers, 1,
  4416  		uintptr(hdc),
  4417  		0,
  4418  		0)
  4419  	return ret1 != 0
  4420  }
  4421  
  4422  func GetFontResourceInfoW(str string, size *uint32, buffer uintptr, aType DWORD) bool {
  4423  	strStr := unicode16FromString(str)
  4424  	ret1 := syscall6(getFontResourceInfoW, 4,
  4425  		uintptr(unsafe.Pointer(&strStr[0])),
  4426  		uintptr(unsafe.Pointer(size)),
  4427  		buffer,
  4428  		uintptr(aType),
  4429  		0,
  4430  		0)
  4431  	return ret1 != 0
  4432  }
  4433  
  4434  func GetRelAbs(hdc HDC, dwIgnore DWORD) INT {
  4435  	ret1 := syscall3(getRelAbs, 2,
  4436  		uintptr(hdc),
  4437  		uintptr(dwIgnore),
  4438  		0)
  4439  	return INT(ret1)
  4440  }
  4441  
  4442  func GetTransform(hdc HDC, which DWORD, xform *XFORM) bool {
  4443  	ret1 := syscall3(getTransform, 3,
  4444  		uintptr(hdc),
  4445  		uintptr(which),
  4446  		uintptr(unsafe.Pointer(xform)))
  4447  	return ret1 != 0
  4448  }
  4449  
  4450  func MirrorRgn(hwnd HWND, hrgn HRGN) bool {
  4451  	ret1 := syscall3(mirrorRgn, 2,
  4452  		uintptr(hwnd),
  4453  		uintptr(hrgn),
  4454  		0)
  4455  	return ret1 != 0
  4456  }
  4457  
  4458  func NamedEscape(hdc HDC, pDriver string, nEscape INT, cbInput INT, lpszInData /*const*/ LPCSTR, cbOutput INT, lpszOutData LPSTR) INT {
  4459  	pDriverStr := unicode16FromString(pDriver)
  4460  	ret1 := syscall9(namedEscape, 7,
  4461  		uintptr(hdc),
  4462  		uintptr(unsafe.Pointer(&pDriverStr[0])),
  4463  		uintptr(nEscape),
  4464  		uintptr(cbInput),
  4465  		uintptr(unsafe.Pointer(lpszInData)),
  4466  		uintptr(cbOutput),
  4467  		uintptr(unsafe.Pointer(lpszOutData)),
  4468  		0,
  4469  		0)
  4470  	return INT(ret1)
  4471  }
  4472  
  4473  func SetMagicColors(hdc HDC, u1 ULONG, u2 ULONG) bool {
  4474  	ret1 := syscall3(setMagicColors, 3,
  4475  		uintptr(hdc),
  4476  		uintptr(u1),
  4477  		uintptr(u2))
  4478  	return ret1 != 0
  4479  }
  4480  
  4481  func SetRelAbs(hdc HDC, mode INT) INT {
  4482  	ret1 := syscall3(setRelAbs, 2,
  4483  		uintptr(hdc),
  4484  		uintptr(mode),
  4485  		0)
  4486  	return INT(ret1)
  4487  }
  4488  
  4489  func SetVirtualResolution(hdc HDC, horz_res DWORD, vert_res DWORD, horz_size DWORD, vert_size DWORD) bool {
  4490  	ret1 := syscall6(setVirtualResolution, 5,
  4491  		uintptr(hdc),
  4492  		uintptr(horz_res),
  4493  		uintptr(vert_res),
  4494  		uintptr(horz_size),
  4495  		uintptr(vert_size),
  4496  		0)
  4497  	return ret1 != 0
  4498  }