CloseClipboard

This function closes the clipboard.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

BOOL CloseClipboard(void);

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

When the window has finished examining or changing the clipboard, close the clipboard by calling CloseClipboard. This enables other windows to access the clipboard.

Do not place an object on the clipboard after calling CloseClipboard.

See Also

GetOpenClipboardWindow, OpenClipboard