Share via


RegisterClipboardFormat

This function registers a new clipboard format. This format can then be used as a valid clipboard format.

UINT RegisterClipboardFormat(
LPCWSTR lpszFormat); 

Parameters

  • lpszFormat
    [in] Long pointer to a null-terminated string that names the new format.

Return Values

The registered clipboard format indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

Windows CE supports only the Unicode version of RegisterClipboardFormat.

If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format. This enables more than one application to copy and paste data using the same registered clipboard format. Note that the format name comparison is case-insensitive.

Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h   Clipbd.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CountClipboardFormats, EnumClipboardFormats, GetClipboardFormatName

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.