go.windows

module
v0.0.0-...-f2919f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2022 License: MIT

README

go.windows

WORK-IN-PROGRESS Native Go library for win32 API functionality

  • No Cgo
  • No Setupapi.dll
  • No imports other than:
    • Go standard library
    • golang.org/x/
    • git.sr.ht/~errnoh/overlapped (stable, maintained by myself)
    • git.sr.ht/~errnoh/hid.usage for pretty printing HID collections (stable, maintained by myself)

Stability

Library is already being used by some other libraries and most of the API is stable. Everything under w32 can be considered stable, devices itself has also stabilized, at the time of writing devices/hid is likely stable on the IO side, but some surrounding utility might still change.

HID devices

Initial focus of the library was to provide access to HID devices natively without having to use Cgo. This can be found from devices/hid, and is at the time of writing the main functionality provided by this library.

Structure

Submodule Description
w32 Provides raw syscalls, structs and variables that are used when dealing with win32 API
w32/cfgmgr32 Functionality related to cfgmgr32.dll
w32/hid Functionality related to hid.dll
devices Provides low-level access to devices
devices/hid Provides access to Human Interface Devices (HID)
devices/hid/collections Provides parsing HID collections

Information flow

architecture

Directories

Path Synopsis
hid
w32
cfgmgr32
generated and tested syscall functions and structs for Win32 API `cfgmgr32.dll`
generated and tested syscall functions and structs for Win32 API `cfgmgr32.dll`
hid
generated and tested syscall functions and structs for Win32 API `hid.dll`
generated and tested syscall functions and structs for Win32 API `hid.dll`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL