次の方法で共有


3.1.5.4.3 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 2.2.7.2, 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 2.2.1.6 for a listing of possible values.

AliasHandle: An RPC context handle, as specified in section 2.2.7.2.

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 3.1.5.4.1, using a group type of GROUP_TYPE_SECURITY_RESOURCE and using access mask values from section 2.2.1.6.