This function returns pointer information.
#define INCL_WINPOINTERS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HPOINTER hptr; /* Pointer handle. */ PPOINTERINFO pptriPointerInfo; /* Pointer-information structure. */ BOOL rc; /* Success indicator. */ rc = WinQueryPointerInfo(hptr, pptriPointerInfo);