2.2.3.3.1 SMB_COM_SEND_TEXT_MB_MESSAGE Request Message

The SMB_COM_SEND_TEXT_MB_MESSAGE message is used to transmit a block of text from a text message when the text message is larger than 128 bytes.

In the SMB header of this message, the Command field MUST be set to 0xD7, as specified in [MS-SMB] section 2.2.3.1. In the response message, the header MAY contain a Status code, as specified in [MS-SMB] section 2.2.3.1. All other fields in the SMB header MUST be set to 0x00.<6>

The payload of the SMB_COM_SEND_TEXT_MB_MESSAGE request message is specified as follows.


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

WordCount

MessageGroupId

ByteCount

...

BufferFormat

DataLength

Data (variable)

...

WordCount (1 byte): An 8-bit value that MUST specify the number of 2-byte word values between the WordCount and ByteCount values. WordCount MUST be one (0x1) for this message.

MessageGroupId (2 bytes):  A 16-bit value that MUST specify the NetBIOS session number on which this group of messages is to be delivered.

ByteCount (2 bytes): A 16-bit value that MUST specify the size of all of the following fields, in bytes.

BufferFormat (1 byte): An 8-bit value that MUST contain a constant value that specifies the type of the next parameter. BufferFormat MUST be 0x01 in this message, indicating that the next parameter is a length-prefixed buffer of bytes.

DataLength (2 bytes): A 16-bit value that MUST specify the length of the Data buffer. This value MUST NOT be greater than 128.

Data (variable): A block of null-terminated ASCII message text. Before the message is sent, the ASCII characters CR (0x0D) and LF (0x0A) MUST be converted to the value 0x14. Pairs of these characters (CRLF or LFCR) MUST be converted into a single 0x14 character. This buffer MUST NOT be more than 128 bytes in size.<7>

The response message to SMB_COM_SEND_TEXT_MB_MESSAGE is specified in section 2.2.3.3.2.