.clp clipboard file format



microsoft windows clipboard (clipbrd.exe) saves and reads its data in files with the .clp extension. a .clp file contains a value identifying it as a clipboard data file; one or more structures defining the format, size, and location of the data; and one or more blocks of actual data.

clipboard-file header

the clipboard data file begins with a header consisting of two members. following are the members in this header:

fileidentifier    identifies the file as a clipboard data file. this member must be set to clp_id. this is a 2-byte value.

formatcount    specifies the number of clipboard formats contained in the file. this is a 2-byte value.

clipboard-file structure

the header is followed by one or more structures, each of which identifies the format, size, and offset of a block containing clipboard data. following are the members in this structure:

formatid    specifies the clipboard-format identifier of the clipboard data. for a description of the various formats that are available, see the description of setclipboarddata. this is 2-byte value.

lendata    specifies the length, in bytes, of the clipboard data. this is a 4-byte value.

offdata    specifies the offset, in bytes, of the clipboard-data block. the offset is from the beginning of the file. this is a 4-byte value.

name    identifies a 79-character array specifying the format name of a private clipboard format.

the first block of clipboard data follows the last of these structures. for bitmaps and metafiles, the bits follow immediately after the bitmap header and the metafilepict structures.
see also

setclipboarddata, metafilepict