Jump to content

WinQueryClassThunkProc

From EDM2
Revision as of 20:24, 27 November 2023 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Related Functions