This function enumerates the list of clipboard data formats available in the clipboard.
#define INCL_WINCLIPBOARD /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ ULONG fmt; /* Previous clipboard-data format index. */ ULONG ulNext; /* Next clipboard-data format index. */ ulNext = WinEnumClipbrdFmts(hab, fmt);