// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT package windriver import ( "syscall" "unsafe" "golang.org/x/sys/windows" ) var _ unsafe.Pointer var ( modmsimg32 = windows.NewLazySystemDLL("msimg32.dll") modgdi32 = windows.NewLazySystemDLL("gdi32.dll") moduser32 = windows.NewLazySystemDLL("user32.dll") procAlphaBlend = modmsimg32.NewProc("AlphaBlend") procBitBlt = modgdi32.NewProc("BitBlt") procCreateCompatibleBitmap = modgdi32.NewProc("CreateCompatibleBitmap") procCreateCompatibleDC = modgdi32.NewProc("CreateCompatibleDC") procCreateDIBSection = modgdi32.NewProc("CreateDIBSection") procCreateSolidBrush = modgdi32.NewProc("CreateSolidBrush") procDeleteDC = modgdi32.NewProc("DeleteDC") procDeleteObject = modgdi32.NewProc("DeleteObject") procFillRect = moduser32.NewProc("FillRect") procModifyWorldTransform = modgdi32.NewProc("ModifyWorldTransform") procSelectObject = modgdi32.NewProc("SelectObject") procSetGraphicsMode = modgdi32.NewProc("SetGraphicsMode") procSetWorldTransform = modgdi32.NewProc("SetWorldTransform") procStretchBlt = modgdi32.NewProc("StretchBlt") procGetDeviceCaps = modgdi32.NewProc("GetDeviceCaps") ) func _AlphaBlend(dcdest syscall.Handle, xoriginDest int32, yoriginDest int32, wDest int32, hDest int32, dcsrc syscall.Handle, xoriginSrc int32, yoriginSrc int32, wsrc int32, hsrc int32, ftn uintptr) (err error) { r1, _, e1 := syscall.Syscall12(procAlphaBlend.Addr(), 11, uintptr(dcdest), uintptr(xoriginDest), uintptr(yoriginDest), uintptr(wDest), uintptr(hDest), uintptr(dcsrc), uintptr(xoriginSrc), uintptr(yoriginSrc), uintptr(wsrc), uintptr(hsrc), uintptr(ftn), 0) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _BitBlt(dcdest syscall.Handle, xdest int32, ydest int32, width int32, height int32, dcsrc syscall.Handle, xsrc int32, ysrc int32, rop uint32) (err error) { r1, _, e1 := syscall.Syscall9(procBitBlt.Addr(), 9, uintptr(dcdest), uintptr(xdest), uintptr(ydest), uintptr(width), uintptr(height), uintptr(dcsrc), uintptr(xsrc), uintptr(ysrc), uintptr(rop)) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _CreateCompatibleBitmap(dc syscall.Handle, width int32, height int32) (bitmap syscall.Handle, err error) { r0, _, e1 := syscall.Syscall(procCreateCompatibleBitmap.Addr(), 3, uintptr(dc), uintptr(width), uintptr(height)) bitmap = syscall.Handle(r0) if bitmap == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _CreateCompatibleDC(dc syscall.Handle) (newdc syscall.Handle, err error) { r0, _, e1 := syscall.Syscall(procCreateCompatibleDC.Addr(), 1, uintptr(dc), 0, 0) newdc = syscall.Handle(r0) if newdc == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _CreateDIBSection(dc syscall.Handle, bmi *_BITMAPINFO, usage uint32, bits **byte, section syscall.Handle, offset uint32) (bitmap syscall.Handle, err error) { r0, _, e1 := syscall.Syscall6(procCreateDIBSection.Addr(), 6, uintptr(dc), uintptr(unsafe.Pointer(bmi)), uintptr(usage), uintptr(unsafe.Pointer(bits)), uintptr(section), uintptr(offset)) bitmap = syscall.Handle(r0) if bitmap == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _CreateSolidBrush(color _COLORREF) (brush syscall.Handle, err error) { r0, _, e1 := syscall.Syscall(procCreateSolidBrush.Addr(), 1, uintptr(color), 0, 0) brush = syscall.Handle(r0) if brush == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _DeleteDC(dc syscall.Handle) (err error) { r1, _, e1 := syscall.Syscall(procDeleteDC.Addr(), 1, uintptr(dc), 0, 0) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _DeleteObject(object syscall.Handle) (err error) { r1, _, e1 := syscall.Syscall(procDeleteObject.Addr(), 1, uintptr(object), 0, 0) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _FillRect(dc syscall.Handle, rc *_RECT, brush syscall.Handle) (err error) { r1, _, e1 := syscall.Syscall(procFillRect.Addr(), 3, uintptr(dc), uintptr(unsafe.Pointer(rc)), uintptr(brush)) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _ModifyWorldTransform(dc syscall.Handle, x *_XFORM, mode uint32) (err error) { r1, _, e1 := syscall.Syscall(procModifyWorldTransform.Addr(), 3, uintptr(dc), uintptr(unsafe.Pointer(x)), uintptr(mode)) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _SelectObject(dc syscall.Handle, gdiobj syscall.Handle) (newobj syscall.Handle, err error) { r0, _, e1 := syscall.Syscall(procSelectObject.Addr(), 2, uintptr(dc), uintptr(gdiobj), 0) newobj = syscall.Handle(r0) if newobj == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _SetGraphicsMode(dc syscall.Handle, mode int32) (oldmode int32, err error) { r0, _, e1 := syscall.Syscall(procSetGraphicsMode.Addr(), 2, uintptr(dc), uintptr(mode), 0) oldmode = int32(r0) if oldmode == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _SetWorldTransform(dc syscall.Handle, x *_XFORM) (err error) { r1, _, e1 := syscall.Syscall(procSetWorldTransform.Addr(), 2, uintptr(dc), uintptr(unsafe.Pointer(x)), 0) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _StretchBlt(dcdest syscall.Handle, xdest int32, ydest int32, wdest int32, hdest int32, dcsrc syscall.Handle, xsrc int32, ysrc int32, wsrc int32, hsrc int32, rop uint32) (err error) { r1, _, e1 := syscall.Syscall12(procStretchBlt.Addr(), 11, uintptr(dcdest), uintptr(xdest), uintptr(ydest), uintptr(wdest), uintptr(hdest), uintptr(dcsrc), uintptr(xsrc), uintptr(ysrc), uintptr(wsrc), uintptr(hsrc), uintptr(rop), 0) if r1 == 0 { if e1 != 0 { err = error(e1) } else { err = syscall.EINVAL } } return } func _GetDeviceCaps(dc syscall.Handle, index int32) (ret int32) { r0, _, _ := syscall.Syscall(procGetDeviceCaps.Addr(), 2, uintptr(dc), uintptr(index), 0) ret = int32(r0) return }