2.2.1 Clipboard PDU Header (CLIPRDR_HEADER)

The CLIPRDR_HEADER structure is present in all clipboard PDUs. It is used to identify the PDU type, specify the length of the PDU, and convey message flags.


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

msgType

msgFlags

dataLen

msgType (2 bytes): An unsigned, 16-bit integer that specifies the type of the clipboard PDU that follows the dataLen field.

Value

Meaning

CB_MONITOR_READY

0x0001

Monitor Ready PDU

CB_FORMAT_LIST

0x0002

Format List PDU

CB_FORMAT_LIST_RESPONSE

0x0003

Format List Response PDU

CB_FORMAT_DATA_REQUEST

0x0004

Format Data Request PDU

CB_FORMAT_DATA_RESPONSE

0x0005

Format Data Response PDU

CB_TEMP_DIRECTORY

0x0006

Temporary Directory PDU

CB_CLIP_CAPS

0x0007

Clipboard Capabilities PDU

CB_FILECONTENTS_REQUEST

0x0008

File Contents Request PDU

CB_FILECONTENTS_RESPONSE

0x0009

File Contents Response PDU

CB_LOCK_CLIPDATA

0x000A

Lock Clipboard Data PDU

CB_UNLOCK_CLIPDATA

0x000B

Unlock Clipboard Data PDU

msgFlags (2 bytes): An unsigned, 16-bit integer that indicates message flags.

Value

Meaning

CB_RESPONSE_OK

0x0001

Used by the Format List Response PDU, Format Data Response PDU, and File Contents Response PDU to indicate that the associated request Format List PDU, Format Data Request PDU, and File Contents Request PDU were processed successfully.

CB_RESPONSE_FAIL

0x0002

Used by the Format List Response PDU, Format Data Response PDU, and File Contents Response PDU to indicate that the associated Format List PDU, Format Data Request PDU, and File Contents Request PDU were not processed successfully.

CB_ASCII_NAMES

0x0004

Used by the Short Format Name variant of the Format List Response PDU to indicate that the format names are in ASCII 8.

dataLen (4 bytes): An unsigned, 32-bit integer that specifies the size, in bytes, of the data which follows the Clipboard PDU Header.<1>