Compartilhar via


2.2.8.2.2.1 Set Keyboard IME Status PDU Data (TS_SET_KEYBOARD_IME_STATUS_PDU)

The TS_SET_KEYBOARD_IME_STATUS_PDU structure contains the actual contents of the Set Keyboard IME Status PDU (section 2.2.8.2.2). The ImeState and ImeConvMode fields are used as input parameters to a Fujitsu Oyayubi-specific IME control function on Asian IME clients.

For more information on input method editors (IMEs), see [International], section "Input Method Editors" in chapter 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

ImeState

ImeConvMode

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_IME_STATUS (45).

UnitId (2 bytes): A 16-bit, unsigned integer. The unit identifier for which the IME message is intended. This field SHOULD be ignored by the client and as a consequence SHOULD be set to zero by the server.

ImeState (4 bytes): A 32-bit, unsigned integer. Indicates the open or closed state of the IME.

Value

Meaning

IME_STATE_CLOSED

0x00000000

The IME state is closed.

IME_STATE_OPEN

0x00000001

The IME state is open.

ImeConvMode (4 bytes): A 32-bit, unsigned integer. Indicates the IME conversion mode.

Flag

Meaning

IME_CMODE_NATIVE

0x00000001

The input mode is native. If not set, the input mode is alphanumeric.

IME_CMODE_KATAKANA

0x00000002

The input mode is Katakana. If not set, the input mode is Hiragana.

IME_CMODE_FULLSHAPE

0x00000008

The input mode is full-width. If not set, the input mode is half-width.

IME_CMODE_ROMAN

0x00000010

The input mode is Roman.

IME_CMODE_CHARCODE

0x00000020

Character-code input is in effect.

IME_CMODE_HANJACONVERT

0x00000040

Hanja conversion mode is in effect.

IME_CMODE_SOFTKBD

0x00000080

A soft (on-screen) keyboard is being used.

IME_CMODE_NOCONVERSION

0x00000100

IME conversion is inactive (that is, the IME is closed).

IME_CMODE_EUDC

0x00000200

End-User Defined Character (EUDC) conversion mode is in effect.

IME_CMODE_SYMBOL

0x00000400

Symbol conversion mode is in effect.

IME_CMODE_FIXED

0x00000800

Fixed conversion mode is in effect.