---
name: "RegisterDeviceNotificationW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RegisterDeviceNotificationW"
---

# 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"**.
