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) )
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 DeviceNotificationFilter ¶
type DeviceNotificationFilter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.