Skip to content

Latest commit

 

History

History
107 lines (76 loc) · 2.82 KB

nf-winuser-closeclipboard.md

File metadata and controls

107 lines (76 loc) · 2.82 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name req.apiset
NF:winuser.CloseClipboard
CloseClipboard function (winuser.h)
Closes the clipboard.
CloseClipboard
CloseClipboard function [Data Exchange]
_win32_CloseClipboard
_win32_closeclipboard_cpp
dataxchg.closeclipboard
winui._win32_closeclipboard
winuser/CloseClipboard
dataxchg\closeclipboard.htm
dataxchg
VS|winui|~\winui\windowsuserinterface\dataexchange\clipboard\clipboardreference\clipboardfunctions\closeclipboard.htm
12/05/2018
CloseClipboard, CloseClipboard function [Data Exchange], _win32_CloseClipboard, _win32_closeclipboard_cpp, dataxchg.closeclipboard, winui._win32_closeclipboard, winuser/CloseClipboard
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
User32.lib
User32.dll
Windows
19H1
CloseClipboard
winuser/CloseClipboard
c++
APIRef
kbSyntax
DllExport
User32.dll
API-MS-Win-RTCore-NTUser-clipboard-l1-1-0.dll
minuser.dll
Ext-MS-Win-NTUser-Misc-l1-2-0.dll
Ext-MS-Win-NTUser-Misc-l1-3-0.dll
api-ms-win-ntuser-ie-clipboard-l1-1-0.dll
ie_stubs.dll
ext-ms-win-ntuser-misc-l1-3-1.dll
Ext-MS-Win-NTUser-Misc-L1-4-0.dll
Ext-Ms-Win-NTUser-Misc-L1-5-0.dll
Ext-MS-Win-NTUser-Misc-L1-5-1.dll
CloseClipboard
ext-ms-win-ntuser-misc-l1-2-0 (introduced in Windows 8.1)

CloseClipboard function

-description

Closes the clipboard.

-returns

Type: BOOL

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. 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.

Examples

For an example, see Example of a Clipboard Viewer.

-see-also

Clipboard

Conceptual

GetOpenClipboardWindow

OpenClipboard

Reference