3.2.5.6 Sending an RDPGFX_SURFACE_TO_CACHE_PDU message

The structure and fields of the RDPGFX_SURFACE_TO_CACHE_PDU message are specified in section 2.2.2.6. The command fields MUST be populated in accordance with this description. Furthermore, the RDPGFX_SURFACE_TO_CACHE_PDU message MUST be part of a logical frame delineated by the RDPGFX_START_FRAME_PDU (section 2.2.2.11) and RDPGFX_END_FRAME_PDU (section 2.2.2.12) messages, and the source surface identified in the surfaceId field MUST exist on the client. Once the RDPGFX_SURFACE_TO_CACHE_PDU message has been sent to the client, the Bitmap Cache Map (section 3.2.1.1) ADM element MUST be updated with the key (cacheKey field) and slot index (cacheSlot field) that were transmitted to the client.