win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinEnumClipbrdFmts (1.2)
Function Group  Overview  Message Group         Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCLIPBOARD
 
USHORT WinEnumClipbrdFmts(hab, fmt)
HAB hab;       /* handle of the anchor block      */
USHORT fmt;    /* index of last format enumerated */
 
The WinEnumClipbrdFmts function enumerates the list of clipboard data
formats available in the clipboard. The clipboard must have been previously
opened by calling the WinOpenClipbrd function.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies the anchor block.
 
fmt        Specifies the index of the last clipboard data format enumerated
           using this function. This should start at zero, in which case the
           first available format is obtained. Subsequently, it should be
           set to the last format index value returned by this function.
 
Return Value
 
The return value is the index of the next available clipboard data format in
the clipboard. When zero is returned, enumeration is complete (there are no
further formats available).
 
See Also
 
WinOpenClipbrd