Compartilhar via


2.2.8.1.1.3.1.1.5 Synchronize Event (TS_SYNC_EVENT)

The TS_SYNC_EVENT structure is a standard T.128 Input Synchronize Event ([T128] section 8.18.6). In RDP this event is used to synchronize the values of the toggle keys (for example, Caps Lock) and to reset the server key state to all keys up. This event is sent by the client to communicate the state of the toggle keys. The synchronize event SHOULD be followed by key-down events to communicate which keyboard and mouse keys are down.


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

pad2Octets

toggleFlags

...

pad2Octets (2 bytes): A 16-bit, unsigned integer. Padding. Values in this field MUST be ignored.

toggleFlags (4 bytes): A 32-bit, unsigned integer. Flags indicating the "on" status of the keyboard toggle keys.

Flag

Meaning

TS_SYNC_SCROLL_LOCK

0x00000001

Indicates that the Scroll Lock indicator light SHOULD be on.

TS_SYNC_NUM_LOCK

0x00000002

Indicates that the Num Lock indicator light SHOULD be on.

TS_SYNC_CAPS_LOCK

0x00000004

Indicates that the Caps Lock indicator light SHOULD be on.

TS_SYNC_KANA_LOCK

0x00000008

Indicates that the Kana Lock indicator light SHOULD be on.