Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.61 KB

GetClipboardData.md

File metadata and controls

53 lines (37 loc) · 1.61 KB

Home

Function name : GetClipboardData

Group: Clipboard - Library: user32


The GetClipboardData function retrieves data from the clipboard in a specified format. The clipboard must have been opened previously.


Code examples:

Enumerating data formats currently available on the clipboard
Storing content of the Clipboard to a bitmap file
Getting a bit more than the _CLIPTEXT offers
Converting Unicode data from the Clipboard to a character string using a given code page
Passing data records between VFP applications via the Clipboard
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
GDI+: Storing content of the Clipboard to a bitmap file

Declaration:

HANDLE GetClipboardData(
  UINT uFormat   // clipboard format
);  

FoxPro declaration:

DECLARE INTEGER GetClipboardData IN user32;
	INTEGER uFormat  

Parameters:

uFormat [in] Specifies a clipboard format.


Return value:

If the function succeeds, the return value is the handle to a clipboard object in the specified format, otherwise it is NULL.


Comments:

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