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);