WinQueryClassThunkProc
Appearance
This call queries the pointer-conversion procedure associated with a class.
Syntax
WinQueryClassThunkProc(pszClassName)
Parameters
- pszClassName (PSZ) - input
- Window-class name.
Returns
- thunkpr (PFN) - returns
- Pointer-conversion procedure identifier.
- NULL
- No pointer-conversion procedure is associated with this class.
- Other
- Identifier of the pointer-conversion procedure associated with this class.
Example Code
This example obtains the pointer conversion procedure of the window class, given that we have an anchor-block handle.
#define INCL_WINWINDOWMGR #define INCL_WINTHUNKAPI #include <OS2.H> HWND hwnd; /* . */ PFN pfn; char *classname; WinQueryClassName(hwnd, sizeof(classname), classname); pfn = WinQueryClassThunkProc(classname);
Definition
#define INCL_WINTHUNKAPI /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> PSZ pszClassName; /* Window-class name. */ PFN thunkpr; /* Pointer-conversion procedure identifier. */ thunkpr = WinQueryClassThunkProc(pszClassName);