Loads a dynamic link module (DLL), 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 DosLoadModule 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 module name. */
PHMODULE phmod; /* Pointer to an HMODULE in which the handle for the dynamic link module is returned. */
APIRET ulrc; /* Return Code. */
ulrc = DosLoadModule(pszName, cbName, pszModname,
phmod);