None = RegisterClipboardFormat(name)

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


name : string

String that names the new format.


If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format. This enables more than one application to copy and paste data using the same registered clipboard format. Note that the format name comparison is case-insensitive.
Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF.

Win32 API References

Search for RegisterClipboardFormat at msdn, google or google groups.

Return Value

If the function succeeds, the return value identifies the registered clipboard format. If the function fails, win32api.error is raised with the GetLastError info.