user32

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	DEVICE_NOTIFY_WINDOW_HANDLE = DEVICE_NOTIFY_HANDLE_TYPE(0x00000000)
	// Currently not supported: DEVICE_NOTIFY_SERVICE_HANDLE = DEVICE_NOTIFY_HANDLE_TYPE(0x00000001)
	DEVICE_NOTIFY_ALL_INTERFACE_CLASSES = types.DWORD(0x00000004)
	DBT_DEVTYP_DEVICEINTERFACE          = types.DWORD(0x00000005)
)

Taken from https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerdevicenotificationw#parameters.

Variables

This section is empty.

Functions

func RegisterDeviceNotificationW

func RegisterDeviceNotificationW(handle windows.Handle, flags DEVICE_NOTIFY_HANDLE_TYPE) error

RegisterDeviceNotificationW wraps https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerdevicenotificationw restricted to USB devices only.

Types

type DEVICE_NOTIFY_HANDLE_TYPE

type DEVICE_NOTIFY_HANDLE_TYPE types.DWORD

type DeviceNotificationFilter

type DeviceNotificationFilter struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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