Documentation
¶
Overview ¶
Package win32 is the one package that holds the bindings and the helpers for calling Windows without cgo (SPEC §25.2): System32-only DLL loading, the procedure tables, UTF-16 strings, the HRESULT and GetLastError errors, the COM calls over a vtable, the COM objects that Go implements, the callbacks, and the first kernel32 bindings. It uses the standard library's syscall (SyscallN and NewCallback), never purego and never golang.org/x/sys/windows (D25).
The Go mirrors of Win32 and COM structures, the GUID and the method indexes of the COM vtables are in files with no OS tag, so that their layout tests run on the Linux host against the mingw-w64 headers (package layouttest). The calls themselves are in *_windows.go files.
Flutter: no counterpart (Flutter's Windows embedder calls Win32 from C++, engine/src/flutter/shell/platform/windows).
Index ¶
- Constants
- Variables
- func CopyUTF16(dst []uint16, s string) (truncated bool, err error)
- func HResultError(method string, hr HRESULT) error
- func SetPaintHandler(hwnd uintptr, fn PaintFunc)
- func UTF16FromString(s string) ([]uint16, error)
- func UTF16PtrFromString(s string) (*uint16, error)
- func UTF16PtrToString(p *uint16) string
- func UTF16ToString(s []uint16) string
- func Win32Error(function string, code uint32) error
- type BitmapInfo
- type BitmapInfoHeader
- type BitmapV5Header
- type CandidateForm
- type ComdlgFilterSpec
- type CompositionForm
- type CreateStruct
- type CursorInfo
- type DevMode
- type DisplayDevice
- type DropFiles
- type FileVersion
- type FormatEtc
- type GUID
- type HRESULT
- type HighContrast
- type IconInfo
- type Input
- type KeyInput
- type KeybdInput
- type LogFont
- type MenuItemInfo
- type MinMaxInfo
- type MonitorInfoEx
- type MouseInput
- type Msg
- type NcCalcSizeParams
- type NonClientMetrics
- type NotifyIconData
- type PaintFunc
- type PaintStruct
- type Point
- type PointerInfo
- type PointerPenInfo
- type PointerTouchInfo
- type Rect
- type ShellExecuteInfo
- type StgMedium
- type TrackMouseEventData
- type UiaPoint
- type UiaRect
- type VSFixedFileInfo
- type Variant
- type WaitResult
- type WindowPlacement
- type WindowPos
- type WndClassEx
Constants ¶
const ( // IUnknownQueryInterface is the index of IUnknown::QueryInterface. // // Flutter: no counterpart IUnknownQueryInterface = 0 // IUnknownAddRef is the index of IUnknown::AddRef. // // Flutter: no counterpart IUnknownAddRef = 1 // IUnknownRelease is the index of IUnknown::Release. // // Flutter: no counterpart IUnknownRelease = 2 )
The positions of the methods in the vtables of the COM interfaces that this package uses. The vtable of a COM interface is an array of function pointers; the base interfaces come first, so every interface starts with the three methods of IUnknown. The layout test of this package checks each index against the mingw-w64 headers (SPEC §25.2).
const ( // HeapZeroMemory is HEAP_ZERO_MEMORY: HeapAlloc clears the block. // // Flutter: no counterpart HeapZeroMemory = 0x00000008 // GMemMoveable is GMEM_MOVEABLE, the flag the clipboard needs for GlobalAlloc. // // Flutter: no counterpart GMemMoveable = 0x0002 // GMemZeroInit is GMEM_ZEROINIT: GlobalAlloc clears the block. // // Flutter: no counterpart GMemZeroInit = 0x0040 // WaitInfinite is the timeout that never ends (INFINITE). // // Flutter: no counterpart WaitInfinite time.Duration = -1 )
The flags and results of the kernel32 functions that this package binds (kernel32_windows.go). They carry no OS tag, so that the layout test checks them against the headers.
const ( // WMIMEStartComposition is WM_IME_STARTCOMPOSITION. // // Flutter: no counterpart WMIMEStartComposition = 0x010D // WMIMEEndComposition is WM_IME_ENDCOMPOSITION. // // Flutter: no counterpart WMIMEEndComposition = 0x010E // WMIMEComposition is WM_IME_COMPOSITION. // // Flutter: no counterpart WMIMEComposition = 0x010F // WMIMESetContext is WM_IME_SETCONTEXT. // // Flutter: no counterpart WMIMESetContext = 0x0281 // WMIMENotify is WM_IME_NOTIFY. // // Flutter: no counterpart WMIMENotify = 0x0282 // WMIMEChar is WM_IME_CHAR. // // Flutter: no counterpart WMIMEChar = 0x0286 // WMIMERequest is WM_IME_REQUEST. // // Flutter: no counterpart WMIMERequest = 0x0288 )
The messages of the input method editor.
const ( // GCSCompReadStr is GCS_COMPREADSTR. // // Flutter: no counterpart GCSCompReadStr = 0x0001 // GCSCompStr is GCS_COMPSTR. // // Flutter: no counterpart GCSCompStr = 0x0008 // GCSCompAttr is GCS_COMPATTR. // // Flutter: no counterpart GCSCompAttr = 0x0010 // GCSCompClause is GCS_COMPCLAUSE. // // Flutter: no counterpart GCSCompClause = 0x0020 // GCSCursorPos is GCS_CURSORPOS. // // Flutter: no counterpart GCSCursorPos = 0x0080 // GCSDeltaStart is GCS_DELTASTART. // // Flutter: no counterpart GCSDeltaStart = 0x0100 // GCSResultStr is GCS_RESULTSTR. // // Flutter: no counterpart GCSResultStr = 0x0800 )
The flags of WM_IME_COMPOSITION and the indices of ImmGetCompositionStringW.
const ( // CFSDefault is CFS_DEFAULT. // // Flutter: no counterpart CFSDefault = 0x0000 // CFSRect is CFS_RECT. // // Flutter: no counterpart CFSRect = 0x0001 // CFSPoint is CFS_POINT. // // Flutter: no counterpart CFSPoint = 0x0002 // CFSForcePosition is CFS_FORCE_POSITION. // // Flutter: no counterpart CFSForcePosition = 0x0020 // CFSCandidatePos is CFS_CANDIDATEPOS. // // Flutter: no counterpart CFSCandidatePos = 0x0040 // CFSExclude is CFS_EXCLUDE. // // Flutter: no counterpart CFSExclude = 0x0080 )
The styles of the composition and candidate windows.
const ( // IACEDefault is IACE_DEFAULT. // // Flutter: no counterpart IACEDefault = 0x0010 // IACEChildren is IACE_CHILDREN. // // Flutter: no counterpart IACEChildren = 0x0001 // NICompositionStr is NI_COMPOSITIONSTR. // // Flutter: no counterpart NICompositionStr = 0x0015 // NICloseCandidate is NI_CLOSECANDIDATE. // // Flutter: no counterpart NICloseCandidate = 0x0011 // CPSComplete is CPS_COMPLETE. // // Flutter: no counterpart CPSComplete = 0x0001 // CPSCancel is CPS_CANCEL. // // Flutter: no counterpart CPSCancel = 0x0004 // SCSSetStr is SCS_SETSTR. // // Flutter: no counterpart SCSSetStr = 0x0009 // ISCShowUICompositionWindow is ISC_SHOWUICOMPOSITIONWINDOW. // // Flutter: no counterpart ISCShowUICompositionWindow = 0x80000000 // ISCShowUIAllCandidateWindow is ISC_SHOWUIALLCANDIDATEWINDOW. // // Flutter: no counterpart ISCShowUIAllCandidateWindow = 0x0000000F // UnicodeNoChar is UNICODE_NOCHAR. // // Flutter: no counterpart UnicodeNoChar = 0xFFFF )
The parameters of ImmAssociateContextEx, ImmNotifyIME, ImmSetCompositionStringW and WM_IME_SETCONTEXT.
const ( // WMSetCursor is WM_SETCURSOR. // // Flutter: no counterpart WMSetCursor = 0x0020 // WMCancelMode is WM_CANCELMODE. // // Flutter: no counterpart WMCancelMode = 0x001F // WMMouseMove is WM_MOUSEMOVE. // // Flutter: no counterpart WMMouseMove = 0x0200 // WMLButtonDown is WM_LBUTTONDOWN. // // Flutter: no counterpart WMLButtonDown = 0x0201 // WMLButtonUp is WM_LBUTTONUP. // // Flutter: no counterpart WMLButtonUp = 0x0202 // WMRButtonDown is WM_RBUTTONDOWN. // // Flutter: no counterpart WMRButtonDown = 0x0204 // WMRButtonUp is WM_RBUTTONUP. // // Flutter: no counterpart WMRButtonUp = 0x0205 // WMMButtonDown is WM_MBUTTONDOWN. // // Flutter: no counterpart WMMButtonDown = 0x0207 // WMMButtonUp is WM_MBUTTONUP. // // Flutter: no counterpart WMMButtonUp = 0x0208 // WMMouseWheel is WM_MOUSEWHEEL. // // Flutter: no counterpart WMMouseWheel = 0x020A // WMXButtonDown is WM_XBUTTONDOWN. // // Flutter: no counterpart WMXButtonDown = 0x020B // WMXButtonUp is WM_XBUTTONUP. // // Flutter: no counterpart WMXButtonUp = 0x020C // WMMouseHWheel is WM_MOUSEHWHEEL. // // Flutter: no counterpart WMMouseHWheel = 0x020E // WMCaptureChanged is WM_CAPTURECHANGED. // // Flutter: no counterpart WMCaptureChanged = 0x0215 // WMMouseLeave is WM_MOUSELEAVE. // // Flutter: no counterpart WMMouseLeave = 0x02A3 // WMPointerUpdate is WM_POINTERUPDATE. // // Flutter: no counterpart WMPointerUpdate = 0x0245 // WMPointerDown is WM_POINTERDOWN. // // Flutter: no counterpart WMPointerDown = 0x0246 // WMPointerUp is WM_POINTERUP. // // Flutter: no counterpart WMPointerUp = 0x0247 // WMPointerEnter is WM_POINTERENTER. // // Flutter: no counterpart WMPointerEnter = 0x0249 // WMPointerLeave is WM_POINTERLEAVE. // // Flutter: no counterpart WMPointerLeave = 0x024A // WMPointerCaptureChanged is WM_POINTERCAPTURECHANGED. // // Flutter: no counterpart WMPointerCaptureChanged = 0x024C // MKLButton is MK_LBUTTON. // // Flutter: no counterpart MKLButton = 0x0001 // MKRButton is MK_RBUTTON. // // Flutter: no counterpart MKRButton = 0x0002 // MKShift is MK_SHIFT. // // Flutter: no counterpart MKShift = 0x0004 // MKControl is MK_CONTROL. // // Flutter: no counterpart MKControl = 0x0008 // MKMButton is MK_MBUTTON. // // Flutter: no counterpart MKMButton = 0x0010 // MKXButton1 is MK_XBUTTON1. // // Flutter: no counterpart MKXButton1 = 0x0020 // MKXButton2 is MK_XBUTTON2. // // Flutter: no counterpart MKXButton2 = 0x0040 // XButton1 is XBUTTON1, the back button of a mouse, in the high word of the wParam of WM_XBUTTON*. // // Flutter: no counterpart XButton1 = 0x0001 // XButton2 is XBUTTON2, the forward button. // // Flutter: no counterpart XButton2 = 0x0002 // WheelDelta is WHEEL_DELTA: the wheel delta of one notch. // // Flutter: no counterpart WheelDelta = 120 // WheelPageScroll is WHEEL_PAGESCROLL (UINT_MAX): the system's lines setting that scrolls a page. // // Flutter: no counterpart WheelPageScroll uint32 = 0xFFFFFFFF // TMELeave is TME_LEAVE. // // Flutter: no counterpart TMELeave = 0x00000002 // SPIGetWheelScrollLines is SPI_GETWHEELSCROLLLINES. // // Flutter: no counterpart SPIGetWheelScrollLines = 0x0068 )
The messages of the mouse and the pointer, and their parameters.
const ( // PTPointer is PT_POINTER. // // Flutter: no counterpart PTPointer = 1 // PTTouch is PT_TOUCH. // // Flutter: no counterpart PTTouch = 2 // PTPen is PT_PEN. // // Flutter: no counterpart PTPen = 3 // PTMouse is PT_MOUSE. // // Flutter: no counterpart PTMouse = 4 // PTTouchpad is PT_TOUCHPAD. // // Flutter: no counterpart PTTouchpad = 5 // PointerFlagNew is POINTER_FLAG_NEW. // // Flutter: no counterpart PointerFlagNew = 0x00000001 // PointerFlagInRange is POINTER_FLAG_INRANGE. // // Flutter: no counterpart PointerFlagInRange = 0x00000002 // PointerFlagInContact is POINTER_FLAG_INCONTACT. // // Flutter: no counterpart PointerFlagInContact = 0x00000004 // PointerFlagFirstButton is POINTER_FLAG_FIRSTBUTTON. // // Flutter: no counterpart PointerFlagFirstButton = 0x00000010 // PointerFlagSecondButton is POINTER_FLAG_SECONDBUTTON. // // Flutter: no counterpart PointerFlagSecondButton = 0x00000020 // PointerFlagThirdButton is POINTER_FLAG_THIRDBUTTON. // // Flutter: no counterpart PointerFlagThirdButton = 0x00000040 // PointerFlagCanceled is POINTER_FLAG_CANCELED. // // Flutter: no counterpart PointerFlagCanceled = 0x00008000 // PointerFlagDown is POINTER_FLAG_DOWN. // // Flutter: no counterpart PointerFlagDown = 0x00010000 // PointerFlagUpdate is POINTER_FLAG_UPDATE. // // Flutter: no counterpart PointerFlagUpdate = 0x00020000 // PointerFlagUp is POINTER_FLAG_UP. // // Flutter: no counterpart PointerFlagUp = 0x00040000 // PenFlagBarrel is PEN_FLAG_BARREL. // // Flutter: no counterpart PenFlagBarrel = 0x00000001 // PenFlagInverted is PEN_FLAG_INVERTED. // // Flutter: no counterpart PenFlagInverted = 0x00000002 // PenFlagEraser is PEN_FLAG_ERASER. // // Flutter: no counterpart PenFlagEraser = 0x00000004 // FeedbackTouchContactVisualization is FEEDBACK_TOUCH_CONTACTVISUALIZATION. // // Flutter: no counterpart FeedbackTouchContactVisualization = 1 // FeedbackPenBarrelVisualization is FEEDBACK_PEN_BARRELVISUALIZATION. // // Flutter: no counterpart FeedbackPenBarrelVisualization = 2 )
The pointer input types (POINTER_INPUT_TYPE), the pointer flags (POINTER_FLAG_*) and the pen flags.
const ( // IDCIBeam is IDC_IBEAM. // // Flutter: no counterpart IDCIBeam = 32513 // IDCWait is IDC_WAIT. // // Flutter: no counterpart IDCWait = 32514 // IDCCross is IDC_CROSS. // // Flutter: no counterpart IDCCross = 32515 // IDCSizeNWSE is IDC_SIZENWSE. // // Flutter: no counterpart IDCSizeNWSE = 32642 // IDCSizeNESW is IDC_SIZENESW. // // Flutter: no counterpart IDCSizeNESW = 32643 // IDCSizeWE is IDC_SIZEWE. // // Flutter: no counterpart IDCSizeWE = 32644 // IDCSizeNS is IDC_SIZENS. // // Flutter: no counterpart IDCSizeNS = 32645 // IDCSizeAll is IDC_SIZEALL. // // Flutter: no counterpart IDCSizeAll = 32646 // IDCNo is IDC_NO. // // Flutter: no counterpart IDCNo = 32648 // IDCHand is IDC_HAND. // // Flutter: no counterpart IDCHand = 32649 // IDCAppStarting is IDC_APPSTARTING. // // Flutter: no counterpart IDCAppStarting = 32650 // IDCHelp is IDC_HELP. // // Flutter: no counterpart IDCHelp = 32651 )
The stock cursors (IDC_*): the numbers that LoadCursor takes as resource names. They are pointer-valued macros in the headers, so the layout test leaves them out, like IDCArrow.
const ( // InputMouse is INPUT_MOUSE. // // Flutter: no counterpart InputMouse = 0 // MouseEventFMove is MOUSEEVENTF_MOVE. // // Flutter: no counterpart MouseEventFMove = 0x0001 // MouseEventFLeftDown is MOUSEEVENTF_LEFTDOWN. // // Flutter: no counterpart MouseEventFLeftDown = 0x0002 // MouseEventFLeftUp is MOUSEEVENTF_LEFTUP. // // Flutter: no counterpart MouseEventFLeftUp = 0x0004 // MouseEventFRightDown is MOUSEEVENTF_RIGHTDOWN. // // Flutter: no counterpart MouseEventFRightDown = 0x0008 // MouseEventFRightUp is MOUSEEVENTF_RIGHTUP. // // Flutter: no counterpart MouseEventFRightUp = 0x0010 // MouseEventFWheel is MOUSEEVENTF_WHEEL. // // Flutter: no counterpart MouseEventFWheel = 0x0800 // MouseEventFAbsolute is MOUSEEVENTF_ABSOLUTE. // // Flutter: no counterpart MouseEventFAbsolute = 0x8000 // MouseEventFVirtualDesk is MOUSEEVENTF_VIRTUALDESK. // // Flutter: no counterpart MouseEventFVirtualDesk = 0x4000 )
The values of SendInput (INPUT_MOUSE and MOUSEEVENTF_*), which the tests use to move the mouse and press its buttons as a user does.
const ( // WMKeyFirst is WM_KEYFIRST. // // Flutter: no counterpart WMKeyFirst = 0x0100 // WMKeyDown is WM_KEYDOWN. // // Flutter: no counterpart WMKeyDown = 0x0100 // WMKeyUp is WM_KEYUP. // // Flutter: no counterpart WMKeyUp = 0x0101 // WMChar is WM_CHAR. // // Flutter: no counterpart WMChar = 0x0102 // WMDeadChar is WM_DEADCHAR. // // Flutter: no counterpart WMDeadChar = 0x0103 // WMSysKeyDown is WM_SYSKEYDOWN. // // Flutter: no counterpart WMSysKeyDown = 0x0104 // WMSysKeyUp is WM_SYSKEYUP. // // Flutter: no counterpart WMSysKeyUp = 0x0105 // WMSysChar is WM_SYSCHAR. // // Flutter: no counterpart WMSysChar = 0x0106 // WMSysDeadChar is WM_SYSDEADCHAR. // // Flutter: no counterpart WMSysDeadChar = 0x0107 // WMUniChar is WM_UNICHAR. // // Flutter: no counterpart WMUniChar = 0x0109 // WMKeyLast is WM_KEYLAST. // // Flutter: no counterpart WMKeyLast = 0x0109 // WMInputLangChange is WM_INPUTLANGCHANGE. // // Flutter: no counterpart WMInputLangChange = 0x0051 )
The messages of the keyboard and the input language.
const ( // VKBack is VK_BACK. // // Flutter: no counterpart VKBack = 0x08 // VKTab is VK_TAB. // // Flutter: no counterpart VKTab = 0x09 // VKReturn is VK_RETURN. // // Flutter: no counterpart VKReturn = 0x0D // VKShift is VK_SHIFT. // // Flutter: no counterpart VKShift = 0x10 // VKControl is VK_CONTROL. // // Flutter: no counterpart VKControl = 0x11 // VKMenu is VK_MENU. // // Flutter: no counterpart VKMenu = 0x12 // VKCapital is VK_CAPITAL. // // Flutter: no counterpart VKCapital = 0x14 // VKEscape is VK_ESCAPE. // // Flutter: no counterpart VKEscape = 0x1B // VKSpace is VK_SPACE. // // Flutter: no counterpart VKSpace = 0x20 // VKPrior is VK_PRIOR. // // Flutter: no counterpart VKPrior = 0x21 // VKNext is VK_NEXT. // // Flutter: no counterpart VKNext = 0x22 // VKEnd is VK_END. // // Flutter: no counterpart VKEnd = 0x23 // VKHome is VK_HOME. // // Flutter: no counterpart VKHome = 0x24 // VKLeft is VK_LEFT. // // Flutter: no counterpart VKLeft = 0x25 // VKUp is VK_UP. // // Flutter: no counterpart VKUp = 0x26 // VKRight is VK_RIGHT. // // Flutter: no counterpart VKRight = 0x27 // VKDown is VK_DOWN. // // Flutter: no counterpart VKDown = 0x28 // VKInsert is VK_INSERT. // // Flutter: no counterpart VKInsert = 0x2D // VKDelete is VK_DELETE. // // Flutter: no counterpart VKDelete = 0x2E // VKLWin is VK_LWIN. // // Flutter: no counterpart VKLWin = 0x5B // VKRWin is VK_RWIN. // // Flutter: no counterpart VKRWin = 0x5C // VKApps is VK_APPS. // // Flutter: no counterpart VKApps = 0x5D // VKNumpad0 is VK_NUMPAD0. // // Flutter: no counterpart VKNumpad0 = 0x60 // VKNumpad1 is VK_NUMPAD1. // // Flutter: no counterpart VKNumpad1 = 0x61 // VKDivide is VK_DIVIDE. // // Flutter: no counterpart VKDivide = 0x6F // VKF4 is VK_F4. // // Flutter: no counterpart VKF4 = 0x73 // VKF10 is VK_F10. // // Flutter: no counterpart VKF10 = 0x79 // VKNumLock is VK_NUMLOCK. // // Flutter: no counterpart VKNumLock = 0x90 // VKScroll is VK_SCROLL. // // Flutter: no counterpart VKScroll = 0x91 // VKLShift is VK_LSHIFT. // // Flutter: no counterpart VKLShift = 0xA0 // VKRShift is VK_RSHIFT. // // Flutter: no counterpart VKRShift = 0xA1 // VKLControl is VK_LCONTROL. // // Flutter: no counterpart VKLControl = 0xA2 // VKRControl is VK_RCONTROL. // // Flutter: no counterpart VKRControl = 0xA3 // VKLMenu is VK_LMENU. // // Flutter: no counterpart VKLMenu = 0xA4 // VKRMenu is VK_RMENU. // // Flutter: no counterpart VKRMenu = 0xA5 // VKProcessKey is VK_PROCESSKEY. // // Flutter: no counterpart VKProcessKey = 0xE5 // VKPacket is VK_PACKET. // // Flutter: no counterpart VKPacket = 0xE7 )
The virtual-key codes that the keyboard code names (the others come from Flutter's tables).
const ( // MapVKVKToVSC is MAPVK_VK_TO_VSC. // // Flutter: no counterpart MapVKVKToVSC = 0 // MapVKVSCToVK is MAPVK_VSC_TO_VK. // // Flutter: no counterpart MapVKVSCToVK = 1 // MapVKVKToChar is MAPVK_VK_TO_CHAR. // // Flutter: no counterpart MapVKVKToChar = 2 // MapVKVSCToVKEx is MAPVK_VSC_TO_VK_EX. // // Flutter: no counterpart MapVKVSCToVKEx = 3 // MapVKVKToVSCEx is MAPVK_VK_TO_VSC_EX. // // Flutter: no counterpart MapVKVKToVSCEx = 4 // InputKeyboard is INPUT_KEYBOARD. // // Flutter: no counterpart InputKeyboard = 1 // KeyEventFExtendedKey is KEYEVENTF_EXTENDEDKEY. // // Flutter: no counterpart KeyEventFExtendedKey = 0x0001 // KeyEventFKeyUp is KEYEVENTF_KEYUP. // // Flutter: no counterpart KeyEventFKeyUp = 0x0002 // KeyEventFUnicode is KEYEVENTF_UNICODE. // // Flutter: no counterpart KeyEventFUnicode = 0x0004 // KeyEventFScanCode is KEYEVENTF_SCANCODE. // // Flutter: no counterpart KeyEventFScanCode = 0x0008 // KLFActivate is KLF_ACTIVATE. // // Flutter: no counterpart KLFActivate = 0x00000001 // KLFSubstituteOK is KLF_SUBSTITUTE_OK. // // Flutter: no counterpart KLFSubstituteOK = 0x00000002 )
The parameters of MapVirtualKey, SendInput (keyboard input) and LoadKeyboardLayout.
const ( // DropEffectNone is DROPEFFECT_NONE: the drop is not accepted. // // Flutter: no counterpart DropEffectNone = 0 // DropEffectCopy is DROPEFFECT_COPY. // // Flutter: no counterpart DropEffectCopy = 1 // DropEffectMove is DROPEFFECT_MOVE. // // Flutter: no counterpart DropEffectMove = 2 // DropEffectLink is DROPEFFECT_LINK. // // Flutter: no counterpart DropEffectLink = 4 // DropEffectScroll is DROPEFFECT_SCROLL: the target scrolls while the pointer is over it. // // Flutter: no counterpart DropEffectScroll = 0x80000000 )
The effects of a drag and drop operation (DROPEFFECT_*), a bit set.
const ( // CFText is CF_TEXT: ANSI text. // // Flutter: no counterpart CFText = 1 // CFOEMText is CF_OEMTEXT: text in the OEM code page. // // Flutter: no counterpart CFOEMText = 7 )
The clipboard formats of the data of a drag besides CF_UNICODETEXT and CF_HDROP.
const ( // FormatNameURLW is the name of the registered format that holds a URL as UTF-16. // // Flutter: no counterpart FormatNameURLW = "UniformResourceLocatorW" // FormatNameURL is the name of the registered format that holds a URL as ANSI text. // // Flutter: no counterpart FormatNameURL = "UniformResourceLocator" )
The registered clipboard formats of a URL (CFSTR_INETURLW and CFSTR_INETURLA): an Internet shortcut dragged from a browser. The data is the URL, UTF-16 for the first and ANSI for the second, ended by a NUL.
const ( // TymedHGlobal is TYMED_HGLOBAL: the data is in global memory. // // Flutter: no counterpart TymedHGlobal = 1 // TymedIStream is TYMED_ISTREAM: the data is a stream. // // Flutter: no counterpart TymedIStream = 4 // DVAspectContent is DVASPECT_CONTENT: the data itself. // // Flutter: no counterpart DVAspectContent = 1 // DataDirGet is DATADIR_GET: the formats that GetData can give. // // Flutter: no counterpart DataDirGet = 1 // DataDirSet is DATADIR_SET: the formats that SetData can take. // // Flutter: no counterpart DataDirSet = 2 )
The media and aspects of FORMATETC and STGMEDIUM.
const ( // IDropTargetDragEnter is the index of IDropTarget::DragEnter. // // Flutter: no counterpart IDropTargetDragEnter = 3 // IDropTargetDragOver is the index of IDropTarget::DragOver. // // Flutter: no counterpart IDropTargetDragOver = 4 // IDropTargetDragLeave is the index of IDropTarget::DragLeave. // // Flutter: no counterpart IDropTargetDragLeave = 5 // IDropTargetDrop is the index of IDropTarget::Drop. // // Flutter: no counterpart IDropTargetDrop = 6 // IDropSourceQueryContinueDrag is the index of IDropSource::QueryContinueDrag. // // Flutter: no counterpart IDropSourceQueryContinueDrag = 3 // IDropSourceGiveFeedback is the index of IDropSource::GiveFeedback. // // Flutter: no counterpart IDropSourceGiveFeedback = 4 // IDataObjectGetData is the index of IDataObject::GetData. // // Flutter: no counterpart IDataObjectGetData = 3 // IDataObjectGetDataHere is the index of IDataObject::GetDataHere. // // Flutter: no counterpart IDataObjectGetDataHere = 4 // IDataObjectQueryGetData is the index of IDataObject::QueryGetData. // // Flutter: no counterpart IDataObjectQueryGetData = 5 // IDataObjectGetCanonicalFormatEtc is the index of IDataObject::GetCanonicalFormatEtc. // // Flutter: no counterpart IDataObjectGetCanonicalFormatEtc = 6 // IDataObjectSetData is the index of IDataObject::SetData. // // Flutter: no counterpart IDataObjectSetData = 7 // IDataObjectEnumFormatEtc is the index of IDataObject::EnumFormatEtc. // // Flutter: no counterpart IDataObjectEnumFormatEtc = 8 // IDataObjectDAdvise is the index of IDataObject::DAdvise. // // Flutter: no counterpart IDataObjectDAdvise = 9 // IDataObjectDUnadvise is the index of IDataObject::DUnadvise. // // Flutter: no counterpart IDataObjectDUnadvise = 10 // IDataObjectEnumDAdvise is the index of IDataObject::EnumDAdvise. // // Flutter: no counterpart IDataObjectEnumDAdvise = 11 // IEnumFormatEtcNext is the index of IEnumFORMATETC::Next. // // Flutter: no counterpart IEnumFormatEtcNext = 3 // IEnumFormatEtcSkip is the index of IEnumFORMATETC::Skip. // // Flutter: no counterpart IEnumFormatEtcSkip = 4 // IEnumFormatEtcReset is the index of IEnumFORMATETC::Reset. // // Flutter: no counterpart IEnumFormatEtcReset = 5 // IEnumFormatEtcClone is the index of IEnumFORMATETC::Clone. // // Flutter: no counterpart IEnumFormatEtcClone = 6 )
The positions of the methods in the vtables of drag and drop. The layout test checks each against the headers.
const ( // NIMAdd is NIM_ADD. // // Flutter: no counterpart NIMAdd = 0 // NIMModify is NIM_MODIFY. // // Flutter: no counterpart NIMModify = 1 // NIMDelete is NIM_DELETE. // // Flutter: no counterpart NIMDelete = 2 // NIMSetVersion is NIM_SETVERSION. // // Flutter: no counterpart NIMSetVersion = 4 )
The commands of Shell_NotifyIconW.
const ( // NIFMessage is NIF_MESSAGE: uCallbackMessage is valid. // // Flutter: no counterpart NIFMessage = 0x01 // NIFIcon is NIF_ICON: hIcon is valid. // // Flutter: no counterpart NIFIcon = 0x02 // NIFTip is NIF_TIP: szTip is valid. // // Flutter: no counterpart NIFTip = 0x04 // NIFState is NIF_STATE: dwState and dwStateMask are valid. // // Flutter: no counterpart NIFState = 0x08 // NIFInfo is NIF_INFO: the balloon members are valid. // // Flutter: no counterpart NIFInfo = 0x10 // NIFShowTip is NIF_SHOWTIP: the standard tooltip is shown (with version 4 the tip is shown only with it). // // Flutter: no counterpart NIFShowTip = 0x80 )
The members of NOTIFYICONDATAW that are set (uFlags).
const ( // NIIFNone is NIIF_NONE: no icon. // // Flutter: no counterpart NIIFNone = 0x00 // NIIFInfo is NIIF_INFO: the information icon. // // Flutter: no counterpart NIIFInfo = 0x01 // NIIFWarning is NIIF_WARNING: the warning icon. // // Flutter: no counterpart NIIFWarning = 0x02 // NIIFUser is NIIF_USER: the icon of hBalloonIcon. // // Flutter: no counterpart NIIFUser = 0x04 // NIIFNoSound is NIIF_NOSOUND: the balloon makes no sound. // // Flutter: no counterpart NIIFNoSound = 0x10 // NIIFLargeIcon is NIIF_LARGE_ICON: the icon is the large one. // // Flutter: no counterpart NIIFLargeIcon = 0x20 )
The flags of a balloon (dwInfoFlags).
const ( // NotifyIconVersion4 is NOTIFYICON_VERSION_4. // // Flutter: no counterpart NotifyIconVersion4 = 4 // NINSelect is NIN_SELECT (WM_USER + 0): the icon was selected with the left button or the keyboard. // // Flutter: no counterpart NINSelect = 0x0400 // NINKeySelect is NIN_KEYSELECT (NINF_KEY | NIN_SELECT): the icon was selected with the keyboard. // // Flutter: no counterpart NINKeySelect = 0x0401 // NINBalloonShow is NIN_BALLOONSHOW. // // Flutter: no counterpart NINBalloonShow = 0x0402 // NINBalloonHide is NIN_BALLOONHIDE. // // Flutter: no counterpart NINBalloonHide = 0x0403 // NINBalloonTimeout is NIN_BALLOONTIMEOUT. // // Flutter: no counterpart NINBalloonTimeout = 0x0404 // NINBalloonUserClick is NIN_BALLOONUSERCLICK. // // Flutter: no counterpart NINBalloonUserClick = 0x0405 // WMContextMenu is WM_CONTEXTMENU. // // Flutter: no counterpart WMContextMenu = 0x007B // WMCommand is WM_COMMAND. // // Flutter: no counterpart WMCommand = 0x0111 // IDCancel is IDCANCEL. // // Flutter: no counterpart IDCancel = 2 )
The events a notify icon sends to its window (the low word of lParam with NOTIFYICON_VERSION_4).
const ( // MIIMState is MIIM_STATE. // // Flutter: no counterpart MIIMState = 0x0001 // MIIMID is MIIM_ID. // // Flutter: no counterpart MIIMID = 0x0002 // MIIMSubMenu is MIIM_SUBMENU. // // Flutter: no counterpart MIIMSubMenu = 0x0004 // MIIMString is MIIM_STRING. // // Flutter: no counterpart MIIMString = 0x0040 // MIIMFType is MIIM_FTYPE. // // Flutter: no counterpart MIIMFType = 0x0100 // MFTString is MFT_STRING. // // Flutter: no counterpart MFTString = 0x0000 // MFTRadioCheck is MFT_RADIOCHECK. // // Flutter: no counterpart MFTRadioCheck = 0x0200 // MFTSeparator is MFT_SEPARATOR. // // Flutter: no counterpart MFTSeparator = 0x0800 // MFSGrayed is MFS_GRAYED (MFS_DISABLED has the same value). // // Flutter: no counterpart MFSGrayed = 0x0003 // MFSChecked is MFS_CHECKED. // // Flutter: no counterpart MFSChecked = 0x0008 // TPMRightButton is TPM_RIGHTBUTTON. // // Flutter: no counterpart TPMRightButton = 0x0002 // TPMNoNotify is TPM_NONOTIFY. // // Flutter: no counterpart TPMNoNotify = 0x0080 )
The members of MENUITEMINFOW that are set (fMask), its types (fType) and states (fState).
const ( // SEEMaskNoAsync is SEE_MASK_NOASYNC: wait for the DDE conversation to end before returning. // // Flutter: no counterpart SEEMaskNoAsync = 0x00000100 // SEEMaskFlagNoUI is SEE_MASK_FLAG_NO_UI: no error dialog. // // Flutter: no counterpart SEEMaskFlagNoUI = 0x00000400 // SEErrNoAssoc is SE_ERR_NOASSOC: no application is associated with the file or the scheme. // // Flutter: no counterpart SEErrNoAssoc = 31 // SEErrAssocIncomplete is SE_ERR_ASSOCINCOMPLETE: the association is incomplete. // // Flutter: no counterpart SEErrAssocIncomplete = 27 // ErrorNoAssociation is ERROR_NO_ASSOCIATION. // // Flutter: no counterpart ErrorNoAssociation = 1155 )
The values of ShellExecuteExW.
const ( // FOSOverwritePrompt is FOS_OVERWRITEPROMPT. // // Flutter: no counterpart FOSOverwritePrompt = 0x00000002 // FOSNoChangeDir is FOS_NOCHANGEDIR. // // Flutter: no counterpart FOSNoChangeDir = 0x00000008 // FOSPickFolders is FOS_PICKFOLDERS. // // Flutter: no counterpart FOSPickFolders = 0x00000020 // FOSForceFileSystem is FOS_FORCEFILESYSTEM. // // Flutter: no counterpart FOSForceFileSystem = 0x00000040 // FOSAllowMultiSelect is FOS_ALLOWMULTISELECT. // // Flutter: no counterpart FOSAllowMultiSelect = 0x00000200 // FOSPathMustExist is FOS_PATHMUSTEXIST. // // Flutter: no counterpart FOSPathMustExist = 0x00000800 // FOSFileMustExist is FOS_FILEMUSTEXIST. // // Flutter: no counterpart FOSFileMustExist = 0x00001000 // SIGDNFileSysPath is SIGDN_FILESYSPATH. // // Flutter: no counterpart SIGDNFileSysPath = 0x80058000 // COInitApartmentThreaded is COINIT_APARTMENTTHREADED. // // Flutter: no counterpart COInitApartmentThreaded = 0x2 // CLSCTXInprocServer is CLSCTX_INPROC_SERVER. // // Flutter: no counterpart CLSCTXInprocServer = 0x1 )
The values of the common item dialogs.
const ( // IModalWindowShow is the index of IModalWindow::Show. // // Flutter: no counterpart IModalWindowShow = 3 // IFileDialogSetFileTypes is the index of IFileDialog::SetFileTypes. // // Flutter: no counterpart IFileDialogSetFileTypes = 4 // IFileDialogSetFileTypeIndex is the index of IFileDialog::SetFileTypeIndex. // // Flutter: no counterpart IFileDialogSetFileTypeIndex = 5 // IFileDialogGetFileTypeIndex is the index of IFileDialog::GetFileTypeIndex. // // Flutter: no counterpart IFileDialogGetFileTypeIndex = 6 // IFileDialogSetOptions is the index of IFileDialog::SetOptions. // // Flutter: no counterpart IFileDialogSetOptions = 9 // IFileDialogGetOptions is the index of IFileDialog::GetOptions. // // Flutter: no counterpart IFileDialogGetOptions = 10 // IFileDialogSetFolder is the index of IFileDialog::SetFolder. // // Flutter: no counterpart IFileDialogSetFolder = 12 // IFileDialogSetFileName is the index of IFileDialog::SetFileName. // // Flutter: no counterpart IFileDialogSetFileName = 15 // IFileDialogSetTitle is the index of IFileDialog::SetTitle. // // Flutter: no counterpart IFileDialogSetTitle = 17 // IFileDialogSetOkButtonLabel is the index of IFileDialog::SetOkButtonLabel. // // Flutter: no counterpart IFileDialogSetOkButtonLabel = 18 // IFileDialogGetResult is the index of IFileDialog::GetResult. // // Flutter: no counterpart IFileDialogGetResult = 20 // IFileDialogSetDefaultExtension is the index of IFileDialog::SetDefaultExtension. // // Flutter: no counterpart IFileDialogSetDefaultExtension = 22 // IFileDialogClose is the index of IFileDialog::Close. // // Flutter: no counterpart IFileDialogClose = 23 // IFileOpenDialogGetResults is the index of IFileOpenDialog::GetResults. // // Flutter: no counterpart IFileOpenDialogGetResults = 27 // IShellItemGetDisplayName is the index of IShellItem::GetDisplayName. // // Flutter: no counterpart IShellItemGetDisplayName = 5 // IShellItemArrayGetCount is the index of IShellItemArray::GetCount. // // Flutter: no counterpart IShellItemArrayGetCount = 7 // IShellItemArrayGetItemAt is the index of IShellItemArray::GetItemAt. // // Flutter: no counterpart IShellItemArrayGetItemAt = 8 )
The positions of the methods in the vtables of the common item dialogs and of the shell items. IFileOpenDialog and IFileSaveDialog start with all of IFileDialog's methods (which start with IModalWindow's). The layout test checks each against the headers.
const ( // CFDIB is CF_DIB. // // Flutter: no counterpart CFDIB = 8 // CFUnicodeText is CF_UNICODETEXT: the text of the clipboard, UTF-16 with a terminating NUL. // // Flutter: no counterpart CFUnicodeText = 13 // CFHDrop is CF_HDROP: the files of the clipboard, a DROPFILES followed by the paths. // // Flutter: no counterpart CFHDrop = 15 // CFDIBV5 is CF_DIBV5: a bitmap with a BITMAPV5HEADER. // // Flutter: no counterpart CFDIBV5 = 17 // BIBitfields is BI_BITFIELDS. // // Flutter: no counterpart BIBitfields = 3 // LCSsRGB is LCS_sRGB, the color space "sRGB" of a BITMAPV5HEADER. // // Flutter: no counterpart LCSsRGB = 0x73524742 // LCSGMImages is LCS_GM_IMAGES, the rendering intent that keeps the match of the colors. // // Flutter: no counterpart LCSGMImages = 4 // SPIGetNonClientMetrics is SPI_GETNONCLIENTMETRICS. // // Flutter: no counterpart SPIGetNonClientMetrics = 0x0029 // SPIGetHighContrast is SPI_GETHIGHCONTRAST. // // Flutter: no counterpart SPIGetHighContrast = 0x0042 // SPIGetFontSmoothing is SPI_GETFONTSMOOTHING. // // Flutter: no counterpart SPIGetFontSmoothing = 0x004A // SPIGetClientAreaAnimation is SPI_GETCLIENTAREAANIMATION. // // Flutter: no counterpart SPIGetClientAreaAnimation = 0x1042 // SPIGetFontSmoothingType is SPI_GETFONTSMOOTHINGTYPE. // // Flutter: no counterpart SPIGetFontSmoothingType = 0x200A // SPIGetFontSmoothingOrientation is SPI_GETFONTSMOOTHINGORIENTATION. // // Flutter: no counterpart SPIGetFontSmoothingOrientation = 0x2012 // FEFontSmoothingStandard is FE_FONTSMOOTHINGSTANDARD (gray levels). // // Flutter: no counterpart FEFontSmoothingStandard = 1 // FEFontSmoothingClearType is FE_FONTSMOOTHINGCLEARTYPE (sub-pixel). // // Flutter: no counterpart FEFontSmoothingClearType = 2 // HCFHighContrastOn is HCF_HIGHCONTRASTON. // // Flutter: no counterpart HCFHighContrastOn = 0x00000001 // SMCxCursor is SM_CXCURSOR. // // Flutter: no counterpart SMCxCursor = 13 // MUILanguageName is MUI_LANGUAGE_NAME: the languages as BCP 47 names. // // Flutter: no counterpart MUILanguageName = 0x8 // LocaleSShortTime is LOCALE_SSHORTTIME: the short time pattern of the user's locale. // // Flutter: no counterpart LocaleSShortTime = 0x00000079 // EndSessionCloseApp is ENDSESSION_CLOSEAPP (the application is being closed for an update). // // Flutter: no counterpart EndSessionCloseApp = 0x00000001 // EndSessionCritical is ENDSESSION_CRITICAL (the application is forced to end). // // Flutter: no counterpart EndSessionCritical = 0x40000000 // EndSessionLogoff is ENDSESSION_LOGOFF (the user is logging off). // // Flutter: no counterpart EndSessionLogoff = 0x80000000 // KeyRead is KEY_READ. // // Flutter: no counterpart KeyRead = 0x00020019 // RRFRTRegSZ is RRF_RT_REG_SZ. // // Flutter: no counterpart RRFRTRegSZ = 0x00000002 // RRFRTRegExpandSZ is RRF_RT_REG_EXPAND_SZ. // // Flutter: no counterpart RRFRTRegExpandSZ = 0x00000004 )
The clipboard formats, the system parameters and the other values of step 28.6 (SPEC §25.7, §25.8). They carry no OS tag, so that the layout test checks them against the headers.
const ( // WSOverlapped is WS_OVERLAPPED. // // Flutter: no counterpart WSOverlapped uint32 = 0x00000000 // WSPopup is WS_POPUP. // // Flutter: no counterpart WSPopup uint32 = 0x80000000 // WSVisible is WS_VISIBLE. // // Flutter: no counterpart WSVisible uint32 = 0x10000000 // WSDisabled is WS_DISABLED. // // Flutter: no counterpart WSDisabled uint32 = 0x08000000 // WSClipSiblings is WS_CLIPSIBLINGS. // // Flutter: no counterpart WSClipSiblings uint32 = 0x04000000 // WSClipChildren is WS_CLIPCHILDREN. // // Flutter: no counterpart WSClipChildren uint32 = 0x02000000 // WSMinimize is WS_MINIMIZE. // // Flutter: no counterpart WSMinimize uint32 = 0x20000000 // WSMaximize is WS_MAXIMIZE. // // Flutter: no counterpart WSMaximize uint32 = 0x01000000 // WSCaption is WS_CAPTION (WS_BORDER | WS_DLGFRAME). // // Flutter: no counterpart WSCaption uint32 = 0x00C00000 // WSSysMenu is WS_SYSMENU. // // Flutter: no counterpart WSSysMenu uint32 = 0x00080000 // WSThickFrame is WS_THICKFRAME. // // Flutter: no counterpart WSThickFrame uint32 = 0x00040000 // WSMinimizeBox is WS_MINIMIZEBOX. // // Flutter: no counterpart WSMinimizeBox uint32 = 0x00020000 // WSMaximizeBox is WS_MAXIMIZEBOX. // // Flutter: no counterpart WSMaximizeBox uint32 = 0x00010000 // WSOverlappedWindow is WS_OVERLAPPEDWINDOW: the style of an ordinary window. // // Flutter: no counterpart WSOverlappedWindow uint32 = 0x00CF0000 // WSExDlgModalFrame is WS_EX_DLGMODALFRAME. // // Flutter: no counterpart WSExDlgModalFrame uint32 = 0x00000001 // WSExToolWindow is WS_EX_TOOLWINDOW. // // Flutter: no counterpart WSExToolWindow uint32 = 0x00000080 // WSExWindowEdge is WS_EX_WINDOWEDGE. // // Flutter: no counterpart WSExWindowEdge uint32 = 0x00000100 // WSExClientEdge is WS_EX_CLIENTEDGE. // // Flutter: no counterpart WSExClientEdge uint32 = 0x00000200 // WSExStaticEdge is WS_EX_STATICEDGE. // // Flutter: no counterpart WSExStaticEdge uint32 = 0x00020000 // WSExAppWindow is WS_EX_APPWINDOW. // // Flutter: no counterpart WSExAppWindow uint32 = 0x00040000 )
The window styles (WS_*) and the extended window styles (WS_EX_*).
const ( // WMNull is WM_NULL. // // Flutter: no counterpart WMNull = 0x0000 // WMCreate is WM_CREATE. // // Flutter: no counterpart WMCreate = 0x0001 // WMDestroy is WM_DESTROY. // // Flutter: no counterpart WMDestroy = 0x0002 // WMSize is WM_SIZE. // // Flutter: no counterpart WMSize = 0x0005 // WMActivate is WM_ACTIVATE. // // Flutter: no counterpart WMActivate = 0x0006 // WMSetFocus is WM_SETFOCUS. // // Flutter: no counterpart WMSetFocus = 0x0007 // WMKillFocus is WM_KILLFOCUS. // // Flutter: no counterpart WMKillFocus = 0x0008 // WMPaint is WM_PAINT. // // Flutter: no counterpart WMPaint = 0x000F // WMClose is WM_CLOSE. // // Flutter: no counterpart WMClose = 0x0010 // WMQueryEndSession is WM_QUERYENDSESSION. // // Flutter: no counterpart WMQueryEndSession = 0x0011 // WMEraseBkgnd is WM_ERASEBKGND. // // Flutter: no counterpart WMEraseBkgnd = 0x0014 // WMEndSession is WM_ENDSESSION. // // Flutter: no counterpart WMEndSession = 0x0016 // WMSettingChange is WM_SETTINGCHANGE. // // Flutter: no counterpart WMSettingChange = 0x001A // WMShowWindow is WM_SHOWWINDOW. // // Flutter: no counterpart WMShowWindow = 0x0018 // WMGetObject is WM_GETOBJECT: an accessibility client asks the window for an object (SPEC §25.11). // // Flutter: shell/platform/windows/flutter_window.cc FlutterWindow::HandleMessage WMGetObject = 0x003D // WMGetMinMaxInfo is WM_GETMINMAXINFO. // // Flutter: no counterpart WMGetMinMaxInfo = 0x0024 // WMWindowPosChanged is WM_WINDOWPOSCHANGED. // // Flutter: no counterpart WMWindowPosChanged = 0x0047 // WMDisplayChange is WM_DISPLAYCHANGE. // // Flutter: no counterpart WMDisplayChange = 0x007E // WMGetIcon is WM_GETICON. // // Flutter: no counterpart WMGetIcon = 0x007F // WMSetIcon is WM_SETICON. // // Flutter: no counterpart WMSetIcon = 0x0080 // WMNCCreate is WM_NCCREATE. // // Flutter: no counterpart WMNCCreate = 0x0081 // WMNCDestroy is WM_NCDESTROY. // // Flutter: no counterpart WMNCDestroy = 0x0082 // WMNCCalcSize is WM_NCCALCSIZE. // // Flutter: no counterpart WMNCCalcSize = 0x0083 // WMNCHitTest is WM_NCHITTEST. // // Flutter: no counterpart WMNCHitTest = 0x0084 // WMNCLButtonDown is WM_NCLBUTTONDOWN. // // Flutter: no counterpart WMNCLButtonDown = 0x00A1 // WMSysCommand is WM_SYSCOMMAND. // // Flutter: no counterpart WMSysCommand = 0x0112 // WMTimer is WM_TIMER. // // Flutter: no counterpart WMTimer = 0x0113 // WMEnterMenuLoop is WM_ENTERMENULOOP. // // Flutter: no counterpart WMEnterMenuLoop = 0x0211 // WMExitMenuLoop is WM_EXITMENULOOP. // // Flutter: no counterpart WMExitMenuLoop = 0x0212 // WMEnterSizeMove is WM_ENTERSIZEMOVE. // // Flutter: no counterpart WMEnterSizeMove = 0x0231 // WMExitSizeMove is WM_EXITSIZEMOVE. // // Flutter: no counterpart WMExitSizeMove = 0x0232 // WMDpiChanged is WM_DPICHANGED. // // Flutter: no counterpart WMDpiChanged = 0x02E0 // WMDwmColorizationColorChanged is WM_DWMCOLORIZATIONCOLORCHANGED. // // Flutter: no counterpart WMDwmColorizationColorChanged = 0x0320 // WMApp is WM_APP: the first message number an app may use for its own. // // Flutter: no counterpart WMApp = 0x8000 // SizeRestored is SIZE_RESTORED, the wParam of WM_SIZE for a window that is neither minimized nor maximized. // // Flutter: no counterpart SizeRestored = 0 // SizeMinimized is SIZE_MINIMIZED. // // Flutter: no counterpart SizeMinimized = 1 // SizeMaximized is SIZE_MAXIMIZED. // // Flutter: no counterpart SizeMaximized = 2 // SizeMaxShow is SIZE_MAXSHOW. // // Flutter: no counterpart SizeMaxShow = 3 // SizeMaxHide is SIZE_MAXHIDE. // // Flutter: no counterpart SizeMaxHide = 4 // WAInactive is WA_INACTIVE, the low word of the wParam of WM_ACTIVATE for a window that is deactivated. // // Flutter: no counterpart WAInactive = 0 // WAActive is WA_ACTIVE. // // Flutter: no counterpart WAActive = 1 // WAClickActive is WA_CLICKACTIVE. // // Flutter: no counterpart WAClickActive = 2 // IconSmall is ICON_SMALL, the wParam of WM_SETICON for the small icon. // // Flutter: no counterpart IconSmall = 0 // IconBig is ICON_BIG. // // Flutter: no counterpart IconBig = 1 )
The window messages (WM_*), the registered range and the values that go with them.
const ( // HTClient is HTCLIENT. // // Flutter: no counterpart HTClient = 1 // HTCaption is HTCAPTION. // // Flutter: no counterpart HTCaption = 2 // HTSysMenu is HTSYSMENU. // // Flutter: no counterpart HTSysMenu = 3 // HTLeft is HTLEFT. // // Flutter: no counterpart HTLeft = 10 // HTRight is HTRIGHT. // // Flutter: no counterpart HTRight = 11 // HTTop is HTTOP. // // Flutter: no counterpart HTTop = 12 // HTTopLeft is HTTOPLEFT. // // Flutter: no counterpart HTTopLeft = 13 // HTTopRight is HTTOPRIGHT. // // Flutter: no counterpart HTTopRight = 14 // HTBottom is HTBOTTOM. // // Flutter: no counterpart HTBottom = 15 // HTBottomLeft is HTBOTTOMLEFT. // // Flutter: no counterpart HTBottomLeft = 16 // HTBottomRight is HTBOTTOMRIGHT. // // Flutter: no counterpart HTBottomRight = 17 // SCMove is SC_MOVE. // // Flutter: no counterpart SCMove = 0xF010 // SCMinimize is SC_MINIMIZE. // // Flutter: no counterpart SCMinimize = 0xF020 // SCMaximize is SC_MAXIMIZE. // // Flutter: no counterpart SCMaximize = 0xF030 // SCClose is SC_CLOSE. // // Flutter: no counterpart SCClose = 0xF060 // SCRestore is SC_RESTORE. // // Flutter: no counterpart SCRestore = 0xF120 )
The results of WM_NCHITTEST (HT*), and the commands of WM_SYSCOMMAND (SC_*).
const ( // SWHide is SW_HIDE. // // Flutter: no counterpart SWHide = 0 // SWShowNormal is SW_SHOWNORMAL. // // Flutter: no counterpart SWShowNormal = 1 // SWShowMinimized is SW_SHOWMINIMIZED. // // Flutter: no counterpart SWShowMinimized = 2 // SWShowMaximized is SW_SHOWMAXIMIZED, which is also SW_MAXIMIZE. // // Flutter: no counterpart SWShowMaximized = 3 // SWShowNoActivate is SW_SHOWNOACTIVATE. // // Flutter: no counterpart SWShowNoActivate = 4 // SWShow is SW_SHOW. // // Flutter: no counterpart SWShow = 5 // SWMinimize is SW_MINIMIZE. // // Flutter: no counterpart SWMinimize = 6 // SWShowMinNoActive is SW_SHOWMINNOACTIVE. // // Flutter: no counterpart SWShowMinNoActive = 7 // SWRestore is SW_RESTORE. // // Flutter: no counterpart SWRestore = 9 // SWPNoSize is SWP_NOSIZE. // // Flutter: no counterpart SWPNoSize = 0x0001 // SWPNoMove is SWP_NOMOVE. // // Flutter: no counterpart SWPNoMove = 0x0002 // SWPNoZOrder is SWP_NOZORDER. // // Flutter: no counterpart SWPNoZOrder = 0x0004 // SWPNoActivate is SWP_NOACTIVATE. // // Flutter: no counterpart SWPNoActivate = 0x0010 // SWPFrameChanged is SWP_FRAMECHANGED. // // Flutter: no counterpart SWPFrameChanged = 0x0020 // SWPShowWindow is SWP_SHOWWINDOW. // // Flutter: no counterpart SWPShowWindow = 0x0040 // SWPNoOwnerZOrder is SWP_NOOWNERZORDER. // // Flutter: no counterpart SWPNoOwnerZOrder = 0x0200 // CWUseDefault is CW_USEDEFAULT, as the unsigned value the header writes. // // Flutter: no counterpart CWUseDefault uint32 = 0x80000000 )
The arguments of ShowWindow (SW_*) and SetWindowPos (SWP_*), and the special window handles.
const ( // GWLStyle is GWL_STYLE (-16). // // Flutter: no counterpart GWLStyle = -16 // GWLExStyle is GWL_EXSTYLE (-20). // // Flutter: no counterpart GWLExStyle = -20 // GWLPHwndParent is GWLP_HWNDPARENT (-8): the owner of a top-level window. // // Flutter: no counterpart GWLPHwndParent = -8 // GWLPUserData is GWLP_USERDATA (-21). // // Flutter: no counterpart GWLPUserData = -21 // SMCxSizeFrame is SM_CXSIZEFRAME. // // Flutter: no counterpart SMCxSizeFrame = 32 // SMCySizeFrame is SM_CYSIZEFRAME. // // Flutter: no counterpart SMCySizeFrame = 33 // SMCxIcon is SM_CXICON. // // Flutter: no counterpart SMCxIcon = 11 // SMCyIcon is SM_CYICON. // // Flutter: no counterpart SMCyIcon = 12 // SMCxSmIcon is SM_CXSMICON. // // Flutter: no counterpart SMCxSmIcon = 49 // SMCySmIcon is SM_CYSMICON. // // Flutter: no counterpart SMCySmIcon = 50 // SMXVirtualScreen is SM_XVIRTUALSCREEN. // // Flutter: no counterpart SMXVirtualScreen = 76 // SMCxVirtualScreen is SM_CXVIRTUALSCREEN. // // Flutter: no counterpart SMCxVirtualScreen = 78 // SMCyVirtualScreen is SM_CYVIRTUALSCREEN. // // Flutter: no counterpart SMCyVirtualScreen = 79 // SMCxPaddedBorder is SM_CXPADDEDBORDER. // // Flutter: no counterpart SMCxPaddedBorder = 92 // MonitorDefaultToNull is MONITOR_DEFAULTTONULL. // // Flutter: no counterpart MonitorDefaultToNull = 0 // MonitorDefaultToPrimary is MONITOR_DEFAULTTOPRIMARY. // // Flutter: no counterpart MonitorDefaultToPrimary = 1 // MonitorDefaultToNearest is MONITOR_DEFAULTTONEAREST. // // Flutter: no counterpart MonitorDefaultToNearest = 2 // MonitorInfoFPrimary is MONITORINFOF_PRIMARY. // // Flutter: no counterpart MonitorInfoFPrimary = 1 // MDTEffectiveDPI is MDT_EFFECTIVE_DPI. // // Flutter: no counterpart MDTEffectiveDPI = 0 // EnumCurrentSettings is ENUM_CURRENT_SETTINGS (-1), as the unsigned number the header writes. // // Flutter: no counterpart EnumCurrentSettings uint32 = 0xFFFFFFFF // UserDefaultScreenDPI is USER_DEFAULT_SCREEN_DPI: the DPI of a scale of 1. // // Flutter: no counterpart UserDefaultScreenDPI = 96 // PMNoRemove is PM_NOREMOVE. // // Flutter: no counterpart PMNoRemove = 0x0000 // PMRemove is PM_REMOVE. // // Flutter: no counterpart PMRemove = 0x0001 // QSAllInput is QS_ALLINPUT as Windows 8 and later define it, with QS_TOUCH and QS_POINTER, so // that the wait of the message loop ends for the pointer messages of touch and pen. // // Flutter: no counterpart QSAllInput = 0x1CFF // MWMOInputAvailable is MWMO_INPUTAVAILABLE. // // Flutter: no counterpart MWMOInputAvailable = 0x0004 // IDCArrow is IDC_ARROW, the resource number of the arrow cursor. // // Flutter: no counterpart IDCArrow = 32512 // TPMReturnCmd is TPM_RETURNCMD. // // Flutter: no counterpart TPMReturnCmd = 0x0100 )
The values of GetWindowLongPtr, GetSystemMetrics, the monitors and the other user32 functions. A negative index is the unsigned number the header's macro stands for, as a uintptr of a call.
const ( // DWMWAUseImmersiveDarkMode is DWMWA_USE_IMMERSIVE_DARK_MODE (Windows 10 version 2004 and 11). // // Flutter: no counterpart DWMWAUseImmersiveDarkMode = 20 // DWMWAUseImmersiveDarkModeBefore20H1 is the value 19 that the same attribute had in versions 1809 to 1909. // // Flutter: no counterpart DWMWAUseImmersiveDarkModeBefore20H1 = 19 // DWMWAExtendedFrameBounds is DWMWA_EXTENDED_FRAME_BOUNDS. // // Flutter: no counterpart DWMWAExtendedFrameBounds = 9 // BIRGB is BI_RGB. // // Flutter: no counterpart BIRGB = 0 // DIBRGBColors is DIB_RGB_COLORS. // // Flutter: no counterpart DIBRGBColors = 0 // SrcCopy is SRCCOPY. // // Flutter: no counterpart SrcCopy = 0x00CC0020 // HKeyCurrentUser is HKEY_CURRENT_USER. // // Flutter: no counterpart HKeyCurrentUser uintptr = 0x80000001 // RRFRTRegDword is RRF_RT_REG_DWORD. // // Flutter: no counterpart RRFRTRegDword = 0x00000010 // ESContinuous is ES_CONTINUOUS. // // Flutter: no counterpart ESContinuous uint32 = 0x80000000 // ESDisplayRequired is ES_DISPLAY_REQUIRED. // // Flutter: no counterpart ESDisplayRequired uint32 = 0x00000002 // CreateWaitableTimerHighResolution is CREATE_WAITABLE_TIMER_HIGH_RESOLUTION. // // Flutter: no counterpart CreateWaitableTimerHighResolution = 0x00000002 // TimerAllAccess is TIMER_ALL_ACCESS. // // Flutter: no counterpart TimerAllAccess = 0x001F0003 // AttachParentProcess is ATTACH_PARENT_PROCESS (-1), as the unsigned number the header writes. // // Flutter: no counterpart AttachParentProcess uint32 = 0xFFFFFFFF // StdOutputHandle is STD_OUTPUT_HANDLE (-11). // // Flutter: no counterpart StdOutputHandle = -11 // StdErrorHandle is STD_ERROR_HANDLE (-12). // // Flutter: no counterpart StdErrorHandle = -12 )
The values of the other libraries: DWM, GDI, the registry, the execution state and the waitable timers.
const ( // HWNDTopmost is HWND_TOPMOST. // // Flutter: no counterpart HWNDTopmost = ^uintptr(0) // HWNDMessage is HWND_MESSAGE: the parent of a message-only window. // // Flutter: no counterpart HWNDMessage = ^uintptr(2) )
HWNDTopmost is HWND_TOPMOST ((HWND)-1) and HWNDMessage is HWND_MESSAGE ((HWND)-3).
const ( // TagWin32CallFailed is the tag of the error for a Win32 function that failed; the metadata // are "function" and "code" (the GetLastError value). TagWin32CallFailed = "Win32CallFailed" // TagCOMCallFailed is the tag of the error for a COM method that returned a failed HRESULT; // the metadata are "method" and "hresult". TagCOMCallFailed = "COMCallFailed" // TagWin32Cancelled is the tag of the error for a call that the user cancelled // (ERROR_CANCELLED): a dialog that was closed. TagWin32Cancelled = "Win32Cancelled" )
The tags of the errors that this file makes (rm4n0s/errors, R5).
const ( // VTEmpty is VT_EMPTY: no value. // // Flutter: no counterpart VTEmpty = 0 // VTI4 is VT_I4: a 32-bit integer. // // Flutter: no counterpart VTI4 = 3 // VTR8 is VT_R8: a double. // // Flutter: no counterpart VTR8 = 5 // VTBSTR is VT_BSTR: a string. // // Flutter: no counterpart VTBSTR = 8 // VTUnknown is VT_UNKNOWN: an interface pointer. // // Flutter: no counterpart VTUnknown = 13 // VTBool is VT_BOOL: VARIANT_TRUE (-1) or VARIANT_FALSE (0). // // Flutter: no counterpart VTBool = 11 // VTArray is VT_ARRAY: a SAFEARRAY of the type in the low bits. // // Flutter: no counterpart VTArray = 0x2000 )
The types of a VARIANT (VT_*) that the provider properties use.
const CallbackLimit = 1500
CallbackLimit is the number of callbacks (syscall.NewCallback) that a process of Glutter may make: the runtime allows about 2,000 and never frees one, so a test fails above this number (SPEC §6.3 rule 11, §25.2). Callbacks are made once at startup, one per window procedure and one per method of each COM interface type that Go implements, never one per object.
Flutter: no counterpart
const DPIAwarenessContextPerMonitorAwareV2 = ^uintptr(3)
DPIAwarenessContextPerMonitorAwareV2 is DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2, the handle (-4) that SetProcessDpiAwarenessContext takes.
Flutter: no counterpart
const ErrorCancelledCode = 1223
ErrorCancelledCode is ERROR_CANCELLED, the Win32 error of a dialog that the user closed.
Flutter: no counterpart
const HKeyLocalMachine uintptr = 0x80000002
HKeyLocalMachine is HKEY_LOCAL_MACHINE.
Flutter: no counterpart
const MKAlt = 0x20
MKAlt is MK_ALT: the Alt key in the key state of a drop target (the value of MK_XBUTTON1 in the mouse messages).
Flutter: no counterpart
const ( // NISHidden is NIS_HIDDEN. // // Flutter: no counterpart NISHidden = 0x01 )
The states of a notify icon (dwState).
const TagGUIDInvalid = "GUIDInvalid"
TagGUIDInvalid is the tag of the error for a text that is not a GUID (rm4n0s/errors, R5).
const TagUTF16EmbeddedNUL = "UTF16EmbeddedNUL"
TagUTF16EmbeddedNUL is the tag of the error for a string with a NUL inside that goes to Windows as a C string (rm4n0s/errors, R5).
const TagWindowsUIAFailed = "WindowsUIAFailed"
TagWindowsUIAFailed is the tag of the error for a call of UI Automation that did not give a result; the metadata are "function" and, for a window, "hwnd".
Flutter: no counterpart
const VSFixedFileInfoSignature = 0xFEEF04BD
VSFixedFileInfoSignature is VS_FFI_SIGNATURE, the value of VSFixedFileInfo.Signature.
Flutter: no counterpart
const VariantTrue = 0xFFFF
VariantTrue is VARIANT_TRUE.
Flutter: no counterpart
Variables ¶
var ( // IIDDropTarget is the interface ID of IDropTarget. // // Flutter: no counterpart IIDDropTarget = MustParseGUID("{00000122-0000-0000-C000-000000000046}") // IIDDropSource is the interface ID of IDropSource. // // Flutter: no counterpart IIDDropSource = MustParseGUID("{00000121-0000-0000-C000-000000000046}") // IIDDataObject is the interface ID of IDataObject. // // Flutter: no counterpart IIDDataObject = MustParseGUID("{0000010E-0000-0000-C000-000000000046}") // IIDEnumFormatEtc is the interface ID of IEnumFORMATETC. // // Flutter: no counterpart IIDEnumFormatEtc = MustParseGUID("{00000103-0000-0000-C000-000000000046}") )
The interface IDs of the COM interfaces of drag and drop (the ones Go implements, and IEnumFORMATETC).
var IIDUnknown = MustParseGUID("{00000000-0000-0000-C000-000000000046}")
IIDUnknown is the interface ID of IUnknown, which every COM interface starts with.
Flutter: no counterpart
Functions ¶
func CopyUTF16 ¶
CopyUTF16 writes s into the fixed buffer dst as UTF-16 with a terminating NUL, the way a text is put into a [N]uint16 member (the tooltip of a tray icon). When s does not fit it is cut before the first character that does not fit, never in the middle of a surrogate pair, and truncated is true. An empty dst takes nothing and reports truncated for any s that is not empty. It fails with UTF16EmbeddedNUL like UTF16FromString.
Flutter: no counterpart
func HResultError ¶
HResultError turns a failed HRESULT into a tagged error, and returns nil for a success. method names the COM method or function ("IDXGIFactory2::CreateSwapChainForHwnd"). The tag is GPUOutOfMemory for E_OUTOFMEMORY, GPUDeviceLost for DXGI_ERROR_DEVICE_REMOVED, _RESET and _HUNG, Win32Cancelled for ERROR_CANCELLED (a dialog the user closed), and COMCallFailed for any other failure; the metadata are "method" and "hresult" (the code in hexadecimal). It is one table, like vkError, and is listed in errcheck.allow (SPEC §14.4, R4).
Flutter: no counterpart
func SetPaintHandler ¶
SetPaintHandler sets the function that paints the window on WM_PAINT; a nil function removes it.
Flutter: no counterpart
func UTF16FromString ¶
UTF16FromString converts a Go string to UTF-16 with a terminating NUL, the form that the "W" functions of Windows take. A byte sequence that is not UTF-8 becomes U+FFFD, as Windows treats invalid text. A string with a NUL inside would end early in C, so it fails with UTF16EmbeddedNUL (metadata "text" and "index", the byte offset of the NUL).
Flutter: no counterpart
func UTF16PtrFromString ¶
UTF16PtrFromString is UTF16FromString for a function that takes a pointer: it returns the address of the first unit. The slice lives as long as the pointer is reachable. It fails with UTF16EmbeddedNUL like UTF16FromString.
Flutter: no counterpart
func UTF16PtrToString ¶
UTF16PtrToString reads the NUL-terminated UTF-16 string at p, which Windows owns, and returns a copy as a Go string. A nil p is the empty string.
Flutter: no counterpart
func UTF16ToString ¶
UTF16ToString converts UTF-16 to a Go string, up to the first NUL (or to the end when there is none), as a C string would end. A lone surrogate becomes U+FFFD. It is how a fixed [N]uint16 member of a structure (a file name, a tooltip) is read: UTF16ToString(buf[:]).
Flutter: no counterpart
func Win32Error ¶
Win32Error turns the last error of a Win32 function that failed (GetLastError, which syscall.SyscallN returns) into a tagged error: Win32Cancelled for ERROR_CANCELLED, and Win32CallFailed for any other code; the metadata are "function" and "code". It is one table like HResultError and is listed in errcheck.allow.
Flutter: no counterpart
Types ¶
type BitmapInfo ¶
type BitmapInfo struct {
Header BitmapInfoHeader `c:"bmiHeader"`
Colors [4]byte `c:"bmiColors"`
}
BitmapInfo is the Go mirror of BITMAPINFO for a bitmap with no color table (32 bits per pixel, BI_RGB): the header and the single RGBQUAD entry the C type declares.
Flutter: no counterpart
type BitmapInfoHeader ¶
type BitmapInfoHeader struct {
Size uint32 `c:"biSize"`
Width int32 `c:"biWidth"`
Height int32 `c:"biHeight"`
Planes uint16 `c:"biPlanes"`
BitCount uint16 `c:"biBitCount"`
Compression uint32 `c:"biCompression"`
SizeImage uint32 `c:"biSizeImage"`
XPelsPerMeter int32 `c:"biXPelsPerMeter"`
YPelsPerMeter int32 `c:"biYPelsPerMeter"`
ClrUsed uint32 `c:"biClrUsed"`
ClrImportant uint32 `c:"biClrImportant"`
}
BitmapInfoHeader is the Go mirror of BITMAPINFOHEADER.
Flutter: no counterpart
type BitmapV5Header ¶
type BitmapV5Header struct {
Size uint32 `c:"bV5Size"`
Width int32 `c:"bV5Width"`
Height int32 `c:"bV5Height"`
Planes uint16 `c:"bV5Planes"`
BitCount uint16 `c:"bV5BitCount"`
Compression uint32 `c:"bV5Compression"`
SizeImage uint32 `c:"bV5SizeImage"`
XPelsPerMeter int32 `c:"bV5XPelsPerMeter"`
YPelsPerMeter int32 `c:"bV5YPelsPerMeter"`
ClrUsed uint32 `c:"bV5ClrUsed"`
ClrImportant uint32 `c:"bV5ClrImportant"`
RedMask uint32 `c:"bV5RedMask"`
GreenMask uint32 `c:"bV5GreenMask"`
BlueMask uint32 `c:"bV5BlueMask"`
AlphaMask uint32 `c:"bV5AlphaMask"`
CSType uint32 `c:"bV5CSType"`
Endpoints [9]int32 `c:"bV5Endpoints"`
GammaRed uint32 `c:"bV5GammaRed"`
GammaGreen uint32 `c:"bV5GammaGreen"`
GammaBlue uint32 `c:"bV5GammaBlue"`
Intent uint32 `c:"bV5Intent"`
ProfileData uint32 `c:"bV5ProfileData"`
ProfileSize uint32 `c:"bV5ProfileSize"`
Reserved uint32 `c:"bV5Reserved"`
}
BitmapV5Header is the Go mirror of BITMAPV5HEADER, the header of the CF_DIBV5 format.
Flutter: no counterpart
type CandidateForm ¶
type CandidateForm struct {
Index uint32 `c:"dwIndex"`
Style uint32 `c:"dwStyle"`
CurrentPos Point `c:"ptCurrentPos"`
Area Rect `c:"rcArea"`
}
CandidateForm is the Go mirror of CANDIDATEFORM (ImmSetCandidateWindow): where the input method opens the window of its candidates.
Flutter: no counterpart
type ComdlgFilterSpec ¶
ComdlgFilterSpec is the Go mirror of COMDLG_FILTERSPEC, one entry of the file types of an item dialog: both members point to UTF-16 text with a terminating NUL.
Flutter: no counterpart
type CompositionForm ¶
type CompositionForm struct {
Style uint32 `c:"dwStyle"`
CurrentPos Point `c:"ptCurrentPos"`
Area Rect `c:"rcArea"`
}
CompositionForm is the Go mirror of COMPOSITIONFORM (ImmSetCompositionWindow): where the input method draws the composition string.
Flutter: no counterpart
type CreateStruct ¶
type CreateStruct struct {
CreateParams uintptr `c:"lpCreateParams"`
Instance uintptr `c:"hInstance"`
Menu uintptr `c:"hMenu"`
Parent uintptr `c:"hwndParent"`
Cy int32 `c:"cy"`
Cx int32 `c:"cx"`
Y int32 `c:"y"`
X int32 `c:"x"`
Style int32 `c:"style"`
Name *uint16 `c:"lpszName"`
Class *uint16 `c:"lpszClass"`
ExStyle uint32 `c:"dwExStyle"`
}
CreateStruct is the Go mirror of CREATESTRUCTW, which WM_NCCREATE and WM_CREATE point to.
Flutter: no counterpart
type CursorInfo ¶
type CursorInfo struct {
Size uint32 `c:"cbSize"`
Flags uint32 `c:"flags"`
Cursor uintptr `c:"hCursor"`
ScreenPos Point `c:"ptScreenPos"`
}
CursorInfo is the Go mirror of CURSORINFO (GetCursorInfo).
Flutter: no counterpart
type DevMode ¶
type DevMode struct {
DeviceName [32]uint16 `c:"dmDeviceName"`
SpecVersion uint16 `c:"dmSpecVersion"`
DriverVersion uint16 `c:"dmDriverVersion"`
Size uint16 `c:"dmSize"`
DriverExtra uint16 `c:"dmDriverExtra"`
Fields uint32 `c:"dmFields"`
PositionX int32 `c:"dmPosition.x"`
PositionY int32 `c:"dmPosition.y"`
DisplayOrientation uint32 `c:"dmDisplayOrientation"`
DisplayFixedOutput uint32 `c:"dmDisplayFixedOutput"`
Color int16 `c:"dmColor"`
Duplex int16 `c:"dmDuplex"`
YResolution int16 `c:"dmYResolution"`
TTOption int16 `c:"dmTTOption"`
Collate int16 `c:"dmCollate"`
FormName [32]uint16 `c:"dmFormName"`
LogPixels uint16 `c:"dmLogPixels"`
BitsPerPel uint32 `c:"dmBitsPerPel"`
PelsWidth uint32 `c:"dmPelsWidth"`
PelsHeight uint32 `c:"dmPelsHeight"`
DisplayFlags uint32 `c:"dmDisplayFlags"`
DisplayFrequency uint32 `c:"dmDisplayFrequency"`
ICMMethod uint32 `c:"dmICMMethod"`
ICMIntent uint32 `c:"dmICMIntent"`
MediaType uint32 `c:"dmMediaType"`
DitherType uint32 `c:"dmDitherType"`
Reserved1 uint32 `c:"dmReserved1"`
Reserved2 uint32 `c:"dmReserved2"`
PanningWidth uint32 `c:"dmPanningWidth"`
PanningHeight uint32 `c:"dmPanningHeight"`
}
DevMode is the Go mirror of DEVMODEW, in its display form (the first union holds the position and the display orientation). Only the fields the platform reads are named; the Size field says how long the structure is.
Flutter: no counterpart
type DisplayDevice ¶
type DisplayDevice struct {
Size uint32 `c:"cb"`
DeviceName [32]uint16 `c:"DeviceName"`
DeviceString [128]uint16 `c:"DeviceString"`
StateFlags uint32 `c:"StateFlags"`
DeviceID [128]uint16 `c:"DeviceID"`
DeviceKey [128]uint16 `c:"DeviceKey"`
}
DisplayDevice is the Go mirror of DISPLAY_DEVICEW (EnumDisplayDevicesW).
Flutter: no counterpart
type DropFiles ¶
type DropFiles struct {
PFiles uint32 `c:"pFiles"`
Pt Point `c:"pt"`
FNC int32 `c:"fNC"`
FWide int32 `c:"fWide"`
}
DropFiles is the Go mirror of DROPFILES, the header of the CF_HDROP format: the paths follow it at PFiles, one after the other, each ended by a NUL, and the list by one more NUL. FWide says that the paths are UTF-16.
Flutter: no counterpart
type FileVersion ¶
type FileVersion struct {
Major, Minor, Build, Revision uint16
}
FileVersion is the four numbers of a file's version, such as 10.0.19041.1 (the file version of the version resource).
Flutter: no counterpart
func FileVersionOf ¶
func FileVersionOf(info VSFixedFileInfo) FileVersion
FileVersionOf reads the version out of a VSFixedFileInfo.
Flutter: no counterpart
func (FileVersion) String ¶
func (v FileVersion) String() string
String returns the version as "10.0.19041.1".
type FormatEtc ¶
type FormatEtc struct {
// CfFormat is the clipboard format (CLIPFORMAT, a 16-bit number).
CfFormat uint16 `c:"cfFormat"`
// Ptd is the target device (DVTARGETDEVICE *), always null here.
Ptd uintptr `c:"ptd"`
// DwAspect is DVASPECT_CONTENT for the data itself.
DwAspect uint32 `c:"dwAspect"`
// Lindex is -1 for all of the data.
Lindex int32 `c:"lindex"`
// Tymed is the set of media (TYMED_*).
Tymed uint32 `c:"tymed"`
}
FormatEtc is the Go mirror of FORMATETC: a clipboard format with the aspect and the medium in which a data object has or wants it.
Flutter: no counterpart
type GUID ¶
type GUID struct {
Data1 uint32 `c:"Data1"`
Data2 uint16 `c:"Data2"`
Data3 uint16 `c:"Data3"`
Data4 [8]byte `c:"Data4"`
}
GUID is the Go mirror of the Win32 GUID (an interface ID, IID, or a class ID, CLSID): 16 bytes whose first three fields are numbers and whose last is a byte array.
Flutter: no counterpart
func MustParseGUID ¶
MustParseGUID is ParseGUID for the GUIDs written in the source, which are known to be right: it panics with the error of ParseGUID on a mistake, a programmer error found at start.
Flutter: no counterpart
type HRESULT ¶
type HRESULT int32
HRESULT is the result of a COM method and of many Windows functions: a 32-bit value whose high bit says that the call failed.
Flutter: no counterpart
const ( // DragDropSDrop is DRAGDROP_S_DROP: the drop happens (QueryContinueDrag), or it happened // (DoDragDrop). // // Flutter: no counterpart DragDropSDrop HRESULT = 0x00040100 // DragDropSCancel is DRAGDROP_S_CANCEL: the drag ends without a drop. // // Flutter: no counterpart DragDropSCancel HRESULT = 0x00040101 // DragDropSUseDefaultCursors is DRAGDROP_S_USEDEFAULTCURSORS: GiveFeedback leaves the cursors of // Windows. // // Flutter: no counterpart DragDropSUseDefaultCursors HRESULT = 0x00040102 // DataSSameFormatEtc is DATA_S_SAMEFORMATETC: GetCanonicalFormatEtc says the format is its own // canonical one. // // Flutter: no counterpart DataSSameFormatEtc HRESULT = 0x00040130 // SFalse is S_FALSE. // // Flutter: no counterpart SFalse HRESULT = 1 )
The results of the drag source's methods and of DoDragDrop. They are success codes, so they are not errors (HResultError returns nil for them).
const ( // EAbort is E_ABORT. // // Flutter: no counterpart EAbort HRESULT = -0x7FFFBFFC // 0x80004004 // DVEFormatEtc is DV_E_FORMATETC: the data object does not have the format. // // Flutter: no counterpart DVEFormatEtc HRESULT = -0x7FFBFF9C // 0x80040064 // DVELIndex is DV_E_LINDEX: the index of the FORMATETC is not -1. // // Flutter: no counterpart DVELIndex HRESULT = -0x7FFBFF98 // 0x80040068 // DVETymed is DV_E_TYMED: the data object does not have the format on that medium. // // Flutter: no counterpart DVETymed HRESULT = -0x7FFBFF97 // 0x80040069 // DVEDVAspect is DV_E_DVASPECT: the aspect is not DVASPECT_CONTENT. // // Flutter: no counterpart DVEDVAspect HRESULT = -0x7FFBFF95 // 0x8004006B // OLEEAdviseNotSupported is OLE_E_ADVISENOTSUPPORTED: the data object has no change notifications. // // Flutter: no counterpart OLEEAdviseNotSupported HRESULT = -0x7FFBFFFD // 0x80040003 // DragDropENotRegistered is DRAGDROP_E_NOTREGISTERED. // // Flutter: no counterpart DragDropENotRegistered HRESULT = -0x7FFBFF00 // 0x80040100 // DragDropEAlreadyRegistered is DRAGDROP_E_ALREADYREGISTERED. // // Flutter: no counterpart DragDropEAlreadyRegistered HRESULT = -0x7FFBFEFF // 0x80040101 )
The failures of the data object's methods and of the registration of a drop target.
const ( // SOK is S_OK: the call worked. // // Flutter: no counterpart SOK HRESULT = 0 // ENotImpl is E_NOTIMPL: the method is not implemented. // // Flutter: no counterpart ENotImpl HRESULT = -0x7FFFBFFF // 0x80004001 // ENoInterface is E_NOINTERFACE: the object does not have the interface asked for. // // Flutter: no counterpart ENoInterface HRESULT = -0x7FFFBFFE // 0x80004002 // EPointer is E_POINTER: a pointer argument was null. // // Flutter: no counterpart EPointer HRESULT = -0x7FFFBFFD // 0x80004003 // EFail is E_FAIL: an unspecified failure. // // Flutter: no counterpart EFail HRESULT = -0x7FFFBFFB // 0x80004005 // EOutOfMemory is E_OUTOFMEMORY. // // Flutter: no counterpart EOutOfMemory HRESULT = -0x7FF8FFF2 // 0x8007000E // EInvalidArg is E_INVALIDARG. // // Flutter: no counterpart EInvalidArg HRESULT = -0x7FF8FFA9 // 0x80070057 // ErrorCancelled is HRESULT_FROM_WIN32(ERROR_CANCELLED): the user cancelled a dialog. // // Flutter: no counterpart ErrorCancelled HRESULT = -0x7FF8FB39 // 0x800704C7 // DXGIErrorDeviceHung is DXGI_ERROR_DEVICE_HUNG: the GPU stopped answering. // // Flutter: no counterpart DXGIErrorDeviceHung HRESULT = -0x7785FFFA // 0x887A0006 // DXGIErrorDeviceRemoved is DXGI_ERROR_DEVICE_REMOVED: the adapter was removed or reset. // // Flutter: no counterpart DXGIErrorDeviceRemoved HRESULT = -0x7785FFFB // 0x887A0005 // DXGIErrorDeviceReset is DXGI_ERROR_DEVICE_RESET: the device was reset after a bad command. // // Flutter: no counterpart DXGIErrorDeviceReset HRESULT = -0x7785FFF9 // 0x887A0007 )
The HRESULT values that Glutter meets. The layout test of this package checks each against the mingw-w64 headers.
func FromResult ¶
FromResult reads the HRESULT out of the register that a call returned.
Flutter: no counterpart
func (HRESULT) Code ¶
Code is the value as the unsigned number that the headers write, such as 0x80004005.
Flutter: no counterpart
func (HRESULT) Failed ¶
Failed is the FAILED macro: whether the high bit is set.
Flutter: no counterpart
type HighContrast ¶
type HighContrast struct {
Size uint32 `c:"cbSize"`
Flags uint32 `c:"dwFlags"`
DefaultScheme uintptr `c:"lpszDefaultScheme"`
}
HighContrast is the Go mirror of HIGHCONTRASTW (SPI_GETHIGHCONTRAST).
Flutter: no counterpart
type IconInfo ¶
type IconInfo struct {
Icon int32 `c:"fIcon"`
XHotspot uint32 `c:"xHotspot"`
YHotspot uint32 `c:"yHotspot"`
Mask uintptr `c:"hbmMask"`
Color uintptr `c:"hbmColor"`
}
IconInfo is the Go mirror of ICONINFO (CreateIconIndirect).
Flutter: no counterpart
type Input ¶
type Input struct {
Type uint32 `c:"type"`
Mouse MouseInput `c:"mi"`
}
Input is the Go mirror of INPUT for a mouse input (the union has the mouse member only, which is its largest one: 40 bytes in all).
Flutter: no counterpart
type KeyInput ¶
type KeyInput struct {
Type uint32 `c:"type"`
Key KeybdInput `c:"ki"`
// contains filtered or unexported fields
}
KeyInput is the Go mirror of INPUT for a keyboard input. The union of INPUT is as large as its mouse member, so the keyboard member is followed by 8 bytes of padding and the whole is 40 bytes on a 64-bit target, the same as Input.
Flutter: no counterpart
type KeybdInput ¶
type KeybdInput struct {
VK uint16 `c:"wVk"`
Scan uint16 `c:"wScan"`
Flags uint32 `c:"dwFlags"`
Time uint32 `c:"time"`
ExtraInfo uintptr `c:"dwExtraInfo"`
}
KeybdInput is the Go mirror of KEYBDINPUT, the keyboard member of INPUT (step 28.4).
Flutter: no counterpart
type LogFont ¶
type LogFont struct {
Height int32 `c:"lfHeight"`
Width int32 `c:"lfWidth"`
Escapement int32 `c:"lfEscapement"`
Orientation int32 `c:"lfOrientation"`
Weight int32 `c:"lfWeight"`
Italic uint8 `c:"lfItalic"`
Underline uint8 `c:"lfUnderline"`
StrikeOut uint8 `c:"lfStrikeOut"`
CharSet uint8 `c:"lfCharSet"`
OutPrecision uint8 `c:"lfOutPrecision"`
ClipPrecision uint8 `c:"lfClipPrecision"`
Quality uint8 `c:"lfQuality"`
PitchAndFamily uint8 `c:"lfPitchAndFamily"`
FaceName [32]uint16 `c:"lfFaceName"`
}
LogFont is the Go mirror of LOGFONTW.
Flutter: no counterpart
type MenuItemInfo ¶
type MenuItemInfo struct {
Size uint32 `c:"cbSize"`
Mask uint32 `c:"fMask"`
Type uint32 `c:"fType"`
State uint32 `c:"fState"`
ID uint32 `c:"wID"`
SubMenu uintptr `c:"hSubMenu"`
BmpChecked uintptr `c:"hbmpChecked"`
BmpUnchecked uintptr `c:"hbmpUnchecked"`
ItemData uintptr `c:"dwItemData"`
TypeData unsafe.Pointer `c:"dwTypeData"`
CCH uint32 `c:"cch"`
BmpItem uintptr `c:"hbmpItem"`
}
MenuItemInfo is the Go mirror of MENUITEMINFOW.
Flutter: no counterpart
type MinMaxInfo ¶
type MinMaxInfo struct {
Reserved Point `c:"ptReserved"`
MaxSize Point `c:"ptMaxSize"`
MaxPosition Point `c:"ptMaxPosition"`
MinTrackSize Point `c:"ptMinTrackSize"`
MaxTrackSize Point `c:"ptMaxTrackSize"`
}
MinMaxInfo is the Go mirror of MINMAXINFO, which WM_GETMINMAXINFO points to.
Flutter: no counterpart
type MonitorInfoEx ¶
type MonitorInfoEx struct {
Size uint32 `c:"cbSize"`
Monitor Rect `c:"rcMonitor"`
Work Rect `c:"rcWork"`
Flags uint32 `c:"dwFlags"`
Device [32]uint16 `c:"szDevice"`
}
MonitorInfoEx is the Go mirror of MONITORINFOEXW (GetMonitorInfoW).
Flutter: no counterpart
type MouseInput ¶
type MouseInput struct {
DX int32 `c:"dx"`
DY int32 `c:"dy"`
MouseData uint32 `c:"mouseData"`
Flags uint32 `c:"dwFlags"`
Time uint32 `c:"time"`
ExtraInfo uintptr `c:"dwExtraInfo"`
}
MouseInput is the Go mirror of MOUSEINPUT, the mouse member of INPUT.
Flutter: no counterpart
type Msg ¶
type Msg struct {
Hwnd uintptr `c:"hwnd"`
Message uint32 `c:"message"`
WParam uintptr `c:"wParam"`
LParam uintptr `c:"lParam"`
Time uint32 `c:"time"`
Pt Point `c:"pt"`
}
Msg is the Go mirror of MSG, a message of the message queue.
Flutter: no counterpart
type NcCalcSizeParams ¶
NcCalcSizeParams is the Go mirror of NCCALCSIZE_PARAMS, which WM_NCCALCSIZE points to when its wParam is true.
Flutter: no counterpart
type NonClientMetrics ¶
type NonClientMetrics struct {
Size uint32 `c:"cbSize"`
BorderWidth int32 `c:"iBorderWidth"`
ScrollWidth int32 `c:"iScrollWidth"`
ScrollHeight int32 `c:"iScrollHeight"`
CaptionWidth int32 `c:"iCaptionWidth"`
CaptionHeight int32 `c:"iCaptionHeight"`
CaptionFont LogFont `c:"lfCaptionFont"`
SmCaptionWidth int32 `c:"iSmCaptionWidth"`
SmCaptionHeight int32 `c:"iSmCaptionHeight"`
SmCaptionFont LogFont `c:"lfSmCaptionFont"`
MenuWidth int32 `c:"iMenuWidth"`
MenuHeight int32 `c:"iMenuHeight"`
MenuFont LogFont `c:"lfMenuFont"`
StatusFont LogFont `c:"lfStatusFont"`
MessageFont LogFont `c:"lfMessageFont"`
PaddedBorder int32 `c:"iPaddedBorderWidth"`
}
NonClientMetrics is the Go mirror of NONCLIENTMETRICSW (SPI_GETNONCLIENTMETRICS).
Flutter: no counterpart
type NotifyIconData ¶
type NotifyIconData struct {
Size uint32 `c:"cbSize"`
Wnd uintptr `c:"hWnd"`
ID uint32 `c:"uID"`
Flags uint32 `c:"uFlags"`
CallbackMessage uint32 `c:"uCallbackMessage"`
Icon uintptr `c:"hIcon"`
Tip [128]uint16 `c:"szTip"`
State uint32 `c:"dwState"`
StateMask uint32 `c:"dwStateMask"`
Info [256]uint16 `c:"szInfo"`
Version uint32 `c:"uVersion"`
InfoTitle [64]uint16 `c:"szInfoTitle"`
InfoFlags uint32 `c:"dwInfoFlags"`
GUIDItem GUID `c:"guidItem"`
BalloonIcon uintptr `c:"hBalloonIcon"`
}
NotifyIconData is the Go mirror of NOTIFYICONDATAW, the structure of Shell_NotifyIconW (SPEC §25.9). It is the structure of Windows Vista and later, whose size is cbSize; the union of uTimeout and uVersion is the one field UVersion.
Flutter: no counterpart
type PaintFunc ¶
type PaintFunc func(hwnd uintptr)
PaintFunc paints a window that was exposed (WM_PAINT): it does BeginPaint, draws what the renderer kept of the last frame, and does EndPaint.
Flutter: no counterpart
func PaintHandler ¶
PaintHandler is the function that paints the window on WM_PAINT, or nil when there is none.
Flutter: no counterpart
type PaintStruct ¶
type PaintStruct struct {
Hdc uintptr `c:"hdc"`
Erase int32 `c:"fErase"`
Paint Rect `c:"rcPaint"`
Restore int32 `c:"fRestore"`
IncUpdate int32 `c:"fIncUpdate"`
RgbReserved [32]byte `c:"rgbReserved"`
}
PaintStruct is the Go mirror of PAINTSTRUCT (BeginPaint, EndPaint).
Flutter: no counterpart
type PointerInfo ¶
type PointerInfo struct {
PointerType uint32 `c:"pointerType"`
PointerID uint32 `c:"pointerId"`
FrameID uint32 `c:"frameId"`
PointerFlags uint32 `c:"pointerFlags"`
SourceDevice uintptr `c:"sourceDevice"`
HwndTarget uintptr `c:"hwndTarget"`
PixelLocation Point `c:"ptPixelLocation"`
HimetricLocation Point `c:"ptHimetricLocation"`
PixelLocationRaw Point `c:"ptPixelLocationRaw"`
HimetricLocationRaw Point `c:"ptHimetricLocationRaw"`
Time uint32 `c:"dwTime"`
HistoryCount uint32 `c:"historyCount"`
InputData int32 `c:"InputData"`
KeyStates uint32 `c:"dwKeyStates"`
PerformanceCount uint64 `c:"PerformanceCount"`
ButtonChangeType uint32 `c:"ButtonChangeType"`
}
PointerInfo is the Go mirror of POINTER_INFO (GetPointerInfo, GetPointerFrameInfo).
Flutter: no counterpart
type PointerPenInfo ¶
type PointerPenInfo struct {
Pointer PointerInfo `c:"pointerInfo"`
PenFlags uint32 `c:"penFlags"`
PenMask uint32 `c:"penMask"`
Pressure uint32 `c:"pressure"`
Rotation uint32 `c:"rotation"`
TiltX int32 `c:"tiltX"`
TiltY int32 `c:"tiltY"`
}
PointerPenInfo is the Go mirror of POINTER_PEN_INFO (GetPointerPenInfo).
Flutter: no counterpart
type PointerTouchInfo ¶
type PointerTouchInfo struct {
Pointer PointerInfo `c:"pointerInfo"`
TouchFlags uint32 `c:"touchFlags"`
TouchMask uint32 `c:"touchMask"`
Contact Rect `c:"rcContact"`
ContactRaw Rect `c:"rcContactRaw"`
Orientation uint32 `c:"orientation"`
Pressure uint32 `c:"pressure"`
}
PointerTouchInfo is the Go mirror of POINTER_TOUCH_INFO (GetPointerTouchInfo).
Flutter: no counterpart
type Rect ¶
type Rect struct {
Left int32 `c:"left"`
Top int32 `c:"top"`
Right int32 `c:"right"`
Bottom int32 `c:"bottom"`
}
Rect is the Go mirror of RECT.
Flutter: no counterpart
type ShellExecuteInfo ¶
type ShellExecuteInfo struct {
Size uint32 `c:"cbSize"`
Mask uint32 `c:"fMask"`
Wnd uintptr `c:"hwnd"`
Verb *uint16 `c:"lpVerb"`
File *uint16 `c:"lpFile"`
Parameters *uint16 `c:"lpParameters"`
Directory *uint16 `c:"lpDirectory"`
Show int32 `c:"nShow"`
InstApp uintptr `c:"hInstApp"`
IDList uintptr `c:"lpIDList"`
Class uintptr `c:"lpClass"`
KeyClass uintptr `c:"hkeyClass"`
HotKey uint32 `c:"dwHotKey"`
Icon uintptr `c:"hIcon"`
ProcessValue uintptr `c:"hProcess"`
}
ShellExecuteInfo is the Go mirror of SHELLEXECUTEINFOW.
Flutter: no counterpart
type StgMedium ¶
type StgMedium struct {
// Tymed is the medium (TYMED_*).
Tymed uint32 `c:"tymed"`
// Handle is the union: hGlobal, pstm and the others share this place.
Handle uintptr `c:"hGlobal"`
// PUnkForRelease is the object that frees the data when it is released, null to free the medium
// by its type.
PUnkForRelease uintptr `c:"pUnkForRelease"`
}
StgMedium is the Go mirror of STGMEDIUM: data of one format and the medium that holds it. Handle is the member of the union that the medium names (the HGLOBAL for TYMED_HGLOBAL).
Flutter: no counterpart
type TrackMouseEventData ¶
type TrackMouseEventData struct {
Size uint32 `c:"cbSize"`
Flags uint32 `c:"dwFlags"`
Track uintptr `c:"hwndTrack"`
HoverTime uint32 `c:"dwHoverTime"`
}
TrackMouseEventData is the Go mirror of TRACKMOUSEEVENT (TrackMouseEvent).
Flutter: no counterpart
type UiaRect ¶
type UiaRect struct {
Left float64 `c:"left"`
Top float64 `c:"top"`
Width float64 `c:"width"`
Height float64 `c:"height"`
}
UiaRect is the Go mirror of UiaRect: a rectangle of doubles, with the width and the height (not the right and bottom) that RECT has.
Flutter: no counterpart
type VSFixedFileInfo ¶
type VSFixedFileInfo struct {
Signature uint32 `c:"dwSignature"`
StrucVersion uint32 `c:"dwStrucVersion"`
FileVersionMS uint32 `c:"dwFileVersionMS"`
FileVersionLS uint32 `c:"dwFileVersionLS"`
ProductVersionMS uint32 `c:"dwProductVersionMS"`
ProductVersionLS uint32 `c:"dwProductVersionLS"`
FileFlagsMask uint32 `c:"dwFileFlagsMask"`
FileFlags uint32 `c:"dwFileFlags"`
FileOS uint32 `c:"dwFileOS"`
FileType uint32 `c:"dwFileType"`
FileSubtype uint32 `c:"dwFileSubtype"`
FileDateMS uint32 `c:"dwFileDateMS"`
FileDateLS uint32 `c:"dwFileDateLS"`
}
VSFixedFileInfo is the Go mirror of VS_FIXEDFILEINFO, the fixed part of the version resource of a file (FileVersion reads it). The layout test of this package checks it against the mingw-w64 headers.
Flutter: no counterpart
type Variant ¶
type Variant struct {
Vt uint16 `c:"vt"`
Val uint64 `c:"llVal"`
// contains filtered or unexported fields
}
Variant is the Go mirror of VARIANT on a 64-bit target: the type, three reserved words, and the 16 bytes of the union, of which the first eight hold a number, a BSTR or an interface pointer.
Flutter: no counterpart
type WaitResult ¶
type WaitResult uint32
WaitResult is what a wait function returns.
Flutter: no counterpart
const ( // WaitObject0 is WAIT_OBJECT_0: the object is signaled. // // Flutter: no counterpart WaitObject0 WaitResult = 0x00000000 // WaitAbandoned0 is WAIT_ABANDONED_0. // // Flutter: no counterpart WaitAbandoned0 WaitResult = 0x00000080 // WaitTimeout is WAIT_TIMEOUT: the time ran out. // // Flutter: no counterpart WaitTimeout WaitResult = 0x00000102 )
The results of WaitForSingleObject and WaitForMultipleObjects. For several objects the result WaitObject0 + i says that object i is signaled (WaitAbandoned0 + i, that it was abandoned).
type WindowPlacement ¶
type WindowPlacement struct {
Length uint32 `c:"length"`
Flags uint32 `c:"flags"`
ShowCmd uint32 `c:"showCmd"`
MinPosition Point `c:"ptMinPosition"`
MaxPosition Point `c:"ptMaxPosition"`
NormalPosition Rect `c:"rcNormalPosition"`
}
WindowPlacement is the Go mirror of WINDOWPLACEMENT (GetWindowPlacement, SetWindowPlacement).
Flutter: no counterpart
type WindowPos ¶
type WindowPos struct {
Hwnd uintptr `c:"hwnd"`
HwndInsertAfter uintptr `c:"hwndInsertAfter"`
X int32 `c:"x"`
Y int32 `c:"y"`
Cx int32 `c:"cx"`
Cy int32 `c:"cy"`
Flags uint32 `c:"flags"`
}
WindowPos is the Go mirror of WINDOWPOS.
Flutter: no counterpart
type WndClassEx ¶
type WndClassEx struct {
Size uint32 `c:"cbSize"`
Style uint32 `c:"style"`
WndProc uintptr `c:"lpfnWndProc"`
ClsExtra int32 `c:"cbClsExtra"`
WndExtra int32 `c:"cbWndExtra"`
Instance uintptr `c:"hInstance"`
Icon uintptr `c:"hIcon"`
Cursor uintptr `c:"hCursor"`
Background uintptr `c:"hbrBackground"`
MenuName *uint16 `c:"lpszMenuName"`
ClassName *uint16 `c:"lpszClassName"`
IconSm uintptr `c:"hIconSm"`
}
WndClassEx is the Go mirror of WNDCLASSEXW, the description of a window class for RegisterClassExW. WndProc is the address of a callback made by NewCallback.
Flutter: no counterpart
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package layouttest checks the Go mirrors of Win32 and COM structures, and the positions of COM methods in their vtables, against the mingw-w64 headers (SPEC §25.2, §6.3 rule 11).
|
Package layouttest checks the Go mirrors of Win32 and COM structures, and the positions of COM methods in their vtables, against the mingw-w64 headers (SPEC §25.2, §6.3 rule 11). |