NTSTATUS
RtlpInitializeAllowedAce(
  IN  PACCESS_ALLOWED_ACE AllowedAce,
  IN  USHORT AceSize,
  IN  UCHAR InheritFlags,
  IN  UCHAR AceFlags,
  IN  ACCESS_MASK Mask,
  IN  PSID AllowedSid
  );

Routine Description:

    This function assigns the specified ACE values into an allowed type ACE.

Arguments:

    AllowedAce - Supplies a pointer to the ACE that is initialized.

    AceSize - Supplies the size of the ACE in bytes.

    InheritFlags - Supplies ACE inherit flags.

    AceFlags - Supplies ACE type specific control flags.

    Mask - Supplies the allowed access masks.

    AllowedSid - Supplies the pointer to the SID of user/group which is allowed
        the specified access.

Return Value:

    Returns status from RtlCopySid.