2.2.3.1 Format List PDU (CLIPRDR_FORMAT_LIST)

The Format List PDU is sent by either the client or the server when its local system clipboard is updated with new clipboard data. This PDU contains the Clipboard Format ID and name pairs of the new Clipboard Formats on the clipboard.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

clipHeader

...

formatListData (variable)

...

clipHeader (8 bytes): A Clipboard PDU Header. The msgType field of the Clipboard PDU Header MUST be set to CB_FORMAT_LIST (0x0002), while the msgFlags field MUST be set to 0x0000 or CB_ASCII_NAMES (0x0004) depending on the type of data present in the formatListData field.

formatListData (variable): An array consisting solely of either Short Format Names or Long Format Names. The type of structure used in the array is determined by the presence of the CB_USE_LONG_FORMAT_NAMES (0x00000002) flag in the generalFlags field of the General Capability Set (section 2.2.2.1.1.1). Each array holds a list of the Clipboard Format ID and name pairs available on the local system clipboard of the sender. If Short Format Names are being used, and the embedded Clipboard Format names are in ASCII 8 format, then the msgFlags field of the clipHeader must contain the CB_ASCII_NAMES (0x0004) flag.