RtlAllocateAndInitializeSid - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

_Must_inspect_result_
NTSYSAPI
NTSTATUS
NTAPI
RtlAllocateAndInitializeSid(
    _In_ PSID_IDENTIFIER_AUTHORITY IdentifierAuthority,
    _In_ UCHAR SubAuthorityCount,
    _In_ ULONG SubAuthority0,
    _In_ ULONG SubAuthority1,
    _In_ ULONG SubAuthority2,
    _In_ ULONG SubAuthority3,
    _In_ ULONG SubAuthority4,
    _In_ ULONG SubAuthority5,
    _In_ ULONG SubAuthority6,
    _In_ ULONG SubAuthority7,
    _Outptr_ PSID *Sid
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI NTSTATUS RtlAllocateAndInitializeSid(
  PSID_IDENTIFIER_AUTHORITY IdentifierAuthority,
  UCHAR                     SubAuthorityCount,
  ULONG                     SubAuthority0,
  ULONG                     SubAuthority1,
  ULONG                     SubAuthority2,
  ULONG                     SubAuthority3,
  ULONG                     SubAuthority4,
  ULONG                     SubAuthority5,
  ULONG                     SubAuthority6,
  ULONG                     SubAuthority7,
  PSID                      *Sid
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtlallocateandinitializesid)

RtlAllocateAndInitializeSid function

Description

The RtlAllocateAndInitializeSid routine is reserved for system use. See RtlCopySid and RtlInitializeSid.

Parameters

IdentifierAuthority

Reserved.

SubAuthorityCount

Reserved.

SubAuthority0

Reserved.

SubAuthority1

Reserved.

SubAuthority2

Reserved.

SubAuthority3

Reserved.

SubAuthority4

Reserved.

SubAuthority5

Reserved.

SubAuthority6

Reserved.

SubAuthority7

Reserved.

Sid

Reserved.

Return value

Reserved.