This example closes the clipboard, previously opened by WinOpenClipbrd, to allow other applications to open it for use.
#define INCL_WINCLIPBOARD /* Window Clipboard Functions */ #include <os2.h> BOOL fSuccess; /* success indicator */ HAB hab; /* anchor-block handle */ fSuccess = WinCloseClipbrd(hab);