syscall

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package syscall provides platform-dependent routines required to support the package goey. In particular, on WIN32, the goal is to fill in some missing APIs that are not provided by lxn's WIN32 binding. Anything found herein should be a candidate for upstreaming. Since the WIN32 naming convention is also camel case, most of the functions in this package are named exactly as their C API counterpart.

This package is intended for internal use.

This package contains platform-specific details.

Index

Constants

View Source
const (
	GCLP_HICON   = -14
	GCLP_HICONSM = -34

	DTM_FIRST         = 0x1000
	DTM_CLOSEMONTHCAL = DTM_FIRST + 13

	MCM_FIRST  = 0x1000
	MCN_FIRST  = uint32(0xFFFFFD12)
	MCN_SELECT = MCN_FIRST + 4

	STM_SETIMAGE = 0x0172
	STM_GETIMAGE = 0x0173
)

Variables

This section is empty.

Functions

func GetDesktopWindow

func GetDesktopWindow() win.HWND

GetDesktopWindow is a wrapper.

func GetWindowText

func GetWindowText(hWnd win.HWND) string

GetWindowText is a wrapper for GetWindowTextLength and GetWindowText. This function provides a somewhat higher-level API than the C API, as Go is garbage collected, so the buffer management provided by the C API is not required.

func GetWindowTextLength

func GetWindowTextLength(hWnd win.HWND) int32

GetWindowTextLength is a wrapper.

func SetClassLongPtr

func SetClassLongPtr(hWnd win.HWND, index int32, value uintptr) uintptr

SetClassLongPtr is a wrapper.

func SetWindowText

func SetWindowText(hWnd win.HWND, text *uint16) win.BOOL

SetWindowText is a wrapper.

func ShowScrollBar

func ShowScrollBar(hWnd win.HWND, wSBFlags uint, bShow win.BOOL) win.BOOL

ShowScrollBar is a wrapper.

Types

type NMSELCHANGE

type NMSELCHANGE struct {
	Nmhdr      win.NMHDR
	StSelStart win.SYSTEMTIME
	StSelEnd   win.SYSTEMTIME
}

NMSELCHANGE match the C structure of the same name.

Jump to

Keyboard shortcuts

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