This example associates the private clipboard format "MyFormat" with the object class "MyObjectClass".
HATOMTBL hAtomTable = NULLHANDLE; ATOM aFormat = 0; /* Find the system atom table */ hAtomTable = WinQuerySystemAtomTable(); if (hAtomTable) { /* Add an atom to the system atom table for the clipboard format */ aFormat = WinAddAtom(hAtomTable,"MyFormat"); if (aFormat) { /* Associate the clipboard format to the object class */ _wpclsAddClipBoardAssoc(_WPDataFile,aFormat,"MyObjectClass"); WinDeleteAtom(hAtomTable,aFormat); } }