<div class="content" name="SamrSetInformationAlias" uuid="ba787e4e-3a4b-47a2-aca3-c3ac2d2c511e"><p>The SamrSetInformationAlias method updates attributes on an <span><a href="7b2aeb27-92fc-41f6-8437-deb65d950921#gt_0387e636-5654-4910-9519-1f8326cf5ec0" data-linktype="relative-path">alias
object</a></span>.</p><dl>
<dd>
<div><pre> long SamrSetInformationAlias(
   [in] SAMPR_HANDLE AliasHandle,
   [in] ALIAS_INFORMATION_CLASS AliasInformationClass,
   [in, switch_is(AliasInformationClass)] 
     PSAMPR_ALIAS_INFO_BUFFER Buffer
 );
</pre></div>
</dd></dl><p><b>AliasHandle: </b>An RPC context handle, as
specified in section <span><a href="8138c078-d881-4d1f-b378-94b4c34a287a" data-linktype="relative-path">2.2.7.2</a></span>,
representing an alias object.</p><p><b>AliasInformationClass: </b>An enumeration
indicating which attributes to update. See section <span><a href="c57a00ed-d492-43e7-9be5-6170e5d89150" data-linktype="relative-path">2.2.5.5</a></span> for a
listing of possible values.</p><p><b>Buffer: </b>The requested attributes and values to
update. See section <span><a href="aaf25a55-22c3-4639-96c3-ef5ae3362cf4" data-linktype="relative-path">2.2.5.6</a></span> for
structure details.</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 <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>
section <span><a href="../ms-rpce/38ae9f5a-dac2-46ad-b2b7-9c43f211d9f6" data-linktype="relative-path">3</a></span>.</p><p>Upon receiving this message, the server MUST process the
data from the message subject to the following constraints:</p><ol><li><p><span>    </span>The server MUST
return an error if <i>AliasHandle.HandleType</i> is not equal to
&#34;Alias&#34;.</p>
</li><li><p><span>    </span><i>AliasHandle.GrantedAccess</i>
MUST have the required access specified in section <span><a href="87bacbd0-7b8b-429f-abc6-4b3d895d4e90" data-linktype="relative-path">3.1.2.2</a></span>. Otherwise,
the server MUST return STATUS_ACCESS_DENIED.</p>
</li><li><p><span>    </span>The following
information levels MUST be processed by setting the database attribute on the
alias object associated with <i>AliasHandle.Object</i> to the associated input
field-name value using the mapping in section <span><a href="81a0becd-1e83-4043-b665-07afdd6a4064" data-linktype="relative-path">3.1.5.14.10</a></span>. All
updates MUST be performed in the same transaction.</p>
<table><thead>
  <tr>
   <th>
   <p>AliasInformationClass</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>AliasNameInformation</p>
  </td>
 </tr><tr>
  <td>
  <p>AliasAdminInformation</p>
  </td>
 </tr></tbody></table>
</li><li><p><span>    </span>If <i>AliasInformationClass</i>
does not meet the criteria of constraint 2, the server MUST return an error
code.</p>
</li></ol></div>