Clipboard Structures

Structures placed within clipboard data to manage representations include:

typedef struct cb_header { 
            unsigned first_offs; /* offset to 1st representation; 0 if none */ 
            char author;         /* start of null-terminated author name */ 
} cb_header; /* struct cb_header */ 

typedef struct rep_header { 
            unsigned next_offs; /* offset to next representation */ 
            unsigned data_offs; /* offset from header to data */ 
            unsigned rep_len;   /* length of representation data in total */ 
                                /* (includes the size in all ext.  blocks) */ 
            unsigned valid;     /* # of times rep has been "finished" */ 
            char rep_name[1];   /* start of null-terminated representation name */
                                /* data follows name @ data_offs */ 
} rep_header; /* struct rep_header */ 

Note: All offsets are from the start of the clipboard.

Example of Clipboard Management Services Calls

Clipboard Status Codes