This example deletes the library identified by the library handle returned from WinLoadLibrary.
#define INCL_WINLOAD /* Window Load Functions */ #include <os2.h> BOOL fSuccess; /* success indicator */ HAB hab; /* anchor-block handle */ HLIB hlib; /* library handle */ fSuccess = WinDeleteLibrary(hab, hlib);