GetClipboardFormatName

Syntax

int GetClipboardFormatName(wFormat,lpFormatName,nMaxCount)

This function retrieves from the clipboard the name of the registered format specified by the wFormat parameter. The name is copied to the buffer pointed to by the lpFormatName parameter.

Parameter Type/Description  

wFormat WORD Specifies the type of format to be retrieved. It must not specify any of the predefined clipboard formats.  
lpFormatName LPSTR Points to the buffer that is to receive the format name.  
nMaxCount int Specifies the maximum length (in bytes) of the string to be copied to the buffer. If the actual name is longer, it is truncated.  

Return Value

The return value specifies the actual length of the string copied to the buffer. It is zero if the requested format does not exist or is a predefined format.