GetPointerDeviceRects function

Gets the x and y range for the pointer device (in himetric) and the x and y range (current resolution) for the display that the pointer device is mapped to.

Syntax

BOOL GetPointerDeviceRects(
  HANDLE device,
  RECT   *pointerDeviceRect,
  RECT   *displayRect
);

Parameters

device

The handle to the pointer device.

pointerDeviceRect

The structure for retrieving the device's physical range data.

displayRect

The structure for retrieving the display resolution.

Return Value

TRUE if the function succeeds; otherwise, FALSE. If the function fails, call the GetLastError function for more information.

Requirements

   
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

See Also

Functions