This function returns the pointer position, in screen coordinates, when the last message obtained from the current message queue is posted.
#define INCL_WINMESSAGEMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PPOINTL pptl; /* Pointer position in screen coordinates. */ BOOL rc; /* Success indicator. */ rc = WinQueryMsgPos(hab, pptl);