Skip to main content

Windows Dev Center

GetPointerType function

Retrieves the pointer type for a specified pointer.

Syntax


BOOL WINAPI GetPointerType (
  _In_  UINT32             pointerId,
  _Out_ POINTER_INPUT_TYPE *pointerType
);

Parameters

pointerId [in]

An identifier of the pointer for which to retrieve pointer type.

pointerType [out]

An address of a POINTER_INPUT_TYPE type to receive a pointer input type.

Return value

If the function succeeds, the return value is non-zero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

An application can use the GetPointerType function to determine the pointer type if it wishes to react differently to pointers of different types.

Note  This function will never return with the generic PT_POINTER type.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Functions