Differences
This shows you the differences between two versions of the page.
en:docs:fapi:dosgetprocaddr [2021/09/11 02:23] – created prokushev | en:docs:fapi:dosgetprocaddr [2021/09/19 05:40] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | ====== DosGetProcAddr ====== | ||
+ | |||
This call returns a far address to a desired procedure within a dynamic link module. | This call returns a far address to a desired procedure within a dynamic link module. | ||
- | ==Syntax== | + | ===== Syntax |
<code c> | <code c> | ||
Line 7: | Line 10: | ||
</ | </ | ||
- | ==Parameters== | + | ===== Parameters ===== |
*ModuleHandle ([[HMODULE]]) - input: Handle of the dynamic link module. | *ModuleHandle ([[HMODULE]]) - input: Handle of the dynamic link module. | ||
- | *ProcName (PSZ) - input: Address of a name string that contains the referenced procedure name. | + | *ProcName ([[PSZ]]) - input: Address of a name string that contains the referenced procedure name. |
- | : | + | |
- | : | + | |
- | *ProcAddress (PFN FAR *) - output: Procedure address. | + | |
- | ==Return Code== | + | Alternatively, |
- | ;rc (USHORT) - return: | + | |
+ | 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. | ||
+ | |||
+ | ===== Return Code ===== | ||
+ | |||
+ | rc ([[USHORT]]) - return: | ||
* 0 NO_ERROR | * 0 NO_ERROR | ||
Line 23: | Line 30: | ||
*127 ERROR_PROC_NOT_FOUND | *127 ERROR_PROC_NOT_FOUND | ||
- | ==Remarks== | + | ===== Remarks ===== |
A 32-bit address, consisting of a selector and offset, is returned for a specified procedure. | A 32-bit address, consisting of a selector and offset, is returned for a specified procedure. | ||
Line 31: | Line 39: | ||
Other run-time dynamic link calls are [[DosLoadModule]], | Other run-time dynamic link calls are [[DosLoadModule]], | ||
- | ==Bindings== | + | ===== Bindings |
- | ===C=== | + | |
+ | ====C==== | ||
<code c> | <code c> | ||
#define INCL_DOSMODULEMGR | #define INCL_DOSMODULEMGR | ||
Line 44: | Line 53: | ||
USHORT | USHORT | ||
</ | </ | ||
- | ===MASM=== | + | ====MASM==== |
<code asm> | <code asm> | ||
EXTRN DosGetProcAddr: | EXTRN DosGetProcAddr: | ||
Line 59: | Line 68: | ||
[[http:// | [[http:// | ||
+ | {{page> |