Compartilhar via


2.2.8.2.1.1 Set Keyboard Indicators PDU Data (TS_SET_KEYBOARD_INDICATORS_PDU)

The TS_SET_KEYBOARD_INDICATORS_PDU structure contains the actual contents of the Set Keyboard Indicators PDU (section 2.2.8.2.1). The contents of the LedFlags field is identical to the flags used in the Client Synchronize Input Event Notification (section 2.2.8.1.1.3.1.1.5).


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

shareDataHeader (18 bytes)

...

...

...

UnitId

LedFlags

shareDataHeader (18 bytes): Share Data Header (section 2.2.8.1.1.1.2) containing information about the packet. The type subfield of the pduType field of the Share Control Header (section 2.2.8.1.1.1.1) MUST be set to PDUTYPE_DATAPDU (7). The pduType2 field of the Share Data Header MUST be set to PDUTYPE2_SET_KEYBOARD_INDICATORS (41).

UnitId (2 bytes): A 16-bit, unsigned integer. Hardware related value. This field SHOULD be ignored by the client and as a consequence SHOULD be set to zero by the server.

LedFlags (2 bytes): A 16-bit, unsigned integer. The flags indicating the "on" status of the keyboard toggle keys.

Flag

Meaning

TS_SYNC_SCROLL_LOCK

0x0001

Indicates that the Scroll Lock indicator light SHOULD be on.

TS_SYNC_NUM_LOCK

0x0002

Indicates that the Num Lock indicator light SHOULD be on.

TS_SYNC_CAPS_LOCK

0x0004

Indicates that the Caps Lock indicator light SHOULD be on.

TS_SYNC_KANA_LOCK

0x0008

Indicates that the Kana Lock indicator light SHOULD be on.