OS/2 Module Manager API Differences

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

DosLoadModule

APIRET APIENTRY DosLoadModule(PSZ pszName, ULONG cbName, PSZ pszModname,
                              PHMODULE phmod);

DosFreeModule

APIRET APIENTRY DosFreeModule(HMODULE hmod);

DosQueryProcAddr

APIRET APIENTRY DosQueryProcAddr(HMODULE hmod, ULONG ordinal, PSZ pszName,
                                 PFN* ppfn);

DosQueryModuleHandle

APIRET APIENTRY DosQueryModuleHandle(PSZ pszModname, PHMODULE phmod);

DosQueryModuleName

APIRET APIENTRY DosQueryModuleName(HMODULE hmod, ULONG cbName, PCHAR pch);

DosQueryProcType

APIRET APIENTRY DosQueryProcType(HMODULE hmod, ULONG ordinal, PSZ pszName,
                                 PULONG pulproctype);