This function deletes the library hlibLibhandle, which is previously loaded by the WinLoadLibrary function.
#define INCL_WINLOAD /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ HLIB hlibLibhandle; /* Library handle to be deleted. */ BOOL rc; /* Library-deleted indicator. */ rc = WinDeleteLibrary(hab, hlibLibhandle);