Skip to main content
GetPointerDeviceCursors function

Gets the cursor IDs that are mapped to the cursors associated with a pointer device.

Syntax


 BOOL GetPointerDeviceCursors(
  _In_       HANDLE device,
  _Inout_    UINT32 *cursorCount,
  _Out_opt_  POINTER_DEVICE_CURSOR_INFO *deviceCursors
);

Parameters

device [in]

The device handle.

cursorCount [in, out]

The number of cursors associated with the pointer device.

deviceCursors [out, optional]

An array of POINTER_DEVICE_CURSOR_INFO structures that contain info about the cursors. If NULL, cursorCount returns the number of cursors associated with the pointer device.

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