Skip to content

Latest commit

 

History

History
127 lines (83 loc) · 4.13 KB

nf-winuser-isclipboardformatavailable.md

File metadata and controls

127 lines (83 loc) · 4.13 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.IsClipboardFormatAvailable
IsClipboardFormatAvailable function (winuser.h)
Determines whether the clipboard contains data in the specified format.
IsClipboardFormatAvailable
IsClipboardFormatAvailable function [Data Exchange]
_win32_IsClipboardFormatAvailable
_win32_isclipboardformatavailable_cpp
dataxchg.isclipboardformatavailable
winui._win32_isclipboardformatavailable
winuser/IsClipboardFormatAvailable
dataxchg\isclipboardformatavailable.htm
dataxchg
VS|winui|~\winui\windowsuserinterface\dataexchange\clipboard\clipboardreference\clipboardfunctions\isclipboardformatavailable.htm
12/05/2018
IsClipboardFormatAvailable, IsClipboardFormatAvailable function [Data Exchange], _win32_IsClipboardFormatAvailable, _win32_isclipboardformatavailable_cpp, dataxchg.isclipboardformatavailable, winui._win32_isclipboardformatavailable, winuser/IsClipboardFormatAvailable
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
User32.lib
User32.dll
Windows
19H1
IsClipboardFormatAvailable
winuser/IsClipboardFormatAvailable
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
IsClipboardFormatAvailable
ext-ms-win-ntuser-misc-l1-2-0 (introduced in Windows 8.1)

IsClipboardFormatAvailable function

-description

Determines whether the clipboard contains data in the specified format.

-parameters

-param format [in]

Type: UINT

A standard or registered clipboard format. For a description of the standard clipboard formats, see Standard Clipboard Formats .

-returns

Type: BOOL

If the clipboard format is available, the return value is nonzero.

If the clipboard format is not available, the return value is zero. To get extended error information, call GetLastError.

-remarks

Typically, an application that recognizes only one clipboard format would call this function when processing the WM_INITMENU or WM_INITMENUPOPUP message. The application would then enable or disable the Paste menu item, depending on the return value. Applications that recognize more than one clipboard format should use the GetPriorityClipboardFormat function for this purpose.

Examples

For an example, see Pasting Information from the Clipboard.

-see-also

Clipboard

Conceptual

CountClipboardFormats

EnumClipboardFormats

GetPriorityClipboardFormat

Reference

RegisterClipboardFormat

WM_INITMENU

WM_INITMENUPOPUP