2.5.240 ShortXLUnicodeString

The ShortXLUnicodeString structure specifies a Unicode string.


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

cch

A

reserved

rgb (variable)

...

cch (1 bytes): An unsigned integer that specifies the count of characters in the string.

A - fHighByte (1 bit): A bit that specifies whether the characters in rgb are double-byte characters. MUST be a value from the following table:

Value

Meaning

0x0

All the characters in the string have a high byte of 0x00 and only the low bytes are in rgb.

0x1

All the characters in the string are saved as double-byte characters in rgb.

reserved (7 bits): MUST be zero, and MUST be ignored.

rgb (variable): An array of bytes that specifies the characters. If fHighByte is 0x0, the size of the array MUST be equal to the value of cch. If fHighByte is 0x1, the size of the array MUST be equal to the value of cch*2.