EmptyClipboard

Syntax

BOOL EmptyClipboard( )

This function empties the clipboard and frees handles to data in the clipboard. It then assigns ownership of the clipboard to the window that currently has the clipboard open.

This function has no parameters.

Return Value

The return value specifies the status of the clipboard. It is nonzero if the clipboard is emptied. It is zero if an error occurs.

Comments

The clipboard must be open when the EmptyClipboard function is called.