Funzione RegisterPointerDeviceNotifications (winuser.h)

Registra una finestra per elaborare le notifiche del dispositivo di WM_POINTERDEVICECHANGE, WM_POINTERDEVICEINRANGE e WM_POINTERDEVICEOUTOFRANGE puntatore.

Sintassi

BOOL RegisterPointerDeviceNotifications(
  [in] HWND window,
  [in] BOOL notifyRange
);

Parametri

[in] window

Finestra che riceve notifiche di WM_POINTERDEVICECHANGE, WM_POINTERDEVICEINRANGE e WM_POINTERDEVICEOUTOFRANGE .

[in] notifyRange

Se impostato su TRUE, elaborare i messaggi WM_POINTERDEVICEINRANGE e WM_POINTERDEVICEOUTOFRANGE . Se impostato su FALSE, questi messaggi non vengono elaborati.

Valore restituito

Se questa funzione ha esito positivo, restituisce TRUE.

In caso contrario, restituisce FALSE. Per recuperare informazioni sull'errore estese, chiamare la funzione GetLastError .

Requisiti

Requisito Valore
Client minimo supportato Windows 8 [solo app desktop]
Server minimo supportato Windows Server 2012 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione Winuser
Libreria User32.lib
DLL User32.dll
Set di API ext-ms-win-rtcore-ntuser-wmpointer-l1-1-0 (introdotto in Windows 10, versione 10.0.14393)

Vedi anche

Funzioni