winapi

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

README

WindowsAPI

概要

github.com/lxn/win で網羅されていないものを補うために作った自分用APIライブラリ。WindowsAPIを使いたい人は例としてどうぞ。

Documentation

Index

Constants

View Source
const (
	FLOODFILLBORDER uint32 = iota
	FLOODFILLSURFACE
)
View Source
const (
	LWA_COLORKEY uint32 = 1 + iota
	LWA_ALPHA
)
View Source
const (
	MAPVK_VK_TO_VSC uint32 = iota
	MAPVK_VSC_TO_VK
	MAPVK_VK_TO_CHAR
	MAPVK_VSC_TO_VK_EX
	MAPVK_VK_TO_VSC_EX
)
View Source
const NULL uintptr = 0

Variables

This section is empty.

Functions

func ActivateAudioInterfaceAsync

func ActivateAudioInterfaceAsync(deviceInterfacePath *uint16, riid REFIID, activationParams wca.PROPVARIANT, completionHandler IActivateAudioInterfaceCompletionHandlerInterface, activationOperation IActivateAudioInterfaceAsyncOperation) win.HRESULT

func ClipCursor

func ClipCursor(rect *win.RECT) (ok int, err error)

func CreateDIBSection

func CreateDIBSection(hdc win.HDC, pbmi *win.BITMAPINFO, usage uint, ppvBits uintptr, hSection win.HANDLE, offset uint32) win.HBITMAP

func CreatePen

func CreatePen(iStyle int, cWidth int, color uint32) win.HPEN

func CreateRectRgnIndirect

func CreateRectRgnIndirect(rect win.RECT) win.HRGN

func CreateSolidBrush

func CreateSolidBrush(color uint32) win.HGDIOBJ

func EnumChildWindows

func EnumChildWindows(hwnd win.HWND) []win.HWND

func EnumDesktopWindows

func EnumDesktopWindows(hDesktop win.HANDLE, lpEnumFunc uintptr, lParam uintptr) (ok bool)

func ExtFloodFill

func ExtFloodFill(hdc win.HDC, x int, y int, color uint32, opType uint32) bool

func FillRect

func FillRect(hdc win.HDC, rect win.RECT, hbr win.HBRUSH) (ok bool)

func FindChildWindowsFromWindowText

func FindChildWindowsFromWindowText(parentHWND win.HWND, lpszClass *uint16, lpszWindow *uint16, windowText string) win.HWND

func FindWindow

func FindWindow(lpClassName, lpWindowName *uint16) win.HWND

func FindWindowEx

func FindWindowEx(hwndParent win.HWND, hwndChildAfter win.HWND, lpszClass *uint16, lpszWindow *uint16) (hwnd win.HWND)

func GetClassName

func GetClassName(hwnd win.HWND, lpClassName uintptr, nMax int) (length int)

func GetCursorPos

func GetCursorPos(lpPoint *win.POINT) bool

func GetWindowRect

func GetWindowRect(hwnd win.HWND, rect *win.RECT) bool

func GetWindowText

func GetWindowText(hwnd win.HWND, lpString uintptr, nMax int) (length int)

func GetWindowTextString

func GetWindowTextString(hwnd win.HWND) string

func InvalidateRect

func InvalidateRect(hwnd win.HWND, rect win.RECT, bErase bool) (ok bool)

func MapVirtualKey

func MapVirtualKey(uCode uint32, uMapType uint32) (code uint32)

func MustUTF16FromString

func MustUTF16FromString(str string) []uint16

func MustUTF16PtrFromString

func MustUTF16PtrFromString(str string) *uint16

func PolyDraw

func PolyDraw(hdc win.HDC, apt win.POINT, aj byte, cpt int) bool

func SendMessage

func SendMessage(hwnd win.HWND, msg uint32, wParam uintptr, lParam uintptr) uintptr

func SetForegroundWindow

func SetForegroundWindow(hWnd win.HWND) bool

func SetLayeredWindowAttributes

func SetLayeredWindowAttributes(hwnd win.HWND, color uint32, bAlpha byte, dwFlags uint32) (ok bool)

func SetWindowRgn

func SetWindowRgn(hwnd win.HWND, hRgn win.HRGN, bRedraw bool) (ok bool)

func SetWindowText

func SetWindowText(hwnd win.HWND, lpString *uint16) (ok bool)

func ShowCursor

func ShowCursor(state bool) (counter int)

func ShowWindow

func ShowWindow(hWnd win.HWND, nCmdShow int32) bool

func UpdateLayeredWindow

func UpdateLayeredWindow(hwnd win.HWND, hdcDst win.HDC, pptDst win.POINT, psize uintptr, hdcSrc win.HDC, pptSrc win.POINT, crKey uint32, pblend win.BLENDFUNCTION, dwFlags uint32) (ok bool)

func UpdateWindow

func UpdateWindow(hwnd win.HWND) bool

Types

type IActivateAudioInterfaceAsyncOperation

type IActivateAudioInterfaceAsyncOperation interface {
	ole.UnknownLike
	GetActivateResult(activateResult win.HRESULT, activateInterface ole.IUnknown)
}

type IActivateAudioInterfaceCompletionHandlerInterface

type IActivateAudioInterfaceCompletionHandlerInterface interface {
	ole.UnknownLike
	ActivateCompleted(activateOperation IActivateAudioInterfaceAsyncOperation)
}

type IID

type IID ole.GUID

type REFIID

type REFIID IID

Jump to

Keyboard shortcuts

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