Scroll to navigation

RegisterDeviceNotificationW(3w) Wine API RegisterDeviceNotificationW(3w)

NAME

RegisterDeviceNotificationW (USER32.@)

SYNOPSIS

HDEVNOTIFY RegisterDeviceNotificationW
(
HANDLE hRecepient,
LPVOID pNotificationFilter,
DWORD dwFlags
)
 

DESCRIPTION

Registers a window with the system so that it will receive notifications about a device.
 

PARAMS

hRecepient [In] Window or service status handle that will receive notifications.
pNotificationFilter [In] DEV_BROADCAST_HDR followed by some type-specific data.
dwFlags [In] See notes.
 

RETURNS

A handle to the device notification.
 

NOTES

The dwFlags parameter can be one of two values:
 

DEVICE_NOTIFY_WINDOW_HANDLE - hRecepient is a window handle
 

DEVICE_NOTIFY_SERVICE_HANDLE - hRecepient is a service status handle
 

IMPLEMENTATION

Declared in "winuser.h".
Implemented in "dlls/user32/misc.c".
Debug channel "win".
Oct 2012 Wine API