2.2.2.9 RDPGFX_CREATE_SURFACE_PDU

The RDPGFX_CREATE_SURFACE_PDU message is used to instruct the client to create a surface of a given width, height, and pixel format.


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

...

surfaceId

width

height

pixelFormat

header (8 bytes):  An RDPGFX_HEADER (section 2.2.1.5) structure. The cmdId field MUST be set to RDPGFX_CMDID_CREATESURFACE (0x0009), while the flags field MUST be set to zero.

surfaceId (2 bytes):  A 16-bit unsigned integer that specifies the ID that MUST be assigned to the surface once it has been created.

width (2 bytes):  A 16-bit unsigned integer that specifies the width of the surface to create.

height (2 bytes):  A 16-bit unsigned integer that specifies the height of the surface to create.

pixelFormat (1 byte):  An RDPGFX_PIXELFORMAT (section 2.2.1.4) structure that specifies the pixel format of the surface to create.