2.2.3.1 Retargeting Drawing Order (TS_COMPDESK_SWITCH_SURFOBJ)

The server sends the TS_COMPDESK_SWITCH_SURFOBJ packet when a drawing operation is targeting a redirection surface.


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

header

operation

size

cacheId

header (1 byte): An 8-bit unsigned integer. An alternate secondary order header, as specified in [MS-RDPEGDI] section 2.2.2.2.1.3.1.1. The embedded order type field MUST be set to TS_ALTSEC_COMPDESK_FIRST (0x0C).

operation (1 byte): An 8-bit unsigned integer. The operation code. This field MUST be set to SURFOBJSWITCH (0x06).

size (2 bytes): A 16-bit unsigned integer. The size of the order data that follows the size field. This field MUST be set to 0x0004.

cacheId (4 bytes): A 32-bit unsigned integer. This cacheId is a unique per-connection number that the server generates in order to identify the sprite. Only 31 bits of this field are used as an identifier. The highest bit of the cacheId field is not used and MUST be set to 0.