This function retrieves a pointer value from the memory of the reserved window word.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwnd; /* Window handle which has the pointer to retrieve. */ LONG index; /* Zero-based index of the pointer value to retrieve. */ PVOID pRet; /* Pointer value. */ pRet = WinQueryWindowPtr(hwnd, index);