Jump to content

WinLoadProcedure: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== WinLoadProcedure ==
Loads the named procedure associated with the library (dynamic link library) handle.
; WinLoadProcedure(anchorBlockHndl, libraryHndl, procedureName) : Loads the named procedure associated with the library (dynamic link library) handle.
WinLoadProcedure(anchorBlockHndl, libraryHndl, procedureName)


=== Parameters ===
== Parameters ==
; anchorBlockHndl - [[HAB]] - input : The anchor block handle.
; anchorBlockHndl - [[HAB]] - input : The anchor block handle.
; libraryHndl - [[HLIB]] - input : The library handle.
; libraryHndl - [[HLIB]] - input : The library handle.
Line 27: Line 27:
=== Example Code ===
=== Example Code ===
  ...
  ...
  [[OS2 API:DataType:PFNWP|PFNWP]] rc;
  [[PFNWP]] rc;
  [[OS2 API:DataType:HAB|HAB]]    hab;
  [[HAB]]    hab;
  [[OS2 API:DataType:HLIB|HLIB]]  hlib;
  [[HLIB]]  hlib;
  ...
  ...
  rc = WinLoadProcedure (hab, hlib, "someFunctionName");
  rc = WinLoadProcedure (hab, hlib, "someFunctionName");
  ...
  ...


=== Related Functions ===
==Related Functions==
*[[WinDeleteLibrary]]
*[[WinDeleteLibrary]]
*[[WinDeleteProcedure]]
*[[WinDeleteProcedure]]

Revision as of 23:29, 29 January 2018

Loads the named procedure associated with the library (dynamic link library) handle.

WinLoadProcedure(anchorBlockHndl, libraryHndl, procedureName)

Parameters

anchorBlockHndl - HAB - input
The anchor block handle.
libraryHndl - HLIB - input
The library handle.
procedureName - PSZ - input
The name of the procedure.

Constants

None

Returns

This function returns a PFNWP - the window procedure identifier.

Module

PMMERGE

Define (C/C++)

INCL_WINLOAD or INCL_WIN or INCL_PM

Export name/Ordinal

@3160

Calling Convention

Cdecl32

Example Code

...
PFNWP rc;
HAB     hab;
HLIB   hlib;
...
rc = WinLoadProcedure (hab, hlib, "someFunctionName");
...

Related Functions