Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.38 KB

File metadata and controls

49 lines (33 loc) · 1.38 KB

Home

Function name : RegisterClipboardFormat

Group: Clipboard - Library: user32


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


Code examples:

Retrieving names for the registered clipboard formats
Getting a bit more than the _CLIPTEXT offers
Passing data records between VFP applications via the Clipboard

Declaration:

UINT RegisterClipboardFormat(
  LPCTSTR lpszFormat   // name of new format
);  

FoxPro declaration:

DECLARE INTEGER RegisterClipboardFormat IN user32;
	STRING lpszFormat  

Parameters:

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


Return value:

If the function succeeds, the return value identifies the registered clipboard format. Otherwise the result is zero.


Comments:

Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF. If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format.