SamrCreateAliasInDomain (Opnum 14)

The SamrCreateAliasInDomain method creates an alias.

 long SamrCreateAliasInDomain(
   [in] SAMPR_HANDLE DomainHandle,
   [in] PRPC_UNICODE_STRING AccountName,
   [in] unsigned long DesiredAccess,
   [out] SAMPR_HANDLE* AliasHandle,
   [out] unsigned long* RelativeId

DomainHandle: An RPC context handle, as specified in section, representing a domain object.

AccountName: The value to use as the name of the alias. Details on how this value maps to the data model are provided later in this section.

DesiredAccess: The access requested on the AliasHandle on output. See section for a listing of possible values.

AliasHandle: An RPC context handle, as specified in section

RelativeId: The RID of the newly created alias.

This protocol asks the RPC runtime, via the strict_context_handle attribute, to reject the use of context handles created by a method of a different RPC interface than this one, as specified in [MS-RPCE] section 3.

This method MUST be processed per the specifications in section, using a group type of GROUP_TYPE_SECURITY_RESOURCE and using access mask values from section