hmod (HMODULE) - input

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

    ordinal (ULONG) - input

      The ordinal number of the procedure whose type is desired.

      If the ordinal number is nonzero, pszName is ignored.

    pszName (PSZ) - input

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

      Calls to DosQueryProcType 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.

    pulproctype (PULONG) - output

      The address of a ULONG in which the procedure type is returned.

      The value returned in this field is one of the following:

    • PT_16BIT Procedure is 16-bit.
    • PT_32BIT
      Procedure is 32-bit.

    ulrc (APIRET) - returns

      Return Code.

      DosQueryProcType returns one of the following values:

    • NO_ERROR 6
        ERROR_INVALID_HANDLE
      123
        ERROR_INVALID_NAME
      182
        ERROR_INVALID_ORDINAL
      For a full list of error codes, see Errors.


    [Back] [Next]