2.2.2.14 RDPGFX_RESET_GRAPHICS_PDU

The RDPGFX_RESET_GRAPHICS_PDU message is sent by the server to instruct the client to change the width and height of the Graphics Output Buffer (section 3.3.1.7) ADM element, and to update the monitor layout. Note that this message MUST be 340 bytes in size.


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

...

width

height

monitorCount

monitorDefArray (variable)

...

...

pad (variable)

...

...

header (8 bytes):  An RDPGFX_HEADER (section 2.2.1.5) structure. The cmdId field MUST be set to RDPGFX_CMDID_RESETGRAPHICS (0x000E), the flags field MUST be set to zero, and the pduLength field MUST be set to 340 bytes.

width (4 bytes):  A 32-bit unsigned integer that specifies the new width of the Graphics Output Buffer ADM element (the maximum allowed width is 32766 pixels).

height (4 bytes):  A 32-bit unsigned integer that specifies the new height of the Graphics Output Buffer ADM element (the maximum allowed height is 32766 pixels).

monitorCount (4 bytes):  A 32-bit unsigned integer that specifies the number of display monitor definitions in the monitorDefArray field. This value MUST be less than or equal to 16.

monitorDefArray (variable):  A variable-length array containing a series of TS_MONITOR_DEF ([MS-RDPBCGR] section 2.2.1.3.6.1) structures that specify the display monitor layout of the session on the remote server. The number of TS_MONITOR_DEF structures is specified by the monitorCount field.

pad (variable):  A variable-length byte array that is used for padding. The number of bytes in this array is calculated by subtracting the combined size of the header, width, height, monitorCount, and monitorDefArray fields from the total size of the PDU (which is specified by the pduLength field embedded in the header field). The contents of the pad field MUST be ignored.