RegisterPointerDeviceNotifications function (winuser.h)
Registers a window to process the WM_POINTERDEVICECHANGE, WM_POINTERDEVICEINRANGE, and WM_POINTERDEVICEOUTOFRANGE pointer device notifications.
Syntax
BOOL RegisterPointerDeviceNotifications(
[in] HWND window,
[in] BOOL notifyRange
);
Parameters
[in] window
The window that receives WM_POINTERDEVICECHANGE, WM_POINTERDEVICEINRANGE, and WM_POINTERDEVICEOUTOFRANGE notifications.
[in] notifyRange
If set to TRUE, process the WM_POINTERDEVICEINRANGE and WM_POINTERDEVICEOUTOFRANGE messages. If set to FALSE, these messages aren't processed.
Return value
If this function succeeds, it returns TRUE.
Otherwise, it returns FALSE. To retrieve extended error information, call the GetLastError function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | winuser.h |
Library | User32.lib |
DLL | User32.dll |
API set | ext-ms-win-rtcore-ntuser-wmpointer-l1-1-0 (introduced in Windows 10, version 10.0.14393) |