CloseClipboard Function
The CloseClipboard function closes the clipboard, freeing the clipboard for other applications.
Syntax
Parameters
This function has no parameters.
Return Value
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
An application must call CloseClipboard after it has finished using the clipboard. Failing to close the clipboard can prevent other applications from accessing it.
You should call CloseClipboard only if your application has successfully opened the clipboard by calling the OpenClipboard function.
If your application is the only one that has opened the clipboard, calling CloseClipboard makes the clipboard available to other applications.
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | winuser.h (include windows.h) |
| Library | User32.lib |
| DLL | User32.dll |