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.
Enumerating data formats currently available on the clipboard
Retrieving names for the registered clipboard formats
Monitoring clipboard content changes (VFP9)
int GetClipboardFormatName(
UINT format, // clipboard format to retrieve
LPTSTR lpszFormatName, // format name
int cchMaxCount // length of format name buffer
); DECLARE INTEGER GetClipboardFormatName IN user32;
INTEGER format,;
STRING @ lpszFormatName,;
INTEGER cchMaxCount 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.
If the function succeeds, the return value is the length, in TCHARs, of the string copied to the buffer.
Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF.
Home