Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.58 KB

File metadata and controls

59 lines (41 loc) · 1.58 KB

Home

Function name : GetClipboardFormatName

Group: Clipboard - Library: user32


The GetClipboardFormatName function retrieves from the clipboard the name of the specified registered format. The function copies the name to the specified buffer.


Code examples:

Enumerating data formats currently available on the clipboard
Retrieving names for the registered clipboard formats
Monitoring clipboard content changes (VFP9)

Declaration:

int GetClipboardFormatName(
  UINT format,            // clipboard format to retrieve
  LPTSTR lpszFormatName,  // format name
  int cchMaxCount         // length of format name buffer
);  

FoxPro declaration:

DECLARE INTEGER GetClipboardFormatName IN user32;
	INTEGER   format,;
	STRING  @ lpszFormatName,;
	INTEGER   cchMaxCount  

Parameters:

format [in] Specifies the type of format to be retrieved.

lpszFormatName [out] Pointer to the buffer that is to receive the format name.

cchMaxCount [in] Specifies the maximum length, in TCHARs, of the string to be copied to the buffer.


Return value:

If the function succeeds, the return value is the length, in TCHARs, of the string copied to the buffer.


Comments:

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