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 ParseRawInputHID(buf []byte) (device uintptr, reports [][]byte, ok bool)
- 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 HidpButtonCaps
- type HidpCaps
- type HidpData
- type HidpValueCaps
- 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 Overlapped
- type PaintFunc
- type PaintStruct
- type Point
- type PointerInfo
- type PointerPenInfo
- type PointerTouchInfo
- type PropVariant
- type PropertyKey
- type RawInputDevice
- type RawInputDeviceList
- type RawInputHeader
- type RawInputMouse
- type RawMouse
- type Rect
- type RidDeviceInfo
- type RidDeviceInfoHID
- type ShellExecuteInfo
- type StgMedium
- type TrackMouseEventData
- type UiaPoint
- type UiaRect
- type VSFixedFileInfo
- type Variant
- type WaitResult
- type WaveFormatExtensible
- type WindowPlacement
- type WindowPos
- type WndClassEx
- type XInputBatteryInformation
- type XInputCapabilities
- type XInputCapabilitiesEx
- type XInputGamepad
- type XInputState
- type XInputVibration
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 ( // IMMDeviceEnumeratorEnumAudioEndpoints is the index of IMMDeviceEnumerator::EnumAudioEndpoints. // // Flutter: no counterpart IMMDeviceEnumeratorEnumAudioEndpoints = 3 // IMMDeviceEnumeratorGetDefaultAudioEndpoint is the index of IMMDeviceEnumerator::GetDefaultAudioEndpoint. // // Flutter: no counterpart IMMDeviceEnumeratorGetDefaultAudioEndpoint = 4 // IMMDeviceEnumeratorGetDevice is the index of IMMDeviceEnumerator::GetDevice. // // Flutter: no counterpart IMMDeviceEnumeratorGetDevice = 5 // IMMDeviceEnumeratorRegisterEndpointNotificationCallback is the index of // IMMDeviceEnumerator::RegisterEndpointNotificationCallback. // // Flutter: no counterpart IMMDeviceEnumeratorRegisterEndpointNotificationCallback = 6 // IMMDeviceEnumeratorUnregisterEndpointNotificationCallback is the index of // IMMDeviceEnumerator::UnregisterEndpointNotificationCallback. // // Flutter: no counterpart IMMDeviceEnumeratorUnregisterEndpointNotificationCallback = 7 // IMMDeviceCollectionGetCount is the index of IMMDeviceCollection::GetCount. // // Flutter: no counterpart IMMDeviceCollectionGetCount = 3 // IMMDeviceCollectionItem is the index of IMMDeviceCollection::Item. // // Flutter: no counterpart IMMDeviceCollectionItem = 4 // IMMDeviceActivate is the index of IMMDevice::Activate. // // Flutter: no counterpart IMMDeviceActivate = 3 // IMMDeviceOpenPropertyStore is the index of IMMDevice::OpenPropertyStore. // // Flutter: no counterpart IMMDeviceOpenPropertyStore = 4 // IMMDeviceGetID is the index of IMMDevice::GetId. // // Flutter: no counterpart IMMDeviceGetID = 5 // IMMDeviceGetState is the index of IMMDevice::GetState. // // Flutter: no counterpart IMMDeviceGetState = 6 // IPropertyStoreGetValue is the index of IPropertyStore::GetValue. // // Flutter: no counterpart IPropertyStoreGetValue = 5 // IAudioClientInitialize is the index of IAudioClient::Initialize. // // Flutter: no counterpart IAudioClientInitialize = 3 // IAudioClientGetBufferSize is the index of IAudioClient::GetBufferSize. // // Flutter: no counterpart IAudioClientGetBufferSize = 4 // IAudioClientGetStreamLatency is the index of IAudioClient::GetStreamLatency. // // Flutter: no counterpart IAudioClientGetStreamLatency = 5 // IAudioClientGetCurrentPadding is the index of IAudioClient::GetCurrentPadding. // // Flutter: no counterpart IAudioClientGetCurrentPadding = 6 // IAudioClientIsFormatSupported is the index of IAudioClient::IsFormatSupported. // // Flutter: no counterpart IAudioClientIsFormatSupported = 7 // IAudioClientGetMixFormat is the index of IAudioClient::GetMixFormat. // // Flutter: no counterpart IAudioClientGetMixFormat = 8 // IAudioClientGetDevicePeriod is the index of IAudioClient::GetDevicePeriod. // // Flutter: no counterpart IAudioClientGetDevicePeriod = 9 // IAudioClientStart is the index of IAudioClient::Start. // // Flutter: no counterpart IAudioClientStart = 10 // IAudioClientStop is the index of IAudioClient::Stop. // // Flutter: no counterpart IAudioClientStop = 11 // IAudioClientReset is the index of IAudioClient::Reset. // // Flutter: no counterpart IAudioClientReset = 12 // IAudioClientSetEventHandle is the index of IAudioClient::SetEventHandle. // // Flutter: no counterpart IAudioClientSetEventHandle = 13 // IAudioClientGetService is the index of IAudioClient::GetService. // // Flutter: no counterpart IAudioClientGetService = 14 // // Flutter: no counterpart IAudioClient3GetSharedModeEnginePeriod = 18 // // Flutter: no counterpart IAudioClient3InitializeSharedAudioStream = 20 // IAudioRenderClientGetBuffer is the index of IAudioRenderClient::GetBuffer. // // Flutter: no counterpart IAudioRenderClientGetBuffer = 3 // IAudioRenderClientReleaseBuffer is the index of IAudioRenderClient::ReleaseBuffer. // // Flutter: no counterpart IAudioRenderClientReleaseBuffer = 4 // IAudioCaptureClientGetBuffer is the index of IAudioCaptureClient::GetBuffer. // // Flutter: no counterpart IAudioCaptureClientGetBuffer = 3 // IAudioCaptureClientReleaseBuffer is the index of IAudioCaptureClient::ReleaseBuffer. // // Flutter: no counterpart IAudioCaptureClientReleaseBuffer = 4 // IAudioCaptureClientGetNextPacketSize is the index of IAudioCaptureClient::GetNextPacketSize. // // Flutter: no counterpart IAudioCaptureClientGetNextPacketSize = 5 // IMMNotificationClientOnDeviceStateChanged is the index of IMMNotificationClient::OnDeviceStateChanged. // // Flutter: no counterpart IMMNotificationClientOnDeviceStateChanged = 3 // IMMNotificationClientOnDeviceAdded is the index of IMMNotificationClient::OnDeviceAdded. // // Flutter: no counterpart IMMNotificationClientOnDeviceAdded = 4 // IMMNotificationClientOnDeviceRemoved is the index of IMMNotificationClient::OnDeviceRemoved. // // Flutter: no counterpart IMMNotificationClientOnDeviceRemoved = 5 // IMMNotificationClientOnDefaultDeviceChanged is the index of IMMNotificationClient::OnDefaultDeviceChanged. // // Flutter: no counterpart IMMNotificationClientOnDefaultDeviceChanged = 6 // IMMNotificationClientOnPropertyValueChanged is the index of IMMNotificationClient::OnPropertyValueChanged. // // Flutter: no counterpart IMMNotificationClientOnPropertyValueChanged = 7 )
The positions of the methods in the vtables of the audio interfaces. The layout test checks each against the headers.
const ( // // Flutter: no counterpart AudclntShareModeShared = 0 // AudclntStreamFlagsEventCallback is AUDCLNT_STREAMFLAGS_EVENTCALLBACK: the engine sets an event when it wants or has data. // // Flutter: no counterpart AudclntStreamFlagsEventCallback = 0x00040000 // AudclntStreamFlagsAutoConvertPCM is AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM: the engine converts the format of the stream to its own. // // Flutter: no counterpart AudclntStreamFlagsAutoConvertPCM = 0x80000000 // AudclntStreamFlagsSrcDefaultQuality is AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY: the sample rate converter of the default quality. // // Flutter: no counterpart AudclntStreamFlagsSrcDefaultQuality = 0x08000000 // AudclntBufferFlagsDataDiscontinuity is AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY: a packet of a recording follows a gap. // // Flutter: no counterpart AudclntBufferFlagsDataDiscontinuity = 0x1 // AudclntBufferFlagsSilent is AUDCLNT_BUFFERFLAGS_SILENT: the packet of a recording is silence whatever its bytes say. // // Flutter: no counterpart AudclntBufferFlagsSilent = 0x2 // DeviceStateActive is DEVICE_STATE_ACTIVE: the endpoint is present and works. // // Flutter: no counterpart DeviceStateActive = 0x1 // ERender is eRender (EDataFlow): an endpoint that plays. // // Flutter: no counterpart ERender = 0 // ECapture is eCapture (EDataFlow): an endpoint that records. // // Flutter: no counterpart ECapture = 1 // EConsole is eConsole (ERole): the default device of games, system sounds and most programs. // // Flutter: no counterpart EConsole = 0 // WaveFormatTagPCM is WAVE_FORMAT_PCM. // // Flutter: no counterpart WaveFormatTagPCM = 1 // WaveFormatTagIEEEFloat is WAVE_FORMAT_IEEE_FLOAT. // // Flutter: no counterpart WaveFormatTagIEEEFloat = 3 // WaveFormatTagExtensible is WAVE_FORMAT_EXTENSIBLE: the format is a WAVEFORMATEXTENSIBLE. // // Flutter: no counterpart WaveFormatTagExtensible = 0xFFFE // STGMRead is STGM_READ. // // Flutter: no counterpart STGMRead = 0x0 // VTLPWStr is VT_LPWSTR: a PROPVARIANT that holds a wide string. // // Flutter: no counterpart VTLPWStr = 31 // COInitMultithreaded is COINIT_MULTITHREADED: the thread joins the multithreaded apartment of the process. // // Flutter: no counterpart COInitMultithreaded = 0x0 // ClsctxAll is CLSCTX_ALL. // // Flutter: no counterpart ClsctxAll = 0x17 )
The flags, enumerators and formats of the audio APIs.
const ( // SpeakerFrontLeft is SPEAKER_FRONT_LEFT. // // Flutter: no counterpart SpeakerFrontLeft = 0x1 // SpeakerFrontRight is SPEAKER_FRONT_RIGHT. // // Flutter: no counterpart SpeakerFrontRight = 0x2 // SpeakerFrontCenter is SPEAKER_FRONT_CENTER. // // Flutter: no counterpart SpeakerFrontCenter = 0x4 // SpeakerLowFrequency is SPEAKER_LOW_FREQUENCY. // // Flutter: no counterpart SpeakerLowFrequency = 0x8 // SpeakerBackLeft is SPEAKER_BACK_LEFT. // // Flutter: no counterpart SpeakerBackLeft = 0x10 // SpeakerBackRight is SPEAKER_BACK_RIGHT. // // Flutter: no counterpart SpeakerBackRight = 0x20 // SpeakerBackCenter is SPEAKER_BACK_CENTER. // // Flutter: no counterpart SpeakerBackCenter = 0x100 // SpeakerSideLeft is SPEAKER_SIDE_LEFT. // // Flutter: no counterpart SpeakerSideLeft = 0x200 // SpeakerSideRight is SPEAKER_SIDE_RIGHT. // // Flutter: no counterpart SpeakerSideRight = 0x400 )
The speaker positions of a channel mask (SPEAKER_*): the channels of a frame come in the order of the bits that are set.
const ( // XInputGamepadDPadUp is XINPUT_GAMEPAD_DPAD_UP. // // Flutter: no counterpart XInputGamepadDPadUp = 0x0001 // XInputGamepadDPadDown is XINPUT_GAMEPAD_DPAD_DOWN. // // Flutter: no counterpart XInputGamepadDPadDown = 0x0002 // XInputGamepadDPadLeft is XINPUT_GAMEPAD_DPAD_LEFT. // // Flutter: no counterpart XInputGamepadDPadLeft = 0x0004 // XInputGamepadDPadRight is XINPUT_GAMEPAD_DPAD_RIGHT. // // Flutter: no counterpart XInputGamepadDPadRight = 0x0008 // XInputGamepadStart is XINPUT_GAMEPAD_START. // // Flutter: no counterpart XInputGamepadStart = 0x0010 // XInputGamepadBack is XINPUT_GAMEPAD_BACK. // // Flutter: no counterpart XInputGamepadBack = 0x0020 // XInputGamepadLeftThumb is XINPUT_GAMEPAD_LEFT_THUMB. // // Flutter: no counterpart XInputGamepadLeftThumb = 0x0040 // XInputGamepadRightThumb is XINPUT_GAMEPAD_RIGHT_THUMB. // // Flutter: no counterpart XInputGamepadRightThumb = 0x0080 // XInputGamepadLeftShoulder is XINPUT_GAMEPAD_LEFT_SHOULDER. // // Flutter: no counterpart XInputGamepadLeftShoulder = 0x0100 // XInputGamepadRightShoulder is XINPUT_GAMEPAD_RIGHT_SHOULDER. // // Flutter: no counterpart XInputGamepadRightShoulder = 0x0200 // XInputGamepadGuide is the Guide button, which XInputGetStateEx reports and XINPUT_GAMEPAD has no name for. // // Flutter: no counterpart XInputGamepadGuide = 0x0400 // XInputGamepadA is XINPUT_GAMEPAD_A. // // Flutter: no counterpart XInputGamepadA = 0x1000 // XInputGamepadB is XINPUT_GAMEPAD_B. // // Flutter: no counterpart XInputGamepadB = 0x2000 // XInputGamepadX is XINPUT_GAMEPAD_X. // // Flutter: no counterpart XInputGamepadX = 0x4000 // XInputGamepadY is XINPUT_GAMEPAD_Y. // // Flutter: no counterpart XInputGamepadY = 0x8000 )
The buttons of XINPUT_GAMEPAD.wButtons. Guide is not in the headers: only the undocumented XInputGetStateEx reports it.
const ( // XUserMaxCount is XUSER_MAX_COUNT, the number of pads XInput serves. // // Flutter: no counterpart XUserMaxCount = 4 // XInputFlagGamepad is XINPUT_FLAG_GAMEPAD, the flag of XInputGetCapabilities that asks for gamepads only. // // Flutter: no counterpart XInputFlagGamepad = 0x00000001 // XInputDevTypeGamepad is XINPUT_DEVTYPE_GAMEPAD. // // Flutter: no counterpart XInputDevTypeGamepad = 0x01 // XInputDevSubTypeGamepad is XINPUT_DEVSUBTYPE_GAMEPAD. // // Flutter: no counterpart XInputDevSubTypeGamepad = 0x01 // XInputCapsWireless is XINPUT_CAPS_WIRELESS. // // Flutter: no counterpart XInputCapsWireless = 0x0002 // XInputBatteryTypeDisconnected is BATTERY_TYPE_DISCONNECTED. // // Flutter: no counterpart XInputBatteryTypeDisconnected = 0x00 // XInputBatteryTypeWired is BATTERY_TYPE_WIRED. // // Flutter: no counterpart XInputBatteryTypeWired = 0x01 // XInputBatteryTypeUnknown is BATTERY_TYPE_UNKNOWN. // // Flutter: no counterpart XInputBatteryTypeUnknown = 0xFF // XInputBatteryLevelEmpty is BATTERY_LEVEL_EMPTY. // // Flutter: no counterpart XInputBatteryLevelEmpty = 0x00 // XInputBatteryLevelLow is BATTERY_LEVEL_LOW. // // Flutter: no counterpart XInputBatteryLevelLow = 0x01 // XInputBatteryLevelMedium is BATTERY_LEVEL_MEDIUM. // // Flutter: no counterpart XInputBatteryLevelMedium = 0x02 // XInputBatteryLevelFull is BATTERY_LEVEL_FULL. // // Flutter: no counterpart XInputBatteryLevelFull = 0x03 // ErrorSuccessCode is ERROR_SUCCESS, which XInput returns for a pad that is there. // // Flutter: no counterpart ErrorSuccessCode = 0 // ErrorDeviceNotConnected is ERROR_DEVICE_NOT_CONNECTED, which XInput returns for an empty slot. // // Flutter: no counterpart ErrorDeviceNotConnected = 1167 )
Other constants of XInput.
const ( // WMInputDeviceChange is WM_INPUT_DEVICE_CHANGE, the message of a device that arrives or leaves. // // Flutter: no counterpart WMInputDeviceChange = 0x00FE // GIDCArrival is GIDC_ARRIVAL, the wParam of WM_INPUT_DEVICE_CHANGE for a device that arrived. // // Flutter: no counterpart GIDCArrival = 1 // GIDCRemoval is GIDC_REMOVAL, the wParam of WM_INPUT_DEVICE_CHANGE for a device that left. // // Flutter: no counterpart GIDCRemoval = 2 // RIDEVInputSink is RIDEV_INPUTSINK: the window gets the input even when it is not in front. // // Flutter: no counterpart RIDEVInputSink = 0x00000100 // RIDEVDevNotify is RIDEV_DEVNOTIFY: the window gets WM_INPUT_DEVICE_CHANGE. // // Flutter: no counterpart RIDEVDevNotify = 0x00002000 // RIDIPreparsedData is RIDI_PREPARSEDDATA, the command of GetRawInputDeviceInfo that gives the parsed report descriptor. // // Flutter: no counterpart RIDIPreparsedData = 0x20000005 // RIDIDeviceName is RIDI_DEVICENAME, the command that gives the path of the device. // // Flutter: no counterpart RIDIDeviceName = 0x20000007 // RIDIDeviceInfo is RIDI_DEVICEINFO, the command that gives a RID_DEVICE_INFO. // // Flutter: no counterpart RIDIDeviceInfo = 0x2000000b // RIMTypeHID is RIM_TYPEHID, the type of a raw input that is a HID report. // // Flutter: no counterpart RIMTypeHID = 2 // HIDUsageGenericJoystick is HID_USAGE_GENERIC_JOYSTICK. // // Flutter: no counterpart HIDUsageGenericJoystick = 0x04 // HIDUsageGenericGamepad is HID_USAGE_GENERIC_GAMEPAD. // // Flutter: no counterpart HIDUsageGenericGamepad = 0x05 // HIDUsageGenericMultiAxis is HID_USAGE_GENERIC_MULTI_AXIS_CONTROLLER. // // Flutter: no counterpart HIDUsageGenericMultiAxis = 0x08 // HIDUsageGenericHatSwitch is HID_USAGE_GENERIC_HATSWITCH. // // Flutter: no counterpart HIDUsageGenericHatSwitch = 0x39 // HIDUsageGenericZ is HID_USAGE_GENERIC_Z. // // Flutter: no counterpart HIDUsageGenericZ = 0x32 // HIDUsagePageButton is HID_USAGE_PAGE_BUTTON. // // Flutter: no counterpart HIDUsagePageButton = 0x09 // HidPInput is HidP_Input, the report type of the input reports. // // Flutter: no counterpart HidPInput = 0 // HidPStatusSuccess is HIDP_STATUS_SUCCESS. // // Flutter: no counterpart HidPStatusSuccess = 0x00110000 // GenericRead is GENERIC_READ. // // Flutter: no counterpart GenericRead = 0x80000000 // // Flutter: no counterpart FileShareRead = 0x00000001 // // Flutter: no counterpart FileShareWrite = 0x00000002 // OpenExisting is OPEN_EXISTING. // // Flutter: no counterpart OpenExisting = 3 // GenericWrite is GENERIC_WRITE. // // Flutter: no counterpart GenericWrite = 0x40000000 // FileFlagOverlapped is FILE_FLAG_OVERLAPPED: the handle does its reads and writes without waiting. // // Flutter: no counterpart FileFlagOverlapped = 0x40000000 // ErrorIoPending is ERROR_IO_PENDING: an overlapped call has started and has not finished. // // Flutter: no counterpart ErrorIoPending = 997 // ErrorOperationAborted is ERROR_OPERATION_ABORTED: the call was cancelled (CancelIoEx, or the handle was closed). // // Flutter: no counterpart ErrorOperationAborted = 995 )
The constants of Raw Input for the pads and of the HID parser.
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 ( // WMInput is WM_INPUT. // // Flutter: no counterpart WMInput = 0x00FF // RIDInput is RID_INPUT, the command of GetRawInputData that reads the data of the input. // // Flutter: no counterpart RIDInput = 0x10000003 // RIDEVRemove is RIDEV_REMOVE, the flag that stops the raw input of a device class. // // Flutter: no counterpart RIDEVRemove = 0x00000001 // HIDUsagePageGeneric is HID_USAGE_PAGE_GENERIC, the page of the pointer devices. // // Flutter: no counterpart HIDUsagePageGeneric = 0x01 // HIDUsageGenericMouse is HID_USAGE_GENERIC_MOUSE. // // Flutter: no counterpart HIDUsageGenericMouse = 0x02 // RIMTypeMouse is RIM_TYPEMOUSE, the type of a raw input that is a mouse report. // // Flutter: no counterpart RIMTypeMouse = 0 // MouseMoveRelative is MOUSE_MOVE_RELATIVE, the flag of a mouse report whose X and Y are motion. // // Flutter: no counterpart MouseMoveRelative = 0x00 )
The constants of the raw input of the mouse that the pointer lock uses (step 30.7, SPEC §27.6).
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 ( // CLSIDMMDeviceEnumerator is the class ID of the device enumerator. // // Flutter: no counterpart CLSIDMMDeviceEnumerator = MustParseGUID("{BCDE0395-E52F-467C-8E3D-C4579291692E}") // IIDMMDeviceEnumerator is the interface ID of IMMDeviceEnumerator. // // Flutter: no counterpart IIDMMDeviceEnumerator = MustParseGUID("{A95664D2-9614-4F35-A746-DE8DB63617E6}") // IIDMMNotificationClient is the interface ID of IMMNotificationClient, which Go implements. // // Flutter: no counterpart IIDMMNotificationClient = MustParseGUID("{7991EEC9-7E89-4D85-8390-6C703CEC60C0}") // IIDAudioClient is the interface ID of IAudioClient. // // Flutter: no counterpart IIDAudioClient = MustParseGUID("{1CB9AD4C-DBFA-4C32-B178-C2F568A703B2}") // IIDAudioClient3 is the interface ID of IAudioClient3 (Windows 10). // // Flutter: no counterpart IIDAudioClient3 = MustParseGUID("{7ED4EE07-8E67-4CD4-8C1A-2B7A5987AD42}") // IIDAudioRenderClient is the interface ID of IAudioRenderClient. // // Flutter: no counterpart IIDAudioRenderClient = MustParseGUID("{F294ACFC-3146-4483-A7BF-ADDCA7C260E2}") // IIDAudioCaptureClient is the interface ID of IAudioCaptureClient. // // Flutter: no counterpart IIDAudioCaptureClient = MustParseGUID("{C8ADBD64-E71E-48A0-A4DE-185C395CD317}") // KSDataFormatSubTypeIEEEFloat is KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, the sub-format of the extensible wave format that says // 32-bit float samples. // // Flutter: no counterpart KSDataFormatSubTypeIEEEFloat = MustParseGUID("{00000003-0000-0010-8000-00AA00389B71}") // PKeyDeviceFriendlyName is PKEY_Device_FriendlyName, the name of a device that a user sees ("Speakers (Realtek Audio)"). // // Flutter: no counterpart PKeyDeviceFriendlyName = PropertyKey{FmtID: MustParseGUID("{A45C254E-DF1C-4EFD-8020-67D146A850E0}"), PID: 14} )
The class and interface IDs of the device enumerator and of the audio client.
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 ParseRawInputHID ¶
ParseRawInputHID splits the RAWINPUT structure of a HID report (what GetRawInputData gives): the header, then RAWHID with the size of one report, their number and the reports one after another. It answers false when the data is not HID input or does not hold the reports it says.
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 ( // AudclntEDeviceInvalidated is AUDCLNT_E_DEVICE_INVALIDATED: the endpoint was unplugged, disabled or reconfigured, and the // client must be made again. // // Flutter: no counterpart AudclntEDeviceInvalidated HRESULT = -0x7776FFFC // 0x88890004 // AudclntEUnsupportedFormat is AUDCLNT_E_UNSUPPORTED_FORMAT. // // Flutter: no counterpart AudclntEUnsupportedFormat HRESULT = -0x7776FFF8 // 0x88890008 // AudclntEDeviceInUse is AUDCLNT_E_DEVICE_IN_USE: another program has the device in exclusive mode. // // Flutter: no counterpart AudclntEDeviceInUse HRESULT = -0x7776FFF6 // 0x8889000A // AudclntEResourcesInvalidated is AUDCLNT_E_RESOURCES_INVALIDATED: the resources of the client were taken away. // // Flutter: no counterpart AudclntEResourcesInvalidated HRESULT = -0x7776FFDA // 0x88890026 // AudclntEServiceNotRunning is AUDCLNT_E_SERVICE_NOT_RUNNING: the Windows Audio service is stopped. // // Flutter: no counterpart AudclntEServiceNotRunning HRESULT = -0x7776FFF0 // 0x88890010 // EAccessDenied is E_ACCESSDENIED: the user's settings do not let the program use the microphone. // // Flutter: no counterpart EAccessDenied HRESULT = -0x7FF8FFFB // 0x80070005 // ENotFound is HRESULT_FROM_WIN32(ERROR_NOT_FOUND): an endpoint that is not there. // // Flutter: no counterpart ENotFound HRESULT = -0x7FF8FB70 // 0x80070490 )
The results of the audio client that the audio code tells apart.
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 HidpButtonCaps ¶
type HidpButtonCaps struct {
UsagePage uint16 `c:"UsagePage"`
ReportID uint8 `c:"ReportID"`
IsAlias uint8 `c:"IsAlias"`
BitField uint16 `c:"BitField"`
LinkCollection uint16 `c:"LinkCollection"`
LinkUsage uint16 `c:"LinkUsage"`
LinkUsagePage uint16 `c:"LinkUsagePage"`
IsRange uint8 `c:"IsRange"`
IsStringRange uint8 `c:"IsStringRange"`
IsDesignatorRng uint8 `c:"IsDesignatorRange"`
IsAbsolute uint8 `c:"IsAbsolute"`
Reserved [10]uint32 `c:"Reserved"`
Union [16]byte `c:"Range"`
}
HidpButtonCaps is the Go mirror of HIDP_BUTTON_CAPS. Its union of Range and NotRange (16 bytes) is Union; the methods read it.
Flutter: no counterpart
func (*HidpButtonCaps) DataIndexMax ¶
func (c *HidpButtonCaps) DataIndexMax() uint16
DataIndexMax is the data index of the last usage of a range (Range.DataIndexMax).
Flutter: no counterpart
func (*HidpButtonCaps) DataIndexMin ¶
func (c *HidpButtonCaps) DataIndexMin() uint16
DataIndexMin is the data index of the first usage of a range (Range.DataIndexMin), or the data index (NotRange.DataIndex).
Flutter: no counterpart
func (*HidpButtonCaps) UsageMax ¶
func (c *HidpButtonCaps) UsageMax() uint16
UsageMax is the last usage of a range (Range.UsageMax); it is meaningful when IsRange is set.
Flutter: no counterpart
func (*HidpButtonCaps) UsageMin ¶
func (c *HidpButtonCaps) UsageMin() uint16
UsageMin is the first usage of a range (Range.UsageMin), or the usage (NotRange.Usage), which is at the same place.
Flutter: no counterpart
type HidpCaps ¶
type HidpCaps struct {
Usage uint16 `c:"Usage"`
UsagePage uint16 `c:"UsagePage"`
InputReportByteLength uint16 `c:"InputReportByteLength"`
OutputReportByteLength uint16 `c:"OutputReportByteLength"`
FeatureReportByteLength uint16 `c:"FeatureReportByteLength"`
Reserved [17]uint16 `c:"Reserved"`
NumberLinkCollectionNodes uint16 `c:"NumberLinkCollectionNodes"`
NumberInputButtonCaps uint16 `c:"NumberInputButtonCaps"`
NumberInputValueCaps uint16 `c:"NumberInputValueCaps"`
NumberInputDataIndices uint16 `c:"NumberInputDataIndices"`
NumberOutputButtonCaps uint16 `c:"NumberOutputButtonCaps"`
NumberOutputValueCaps uint16 `c:"NumberOutputValueCaps"`
NumberOutputDataIndices uint16 `c:"NumberOutputDataIndices"`
NumberFeatureButtonCaps uint16 `c:"NumberFeatureButtonCaps"`
NumberFeatureValueCaps uint16 `c:"NumberFeatureValueCaps"`
NumberFeatureDataIndices uint16 `c:"NumberFeatureDataIndices"`
}
HidpCaps is the Go mirror of HIDP_CAPS.
Flutter: no counterpart
type HidpData ¶
type HidpData struct {
DataIndex uint16 `c:"DataIndex"`
RawValue uint32 `c:"RawValue"`
// contains filtered or unexported fields
}
HidpData is the Go mirror of HIDP_DATA: a data index and the value (RawValue, or the On flag of a button in its low byte).
Flutter: no counterpart
type HidpValueCaps ¶
type HidpValueCaps struct {
UsagePage uint16 `c:"UsagePage"`
ReportID uint8 `c:"ReportID"`
IsAlias uint8 `c:"IsAlias"`
BitField uint16 `c:"BitField"`
LinkCollection uint16 `c:"LinkCollection"`
LinkUsage uint16 `c:"LinkUsage"`
LinkUsagePage uint16 `c:"LinkUsagePage"`
IsRange uint8 `c:"IsRange"`
IsStringRange uint8 `c:"IsStringRange"`
IsDesignatorRng uint8 `c:"IsDesignatorRange"`
IsAbsolute uint8 `c:"IsAbsolute"`
HasNull uint8 `c:"HasNull"`
BitSize uint16 `c:"BitSize"`
ReportCount uint16 `c:"ReportCount"`
Reserved2 [5]uint16 `c:"Reserved2"`
UnitsExp uint32 `c:"UnitsExp"`
Units uint32 `c:"Units"`
LogicalMin int32 `c:"LogicalMin"`
LogicalMax int32 `c:"LogicalMax"`
PhysicalMin int32 `c:"PhysicalMin"`
PhysicalMax int32 `c:"PhysicalMax"`
Union [16]byte `c:"Range"`
// contains filtered or unexported fields
}
HidpValueCaps is the Go mirror of HIDP_VALUE_CAPS.
Flutter: no counterpart
func (*HidpValueCaps) DataIndexMax ¶
func (c *HidpValueCaps) DataIndexMax() uint16
DataIndexMax is the data index of the last usage of a range (Range.DataIndexMax).
Flutter: no counterpart
func (*HidpValueCaps) DataIndexMin ¶
func (c *HidpValueCaps) DataIndexMin() uint16
DataIndexMin is the data index of the first usage of a range (Range.DataIndexMin), or the data index (NotRange.DataIndex).
Flutter: no counterpart
func (*HidpValueCaps) UsageMax ¶
func (c *HidpValueCaps) UsageMax() uint16
UsageMax is the last usage of a range (Range.UsageMax); it is meaningful when IsRange is set.
Flutter: no counterpart
func (*HidpValueCaps) UsageMin ¶
func (c *HidpValueCaps) UsageMin() uint16
UsageMin is the first usage of a range (Range.UsageMin), or the usage (NotRange.Usage), which is at the same place.
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 Overlapped ¶
type Overlapped struct {
Internal uintptr `c:"Internal"`
InternalHigh uintptr `c:"InternalHigh"`
Offset uint32 `c:"Offset"`
OffsetHigh uint32 `c:"OffsetHigh"`
Event uintptr `c:"hEvent"`
}
Overlapped is the Go mirror of OVERLAPPED, the structure of a call that does not wait. Windows keeps a pointer to it while the call is under way, so the structure of a call lives in memory from HeapAlloc, never in Go memory (SPEC §6.3 rule 11).
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 PropVariant ¶
type PropVariant struct {
// VT is vt: the type (VTLPWStr).
VT uint16 `c:"vt"`
// Val is the first word of the union (pwszVal).
Val uintptr `c:"pwszVal"`
// contains filtered or unexported fields
}
PropVariant is the Go mirror of PROPVARIANT: a type and 16 bytes of union, of which the first pointer-sized word holds what the types that the audio code reads put there (the pointer of a VT_LPWSTR string).
Flutter: no counterpart
type PropertyKey ¶
type PropertyKey struct {
// FmtID is fmtid.
FmtID GUID `c:"fmtid"`
// PID is pid.
PID uint32 `c:"pid"`
}
PropertyKey is the Go mirror of PROPERTYKEY (a property of a property store: the GUID of its set and its number).
Flutter: no counterpart
type RawInputDevice ¶
type RawInputDevice struct {
UsagePage uint16 `c:"usUsagePage"`
Usage uint16 `c:"usUsage"`
Flags uint32 `c:"dwFlags"`
Target uintptr `c:"hwndTarget"`
}
RawInputDevice is the Go mirror of RAWINPUTDEVICE (RegisterRawInputDevices, step 30.7).
Flutter: no counterpart
type RawInputDeviceList ¶
RawInputDeviceList is the Go mirror of RAWINPUTDEVICELIST (GetRawInputDeviceList).
Flutter: no counterpart
type RawInputHeader ¶
type RawInputHeader struct {
Type uint32 `c:"dwType"`
Size uint32 `c:"dwSize"`
Device uintptr `c:"hDevice"`
WParam uintptr `c:"wParam"`
}
RawInputHeader is the Go mirror of RAWINPUTHEADER.
Flutter: no counterpart
type RawInputMouse ¶
type RawInputMouse struct {
Header RawInputHeader `c:"header"`
Mouse RawMouse `c:"data.mouse"`
}
RawInputMouse is the Go mirror of RAWINPUT for a mouse report (GetRawInputData): the header and the mouse member of the union, which is the member the pointer lock reads. Its size is that of the mouse member, not of RAWINPUT, so a buffer for GetRawInputData is sized by the call.
Flutter: no counterpart
type RawMouse ¶
type RawMouse struct {
Flags uint16 `c:"usFlags"`
ButtonFlags uint16 `c:"usButtonFlags"`
ButtonData uint16 `c:"usButtonData"`
RawButtons uint32 `c:"ulRawButtons"`
LastX int32 `c:"lLastX"`
LastY int32 `c:"lLastY"`
Extra uint32 `c:"ulExtraInformation"`
// contains filtered or unexported fields
}
RawMouse is the Go mirror of RAWMOUSE. The union of the button flags (a 32-bit value, or the two 16-bit halves) is the pair ButtonFlags and ButtonData.
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 RidDeviceInfo ¶
type RidDeviceInfo struct {
Size uint32 `c:"cbSize"`
Type uint32 `c:"dwType"`
HID RidDeviceInfoHID `c:"hid"`
// contains filtered or unexported fields
}
RidDeviceInfo is the Go mirror of RID_DEVICE_INFO for a HID device: the union holds the largest member (a keyboard's) and the HID member is the first 20 bytes of it.
Flutter: no counterpart
type RidDeviceInfoHID ¶
type RidDeviceInfoHID struct {
VendorID uint32 `c:"dwVendorId"`
ProductID uint32 `c:"dwProductId"`
VersionNumber uint32 `c:"dwVersionNumber"`
UsagePage uint16 `c:"usUsagePage"`
Usage uint16 `c:"usUsage"`
}
RidDeviceInfoHID is the Go mirror of RID_DEVICE_INFO_HID.
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 WaveFormatExtensible ¶
type WaveFormatExtensible struct {
// FormatTag is wFormatTag: WaveFormatTagExtensible here.
FormatTag uint16 `c:"Format.wFormatTag"`
// Channels is nChannels.
Channels uint16 `c:"Format.nChannels"`
// SamplesPerSec is nSamplesPerSec: the frames a second.
SamplesPerSec uint32 `c:"Format.nSamplesPerSec"`
// AvgBytesPerSec is nAvgBytesPerSec.
AvgBytesPerSec uint32 `c:"Format.nAvgBytesPerSec"`
// BlockAlign is nBlockAlign: the bytes of a frame.
BlockAlign uint16 `c:"Format.nBlockAlign"`
// BitsPerSample is wBitsPerSample.
BitsPerSample uint16 `c:"Format.wBitsPerSample"`
// CbSize is cbSize: 22 for the extensible format.
CbSize uint16 `c:"Format.cbSize"`
// ValidBitsPerSample is Samples.wValidBitsPerSample.
ValidBitsPerSample uint16 `c:"Samples.wValidBitsPerSample"`
// ChannelMask is dwChannelMask: the speakers of the channels, in the order of the bits.
ChannelMask uint32 `c:"dwChannelMask"`
// SubFormat is SubFormat: the kind of the samples (KSDataFormatSubTypeIEEEFloat).
SubFormat GUID `c:"SubFormat"`
}
WaveFormatExtensible is the Go mirror of WAVEFORMATEXTENSIBLE, written flat: its first eighteen bytes are the WAVEFORMATEX that the header packs to one byte, and the structure is packed too, so the fields after CbSize sit at 18, 20 and 24 (their natural places, which is why a flat struct with Go's alignment has the layout of the packed one; the layout test checks it). A format with WaveFormatTagPCM or WaveFormatTagIEEEFloat as its tag and 0 as CbSize is a plain WAVEFORMATEX and ends after CbSize.
Flutter: no counterpart
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
type XInputBatteryInformation ¶
type XInputBatteryInformation struct {
BatteryType uint8 `c:"BatteryType"`
BatteryLevel uint8 `c:"BatteryLevel"`
}
XInputBatteryInformation is the Go mirror of XINPUT_BATTERY_INFORMATION.
Flutter: no counterpart
type XInputCapabilities ¶
type XInputCapabilities struct {
Type uint8 `c:"Type"`
SubType uint8 `c:"SubType"`
Flags uint16 `c:"Flags"`
Gamepad XInputGamepad `c:"Gamepad"`
Vibration XInputVibration `c:"Vibration"`
}
XInputCapabilities is the Go mirror of XINPUT_CAPABILITIES.
Flutter: no counterpart
type XInputCapabilitiesEx ¶
type XInputCapabilitiesEx struct {
Capabilities XInputCapabilities `c:"Capabilities"`
VendorID uint16 `c:"VendorId"`
ProductID uint16 `c:"ProductId"`
VersionNumber uint16 `c:"VersionNumber"`
// contains filtered or unexported fields
}
XInputCapabilitiesEx is the Go mirror of XINPUT_CAPABILITIES_EX, which XInputGetCapabilitiesEx (an undocumented function of xinput1_4.dll, ordinal 108) fills: the capabilities and the vendor, product and version of the pad.
Flutter: no counterpart
type XInputGamepad ¶
type XInputGamepad struct {
Buttons uint16 `c:"wButtons"`
LeftTrigger uint8 `c:"bLeftTrigger"`
RightTrigger uint8 `c:"bRightTrigger"`
ThumbLX int16 `c:"sThumbLX"`
ThumbLY int16 `c:"sThumbLY"`
ThumbRX int16 `c:"sThumbRX"`
ThumbRY int16 `c:"sThumbRY"`
}
XInputGamepad is the Go mirror of XINPUT_GAMEPAD.
Flutter: no counterpart
type XInputState ¶
type XInputState struct {
PacketNumber uint32 `c:"dwPacketNumber"`
Gamepad XInputGamepad `c:"Gamepad"`
}
XInputState is the Go mirror of XINPUT_STATE.
Flutter: no counterpart
type XInputVibration ¶
type XInputVibration struct {
LeftMotorSpeed uint16 `c:"wLeftMotorSpeed"`
RightMotorSpeed uint16 `c:"wRightMotorSpeed"`
}
XInputVibration is the Go mirror of XINPUT_VIBRATION: the speeds of the two motors, from 0 to 65535.
Flutter: no counterpart
Source Files
¶
- com.go
- consts.go
- consts_audio.go
- consts_gamepad.go
- consts_ime.go
- consts_input.go
- consts_key.go
- consts_ole.go
- consts_services.go
- consts_shell.go
- consts_window.go
- doc.go
- errors.go
- guid.go
- paint.go
- rawinput_hid.go
- structs.go
- structs_audio.go
- structs_gamepad.go
- structs_ime.go
- structs_input.go
- structs_ole.go
- structs_shell.go
- structs_uia.go
- structs_version.go
- structs_window.go
- utf16.go
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). |