3.1.5.2.2 Processing a Format List PDU

The fields of the Format List PDU are specified in section 2.2.3.1.

The clipHeader field MUST be processed as specified in section 3.1.5.1. If the PDU is valid, the format types present in the PDU MUST be extracted, processed, and placed on the local system clipboard.

For each Clipboard Format listed in the Format List PDU, the recipient of the PDU MUST do the following:

  • Store the mapping of the remote Clipboard Format ID to the local Clipboard Format ID in the Clipboard Format ID Map. The remote format ID is specified in the formatId field of the Short Format Name structure and the Long Format Name structure.

  • Update the local system clipboard by registering the local Clipboard Format ID as an available format for transfer. The system clipboard MUST support delayed rendering (as specified in section 1.3.1.4) for this step to be possible.

If the PDU was processed successfully and the local system clipboard was updated with all the received Clipboard Formats, the recipient MUST send a Format List Response PDU indicating success, as specified in section 3.1.5.2.3. If the PDU could not be processed, or the local clipboard could not be updated, a Format List Response PDU indicating failure MUST be sent, as specified in section 3.1.5.2.3.