260 if (EveryoneSid !=
NULL)
263 if (AnonymousSid !=
NULL)
266 if (AdministratorsSid !=
NULL)
522 if (EveryoneSid !=
NULL)
525 if (AnonymousSid !=
NULL)
528 if (AdministratorsSid !=
NULL)
836 if (EveryoneSid !=
NULL)
839 if (AnonymousSid !=
NULL)
842 if (AdministratorsSid !=
NULL)
935 &AccountOperatorsSid);
1001 AccountOperatorsSid);
1123 if (EveryoneSid !=
NULL)
1126 if (AnonymousSid !=
NULL)
1129 if (AdministratorsSid !=
NULL)
1159 ULONG RelSDSize = 0;
1206 &AdministratorsSid);
1222 &AccountOperatorsSid);
1288 AccountOperatorsSid);
1410 if (EveryoneSid !=
NULL)
1413 if (AnonymousSid !=
NULL)
1416 if (AdministratorsSid !=
NULL)
1446 ULONG RelSDSize = 0;
1493 &AdministratorsSid);
1682 if (EveryoneSid !=
NULL)
1685 if (AnonymousSid !=
NULL)
1688 if (AdministratorsSid !=
NULL)
static SID_IDENTIFIER_AUTHORITY NtAuthority
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define NT_SUCCESS(StatCode)
static SID_IDENTIFIER_AUTHORITY WorldAuthority
NTSTATUS SampCreateBuiltinDomainSD(OUT PSECURITY_DESCRIPTOR *ServerSd, OUT PULONG Size)
NTSTATUS SampCreateGroupSD(OUT PSECURITY_DESCRIPTOR *GroupSd, OUT PULONG Size)
NTSTATUS SampCreateServerSD(OUT PSECURITY_DESCRIPTOR *ServerSd, OUT PULONG Size)
NTSTATUS SampCreateAliasSD(OUT PSECURITY_DESCRIPTOR *AliasSd, OUT PULONG Size)
NTSTATUS SampCreateUserSD(IN PSID UserSid, OUT PSECURITY_DESCRIPTOR *UserSd, OUT PULONG Size)
NTSTATUS SampCreateAccountDomainSD(OUT PSECURITY_DESCRIPTOR *ServerSd, OUT PULONG Size)
NTSYSAPI NTSTATUS WINAPI RtlAddAccessAllowedAce(PACL, DWORD, DWORD, PSID)
NTSYSAPI NTSTATUS WINAPI RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR, PSID, BOOLEAN)
NTSYSAPI NTSTATUS WINAPI RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR, BOOLEAN, PACL, BOOLEAN)
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL Dacl
NTSYSAPI NTSTATUS NTAPI RtlCreateAcl(PACL Acl, ULONG AclSize, ULONG AclRevision)
NTSYSAPI NTSTATUS NTAPI RtlAddAuditAccessAce(_Inout_ PACL Acl, _In_ ULONG Revision, _In_ ACCESS_MASK AccessMask, _In_ PSID Sid, _In_ BOOLEAN Success, _In_ BOOLEAN Failure)
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ SaclSize PACL _Inout_ PULONG SaclSize
NTSYSAPI ULONG NTAPI RtlLengthSid(IN PSID Sid)
NTSYSAPI NTSTATUS NTAPI RtlCreateSecurityDescriptor(_Out_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ ULONG Revision)
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ SaclSize PACL Sacl
NTSYSAPI PVOID NTAPI RtlFreeSid(_In_ _Post_invalid_ PSID Sid)
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL _Inout_ PULONG DaclSize
#define SPECIFIC_RIGHTS_ALL
#define ACCESS_SYSTEM_SECURITY
#define STANDARD_RIGHTS_ALL
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, OUT PSID *Sid)
NTSYSAPI NTSTATUS NTAPI RtlSetGroupSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSID Group, IN BOOLEAN GroupDefaulted)
NTSYSAPI NTSTATUS NTAPI RtlSetSaclSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN BOOLEAN SaclPresent, IN PACL Sacl, IN BOOLEAN SaclDefaulted)
NTSYSAPI NTSTATUS NTAPI RtlAbsoluteToSelfRelativeSD(IN PSECURITY_DESCRIPTOR AbsoluteSecurityDescriptor, IN OUT PSECURITY_DESCRIPTOR SelfRelativeSecurityDescriptor, IN PULONG BufferLength)
#define USER_READ_GENERAL
#define SAM_SERVER_EXECUTE
#define GROUP_READ_INFORMATION
#define DOMAIN_ALL_ACCESS
#define SAM_SERVER_SHUTDOWN
#define DOMAIN_CREATE_GROUP
#define USER_READ_PREFERENCES
#define USER_READ_ACCOUNT
#define DOMAIN_CREATE_ALIAS
#define ALIAS_WRITE_ACCOUNT
#define ALIAS_LIST_MEMBERS
#define GROUP_LIST_MEMBERS
#define ALIAS_READ_INFORMATION
#define USER_WRITE_PREFERENCES
#define GROUP_WRITE_ACCOUNT
#define GROUP_REMOVE_MEMBER
#define USER_CHANGE_PASSWORD
#define ALIAS_REMOVE_MEMBER
#define DOMAIN_CREATE_USER
#define USER_READ_GROUP_INFORMATION
#define SAM_SERVER_ALL_ACCESS
#define SAM_SERVER_CREATE_DOMAIN
#define SAM_SERVER_INITIALIZE
#define STATUS_BUFFER_TOO_SMALL
#define STATUS_INSUFFICIENT_RESOURCES
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define SECURITY_ANONYMOUS_LOGON_RID
#define DOMAIN_ALIAS_RID_USERS
#define DOMAIN_ALIAS_RID_GUESTS
#define SECURITY_BUILTIN_DOMAIN_RID
#define SECURITY_WORLD_SID_AUTHORITY
#define SECURITY_WORLD_RID
#define DOMAIN_ALIAS_RID_ACCOUNT_OPS
#define SECURITY_NT_AUTHORITY
#define SECURITY_DESCRIPTOR_REVISION
#define DOMAIN_ALIAS_RID_ADMINS