DosGetProcAddr
Bindings: C, MASM
This call returns a far address to a desired procedure within a dynamic
link module.
DosGetProcAddr (ModuleHandle, ProcName, ProcAddress)
ModuleHandle (HMODULE) - input
Handle of the dynamic link module.
ProcName (PSZ) - input
Address of a name string that contains the referenced procedure name.
Alternatively, if the selector portion of the pointer is null, the
offset portion of the pointer is an explicit entry number (ordinal)
within the dynamic link module.
DosGetProcAddr for entries within the DOSCALLS module are only
supported for ordinal references. References to the DOSCALLS module
by name strings are not supported and return an error. Dynamic link
ordinal numbers for DOSCALLS routines are resolved by linking with
DOSCALLS.LIB.
ProcAddress (PFN FAR *) - output
Procedure address.
rc (USHORT) - return
Return code descriptions are:
0 NO_ERROR
6 ERROR_INVALID_HANDLE
95 ERROR_INTERRUPT
127 ERROR_PROC_NOT_FOUND
Remarks
A 32-bit address, consisting of a selector and offset, is returned for a
specified procedure.
To free the dynamic link module, issue DosFreeModule. After DosFreeModule
is issued, procedure entry addresses returned for this handle or no
longer valid.
Other run-time dynamic link calls are DosLoadModule, DosGetModName, and
DosGetModHandle.
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs