<div class="content"><p align="right"><a href="https://msdn.microsoft.com/en-us/library/538222f7-1b89-4811-949a-0eac62e38dce" data-linktype="external">msdn link</a></p><p>The SamrSetInformationUser method updates attributes on a <a href="7b2aeb27-92fc-41f6-8437-deb65d950921#gt_e767a471-c3fa-4e4b-a40c-daeb08f82a17" data-linktype="relative-path">user object</a>.</p><dl>
<dd>
<div><pre> long SamrSetInformationUser(
   [in] SAMPR_HANDLE UserHandle,
   [in] USER_INFORMATION_CLASS UserInformationClass,
   [in, switch_is(UserInformationClass)] 
     PSAMPR_USER_INFO_BUFFER Buffer
 );
</pre></div>
</dd></dl><p>See the description of <a href="99ee9f39-43e8-4bba-ac3a-82e0c0e0699e" data-linktype="relative-path">SamrSetInformationUser2 (section 3.1.5.6.4)</a>
for details, because the method interface arguments and message processing are
identical.</p><p>This protocol asks the RPC runtime, via the <b>strict_context_handle</b>
attribute, to reject the use of context handles created by a method of a
different RPC interface than this one, as specified in <a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a>
section <a href="../ms-rpce/38ae9f5a-dac2-46ad-b2b7-9c43f211d9f6" data-linktype="relative-path">3</a>.</p><p>The server MUST behave as with a call to
SamrSetInformationUser2, with the following parameter values.</p><table><thead>
  <tr>
   <th>
   <p>Parameter name</p>
   </th>
   <th>
   <p>Parameter value</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>UserHandle</p>
  </td>
  <td>
  <p>SamrSetInformationUser.UserHandle</p>
  </td>
 </tr><tr>
  <td>
  <p>UserInformationClass</p>
  </td>
  <td>
  <p>SamrSetInformationUser.UserInformationClass</p>
  </td>
 </tr><tr>
  <td>
  <p>Buffer</p>
  </td>
  <td>
  <p>SamrSetInformationUser.Buffer</p>
  </td>
 </tr></tbody></table><p> </p></div>