<div class="content"><p> </p><p>The <span><a href="b9fd5523-4efc-40dd-a06d-274f4553c56a" data-linktype="relative-path">SMB_COM_SEND_MESSAGE</a></span>
message is used to send an entire text message in which the length of the
message is 128 bytes or less.</p><p>In the SMB header of these messages, the <b>Command</b>
field MUST be set to 0xD0, as specified in <span><a href="../ms-smb/f210069c-7086-4dc2-885e-861d837df688" data-linktype="relative-path">[MS-SMB]</a></span>
section <span><a href="../ms-smb/3c0848a6-efe9-47c2-b57a-f7e8217150b9" data-linktype="relative-path">2.2.3.1</a></span>.
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.<a id="Appendix_A_Target_3"></a><a aria-label="Product behavior note 3" href="e890fd2e-92d5-4468-a6cf-db6977866112#Appendix_A_3" data-linktype="relative-path">&lt;3&gt;</a></p><p>The payload of the SMB_COM_SEND_MESSAGE request message is
specified as follows.</p><table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="8">
  <p>WordCount</p>
  </td>
  <td colspan="16">
  <p>ByteCount</p>
  </td>
  <td colspan="8">
  <p>BufferFormat1</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>OriginatorName
  (variable)</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>...</p>
  </td>
 </tr>
 <tr>
  <td colspan="8">
  <p>BufferFormat2</p>
  </td>
  <td colspan="24">
  <p>DestinationName
  (variable)</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>...</p>
  </td>
 </tr>
 <tr>
  <td colspan="8">
  <p>BufferFormat3</p>
  </td>
  <td colspan="16">
  <p>DataLength</p>
  </td>
  <td colspan="8">
  <p>Data
  (variable)</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p>...</p>
  </td>
 </tr>
</tbody></table><p><b>WordCount (1 byte): </b>An 8-bit value that MUST
denote the number of 2-byte word values between the WordCount and <b>ByteCount</b>
values. WordCount MUST be zero for this message.</p><p><b>ByteCount (2 bytes): </b>A 16-bit value that MUST
denote the total size of all of the fields that follow, in bytes.</p><p><b>BufferFormat1 (1 byte): </b>A constant that MUST
denote the type of the next parameter. BufferFormat1 MUST be 0x04 in this
message, indicating that the next parameter is a null-terminated ASCII string.</p><p><b>OriginatorName (variable): </b>A null-terminated
ASCII string that MUST denote the name of the sender of the message.
OriginatorName MUST NOT be more than 15 characters (bytes) long, exclusive of
the trailing null character (with the trailing null character, this field MAY
be 16 bytes long).</p><p><b>BufferFormat2 (1 byte): </b>An 8-bit value that
MUST contain a constant that specifies the type of the next parameter.
BufferFormat2 MUST be 0x04 in this message, indicating that the next parameter
is a null-terminated ASCII string.</p><p><b>DestinationName (variable): </b>A null-terminated
ASCII string that MUST denote the name of the intended recipient of the
message. DestinationName MUST NOT be more than 15 characters (bytes) long,
exclusive of the trailing null character (with the trailing null character,
this field MAY be 16 bytes long).</p><p><b>BufferFormat3 (1 byte): </b> An 8-bit value that
MUST contain a constant that specifies the type of the next parameter.
BufferFormat3 MUST be 0x01 in this message, indicating that the next parameter
is a length-prefixed buffer of bytes.</p><p><b>DataLength (2 bytes): </b>A 16-bit value that MUST
specify the length of the Data buffer. This value MUST NOT be greater than 128
(0x0080).</p><p><b>Data (variable): </b>A null-terminated ASCII
string that MUST contain the text of the message. 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) SHOULD be converted into a
single 0x14 character. This buffer MUST NOT be more than 128 bytes in size.<a id="Appendix_A_Target_4"></a><a aria-label="Product behavior note 4" href="e890fd2e-92d5-4468-a6cf-db6977866112#Appendix_A_4" data-linktype="relative-path">&lt;4&gt;</a></p><p>The response message to SMB_COM_SEND_MESSAGE is specified in
section <span><a href="322b8217-5740-4cc7-8054-f045c1beef8d" data-linktype="relative-path">2.2.3.1.2</a></span>.</p></div>