<div class="content" name="SendMessage" uuid="ccf9802b-3573-4930-9078-6c0a94f6bded"><p>The SendMessage method adds a message to the send queue. </p><dl>
<dd>
<div><pre> HRESULT SendMessage(
   [in, unique] LPRSM_MESSAGE lpRsmMessage
 );
</pre></div>
</dd></dl><p><b>lpRsmMessage: </b>A pointer to an <a href="4b1a338a-faf0-496e-8503-c4ea7e595c67" data-linktype="relative-path">RSM_MESSAGE (section 2.2.6.1)</a>
structure describing the message that is to be sent.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000 S_OK</td>
  <td>The call was successful.</td>
 </tr><tr>
  <td>0x80070057 ERROR_INVALID_PARAMETER</td>
  <td>A parameter is missing.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving this message, the server MUST verify that <i>lpRsmMessage</i>
is not NULL. If parameter validation fails, the server MUST immediately fail
the operation and return ERROR_INVALID_PARAMETER (0x80070057).</p><p>Otherwise, the server MUST deliver the message to the
operator.</p></div>