3 Protocol Details
In the Desktop Clipboard Protocol, a server allows a client to access a set of shared clipbooks. Implementations can simultaneously participate in both client and server roles to allow for two-way sharing of clipbooks. Implementations can represent the local clipboard as a clipbook shared by a server, so that client software can interact agnostically with the local clipboard and remote clipbooks.
Figure 2: Clipboard sharing session
The following messages are then transmitted:
The client sends a CMD_INITSHARE (section 126.96.36.199.1) message, directing the server to initialize its SharedClipbookData information.
The client sends a DDE request with SZDDESYS_TOPIC as the topic and SZDDESYS_ITEM_TOPICS as the item (section 188.8.131.52).
The server sends a SHARE_LISTW (section 184.108.40.206) message containing the set of shared clipbooks.
Knowing the available clipbooks, the client sends a DDE request with "ClipbookName1" as the topic and "FormatList" as the item.
The server sends a CLIPFORMAT_LISTW (section 220.127.116.11) message containing the set of supported formats for the "ClipbookName1" clipbook.
Knowing the supported clipboard formats, the client sends a DDE request with "ClipbookName1" as the topic and CF_METAFILEPICT as the item.
In this exchange, the set of supported formats returned in step 5 includes CF_METAFILEPICT; but in step 6, the client can request any other clipboard format, using one of the ClipboardFormatName (section 18.104.22.168) values that is supported in the set returned in step 5. The client can continue by requesting other formats.