DosLoadModule loads a dynamic link or executable module, and returns a handle for the module.
#define INCL_DOSMODULEMGR
#include <os2.h>
PSZ pszName; /* The address of a buffer into which the name of an object that contributed to the failure of DosLoadResourceModule is to be placed. */
ULONG cbName; /* The length, in bytes, of the buffer described by pszName. */
PSZ pszModname; /* The address of an ASCIIZ name string that contains the dynamic link or executable module name. */
PHMODULE phmod; /* Pointer to an HMODULE in which the handle for the dynamic link or executable module is returned. */
APIRET ulrc; /* Return Code. */
ulrc = DosLoadResourceModule(pszName, cbName,
pszModname, phmod);