<div class="content"><p align="right"><a href="https://msdn.microsoft.com/en-us/library/5909af7f-858b-4cc7-a2e4-f852070d479d" data-linktype="external">msdn link</a></p><p>The SamrGetMembersInAlias method obtains the membership list
of an alias.</p><dl>
<dd>
<div><pre> long SamrGetMembersInAlias(
   [in] SAMPR_HANDLE AliasHandle,
   [out] PSAMPR_PSID_ARRAY_OUT Members
 );
</pre></div>
</dd></dl><p><b>AliasHandle: </b>An RPC context handle, as
specified in section <a href="8138c078-d881-4d1f-b378-94b4c34a287a" data-linktype="relative-path">2.2.7.2</a>,
representing an <a href="7b2aeb27-92fc-41f6-8437-deb65d950921#gt_0387e636-5654-4910-9519-1f8326cf5ec0" data-linktype="relative-path">alias object</a>.</p><p><b>Members: </b>A structure containing an array of <a href="7b2aeb27-92fc-41f6-8437-deb65d950921#gt_83f2020d-0804-4840-a5ac-e06439d50f8d" data-linktype="relative-path">SIDs</a> that represent the
membership list of the alias referenced by <i>AliasHandle</i>.</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>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 <a href="87bacbd0-7b8b-429f-abc6-4b3d895d4e90" data-linktype="relative-path">3.1.2.2</a>. Otherwise, the
server MUST return STATUS_ACCESS_DENIED.</p>
</li><li><p><span>    </span>On output, <b>Members.Count</b>
MUST be equal to the number of values in the member attribute, and <b>Members.Sids</b>
MUST have <b>Member.Count</b> number of elements. Each element MUST contain the
<b>objectSid</b> value of the object referenced in the member attribute.</p>
</li></ol></div>