1.12 Clipboard Functions

The clipboard provides a mechanism that makes it possible for applications to pass data handles to other applications. For more information about the clipboard, see the Microsoft Windows Guide to Programming.

Clipboard functions carry out data interchange between Windows applications. Following are the clipboard functions:

Function Description

ChangeClipboardChain Removes a window from the chain of clipboard viewers.
CloseClipboard Closes the clipboard.
EmptyClipboard Empties the clipboard and reassigns clipboard ownership.
EnumClipboardFormats Enumerates the available clipboard formats.
GetClipboardData Retrieves data from the clipboard.
GetClipboardFormatName Retrieves the clipboard format.
GetClipboardOwner Retrieves the window handle associated with the current clipboard owner.
GetClipboardViewer Retrieves the handle of the first window in the clipboard-viewer chain.
GetOpenClipboardWindow Retrieves the handle of the window that currently has the clipboard open.
GetPriorityClipboardFormat Retrieves data from the clipboard in the first format in a prioritized format list.
IsClipboardFormatAvailable Returns nonzero if the data in the given format is available.
OpenClipboard Opens the clipboard.
RegisterClipboardFormat Registers a new clipboard format.
SetClipboardData Copies a handle of data for the clipboard.
SetClipboardViewer Adds a handle to the clipboard-viewer chain.

For detailed information about clipboard functions, see the Microsoft Windows Programmer's Reference, Volume 2.