Jump to content

WinQueryWindowThunkProc

From EDM2
Revision as of 21:14, 26 November 2023 by Martini (talk | contribs) (Created page with "This function queries the pointer-conversion procedure associated with a window. ==Syntax== WinQueryWindowThunkProc(''hwnd'') ==Parameters== ;hwnd (HWND) - input :Window h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function queries the pointer-conversion procedure associated with a window.

Syntax

WinQueryWindowThunkProc(hwnd)

Parameters

hwnd (HWND) - input
Window handle.

Returns

thunkpr (PFN) - returns
Pointer-conversion procedure identifier.
NULL
No pointer-conversion procedure is associated with this window.
Other
Identifier of the pointer-conversion procedure associated with this window.

Example Code

This example shows how to get pointer conversion procedure associated with the frame window.

#define INCL_WINTHUNKAPI
#include <OS2.H>

HWND hwndFrame;
PFN  pthnkproc;

pthnkproc = WinQueryWindowThunkProc(hwndFrame);

Definition

#define INCL_WINTHUNKAPI /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND    hwnd;     /*  Window handle. */
PFN     thunkpr;  /*  Pointer-conversion procedure identifier. */

thunkpr = WinQueryWindowThunkProc(hwnd);

Related Functions