Share via


CloseClipboard (Compact 2013)

3/28/2014

This function closes the clipboard.

Syntax

BOOL CloseClipboard(void);

Parameters

None.

Return Value

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.

Requirements

Header

winuser.h

Library

Clipbd.lib

See Also

Reference

Clipboard Functions
GetOpenClipboardWindow
OpenClipboard