Returns the type of the specified procedure within a dynamic link module. The type returned indicates whether the specified procedure is a 16-bit or 32-bit callable procedure.
#define INCL_DOSMODULEMGR
#include <os2.h>
HMODULE hmod; /* The handle of the dynamic link module that contains the procedure. */
ULONG ordinal; /* The ordinal number of the procedure whose type is desired. */
PSZ pszName; /* The address of an ASCIIZ name string that contains the procedure name that is being referenced. */
PULONG pulproctype; /* The address of a ULONG in which the procedure type is returned. */
APIRET ulrc; /* Return Code. */
ulrc = DosQueryProcType(hmod, ordinal, pszName,
pulproctype);