The following describes the implementation differences between the OS2Linux library and the real OS/2 module manager APIs.
These APIs are included in your application by including the following definition in your application source file.
#define INCL_DOSMODULEMGR
APIRET APIENTRY DosLoadModule(PSZ pszName, ULONG cbName, PSZ pszModname, PHMODULE phmod);
APIRET APIENTRY DosFreeModule(HMODULE hmod);
APIRET APIENTRY DosQueryProcAddr(HMODULE hmod, ULONG ordinal, PSZ pszName, PFN* ppfn);
APIRET APIENTRY DosQueryModuleHandle(PSZ pszModname, PHMODULE phmod);
APIRET APIENTRY DosQueryModuleName(HMODULE hmod, ULONG cbName, PCHAR pch);
APIRET APIENTRY DosQueryProcType(HMODULE hmod, ULONG ordinal, PSZ pszName, PULONG pulproctype);