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(
  _In_   HANDLE device,
  _Out_  RECT *pointerDeviceRect,
  _Out_  RECT *displayRect
);

Parameters

device [in]

The handle to the pointer device.

pointerDeviceRect [out]

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

displayRect [out]

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]

Header

Winuser.h

Library

User32.lib

DLL

User32.dll

See also

Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft