2.2.2.4 Client Name Request (DR_CORE_CLIENT_NAME_REQ)

The client announces its machine name.


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

Header

UnicodeFlag

CodePage

ComputerNameLen

ComputerName (variable)

...

Header (4 bytes): An RDPDR_HEADER header. The Component field MUST be set to RDPDR_CTYP_CORE, and the PacketId field MUST be set to PAKID_CORE_CLIENT_NAME.

UnicodeFlag (4 bytes):  A 32-bit unsigned integer that indicates the format of the ComputerName field. Only the least significant bit of this field is valid (the most significant 31 bits MUST be ignored). The least significant bit MUST be set to one of the following values.

Value

Meaning

0x1

ComputerName is in Unicode characters.

0x0

ComputerName is in ASCII characters.

CodePage (4 bytes): A 32-bit unsigned integer that specifies the code page of the ComputerName field; it MUST be set to 0.

ComputerNameLen (4 bytes): A 32-bit unsigned integer that specifies the number of bytes in the ComputerName field, including null terminator.

ComputerName (variable): A variable-length array of ASCII or Unicode characters, the format of which is determined by the UnicodeFlag field. This is a string that identifies the client computer name. The string MUST be null-terminated. The protocol imposes no limitations on the characters used in this field.