Skip to content

jeet-parekh/winapi

Repository files navigation

Windows API wrappers for Go


About winapi

APIs wrapped:


WINAPI uses union which is not available in Go. To handle that, variants of structures and functions have been created for some APIs.

The structures and functions which have variants are mentioned below.


RAW INPUT

GetRawInputDeviceInfo for uiCommand RIDI_PREPARSEDDATA isn't implemented.

Abbreviations

Abbreviation Meaning
M Mouse
MB MouseButtons
MBI MouseButtonInformation
K Keyboard
HID Human Interface Device

Structures

WINAPI Go
RAWINPUT RAWINPUT_MB
RAWINPUT_MBI
RAWINPUT_K
RAWINPUT_HID
RAWMOUSE RAWMOUSEBUTTONS
RAWMOUSEBUTTONINFO
RID_DEVICE_INFO RIDI_M
RIDI_K
RIDI_HID

Functions

WINAPI Go
DefRawInputProc DefRawInputProcMB
DefRawInputProcMBI
DefRawInputProcK
DefRawInputProcHID
GetRawInputBuffer GetRawInputBufferMB
GetRawInputBufferMBI
GetRawInputBufferK
GetRawInputBufferHID
GetRawInputData GetRawInputDataMB
GetRawInputDataMBI
GetRawInputDataK
GetRawInputDataHID
GetRawInputDeviceInfo GetRawInputDeviceName
GetRawInputDeviceInfoM
GetRawInputDeviceInfoK
GetRawInputDeviceInfoHID

KEYBOARD INPUT

Abbreviations

Abbreviation Meaning
M Mouse
K Keyboard
HW Hardware

Structures

WINAPI Go
INPUT INPUT_M
INPUT_K
INPUT_HW

Functions

WINAPI Go
SendInput SendInputM
SendInputK
SendInputHW

Releases

No releases published

Packages

No packages published

Languages