Jump to content

WinQueryClassThunkProc

From EDM2
Revision as of 21:09, 26 November 2023 by Martini (talk | contribs) (Created page with "This call queries the pointer-conversion procedure associated with a class. ==Syntax== WinQueryClassThunkProc(pszClassName) ==Parameters== ; pszClassName (PSZ) - input : W...")
(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);

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

Related Functions