hmod (HMODULE) - input

      The handle of the dynamic link module that contains the procedure.

    ordinal (ULONG) - input

      The ordinal number of the procedure whose address is desired.

      If the ordinal number is nonzero, pszName is ignored. It must be less or equal to 65 533.

    pszName (PSZ) - input

      The address of an ASCIIZ name string that contains the procedure name that is being referenced.

      Calls to DosQueryProcAddr for entries within the DOSCALLS module are supported for ordinal references only. References to the DOSCALLS module by name strings are not supported, and will return an error. Dynamic link ordinal numbers for DOSCALLS routines are resolved by linking with OS2386.LIB.

    ppfn (PFN *) - output

      A pointer to a PFN in which the procedure address is returned.

    ulrc (APIRET) - returns

      Return Code.

      DosQueryProcAddr returns one of the following values:

    • NO_ERROR 6
        ERROR_INVALID_HANDLE
      123
        ERROR_INVALID_NAME
      182
        ERROR_INVALID_ORDINAL
      65079
        ERROR_ENTRY_IS_CALLGATE (this error code is not valid in OS/2 Warp PowerPC Edition)
      For a full list of error codes, see Errors.


    [Back] [Next]