GetClipboardData (Windows CE 5.0)

Send Feedback

This function retrieves data from the clipboard in a specified format.



  • uFormat
    [in] Unsigned integer that specifies a clipboard format. For a description of the standard clipboard formats, see SetClipboardData.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.


Windows CE does not support automatic data format conversions between clipboard formats.

An application can enumerate the available formats in advance by using the EnumClipboardFormats function.

The clipboard controls the handle that the GetClipboardData function returns, not the application. The application should copy the data immediately. The application cannot rely on being able to make long-term use of the handle. The application must not free the handle nor leave it locked.


OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Clipbd.lib.

See Also

EnumClipboardFormats | SetClipboardData | Clipboards Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.