Share via


SHFlushClipboard function

[This function is available through Windows XP Service Pack 2 (SP2) and Windows Server 2003. It is not supported under Windows Vista and later. Use OleFlushClipboard instead.]

Carries out the clipboard shutdown sequence. It also releases the IDataObject pointer placed on the clipboard by the OleSetClipboard function.

Syntax

HRESULT SHFlushClipboard(void);

Parameters

This function has no parameters.

Return value

Type: HRESULT

For details on possible return values, see OleFlushClipboard.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 6.0 or later)

See also

OleFlushClipboard