2.2.2.23 RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU

The RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU message is sent by the server to instruct the client to map a surface to a RAIL window on the client, including a target width and height to which the surface MUST be scaled.


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

windowId

...

...

mappedWidth

...

mappedHeight

...

targetWidth

...

targetHeight

...

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

surfaceId (2 bytes): A 16-bit unsigned integer that specifies the ID of the surface to be associated with the surface-to-window mapping.

windowId (8 bytes): A 64-bit unsigned integer that specifies the ID of the RAIL window to be associated with the surface-to-window mapping. RAIL windows are created via the New or Existing Window order ([MS-RDPERP] section 2.2.1.3.1.2.1). The WindowId field of the Common Header ([MS-RDPERP] section 2.2.1.3.1.1), embedded within the order, contains the window ID.

mappedWidth (4 bytes): A 32-bit unsigned integer that specifies the width of the rectangular region on the surface to which the window is mapped.

mappedHeight (4 bytes): A 32-bit unsigned integer that specifies the height of the rectangular region on the surface to which the window is mapped.

targetWidth (4 bytes): A 32-bit unsigned integer that specifies the width of the target graphics output to which the surface will be mapped.

targetHeight (4 bytes): A 32-bit unsigned integer that specifies the height of the target graphics output to which the surface will be mapped.