This function determines whether a particular format of data is present in the clipboard, and if so, provides information about that format.
#define INCL_WINCLIPBOARD /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ ULONG fmt; /* Format of the data to be queried. */ PULONG prgfFmtInfo; /* Memory model and usage flags. */ BOOL rc; /* Format-exists indicator. */ rc = WinQueryClipbrdFmtInfo(hab, fmt, prgfFmtInfo);