This function makes the library available to the application.
#define INCL_WINLOAD /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PSZ pszLibname; /* Library name. */ HLIB hlibLibhandle; /* Library handle. */ hlibLibhandle = WinLoadLibrary(hab, pszLibname);