Partager via


2.2.2.6.3 Client System Command PDU (TS_RAIL_ORDER_SYSCOMMAND)

The Client System Command PDU packet is sent from the client to the server when a local RAIL window on the client receives a command to perform an action on the window, such as minimize or maximize. This command is forwarded to the server via the System Command PDU.


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

Hdr

WindowId

Command

Hdr (4 bytes): A TS_RAIL_PDU_HEADER header. The orderType field of the header MUST be set to TS_RAIL_ORDER_SYSCOMMAND (0x0004).

WindowId (4 bytes): An unsigned 32-bit integer. The ID of the window on the server to activate or deactivate.

Command (2 bytes): An unsigned 16-bit integer. Specifies the type of command. The field MUST be one of the following values.

Value

Meaning

SC_SIZE

0xF000

Resize the window.

SC_MOVE

0xF010

Move the window.

SC_MINIMIZE

0xF020

Minimize the window.

SC_MAXIMIZE

0xF030

Maximize the window.

SC_CLOSE

0xF060

Close the window.

SC_KEYMENU

0xF100

The ALT + SPACE key combination was pressed; display the window's system menu.

SC_RESTORE

0xF120

Restore the window to its original shape and size.

SC_DEFAULT

0xF160

Perform the default action of the window's system menu.