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.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
CB_FORMAT_LIST
0x0002
CB_FORMAT_LIST_RESPONSE
0x0003
CB_FORMAT_DATA_REQUEST
0x0004
CB_FORMAT_DATA_RESPONSE
0x0005
CB_TEMP_DIRECTORY
0x0006
CB_CLIP_CAPS
0x0007
CB_FILECONTENTS_REQUEST
0x0008
CB_FILECONTENTS_RESPONSE
0x0009
CB_LOCK_CLIPDATA
0x000A
CB_UNLOCK_CLIPDATA
0x000B
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>