mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 17:01:53 +00:00
[NTIFS]
- Group related definitions - Add SID_AND_ATTRIBUTES_HASH struct - Add SID_HASH_SIZE, SID_HASH_ENTRY, *PSID_HASH_ENTRY, SECURITY_LOCAL_LOGON_RID, SECURITY_CRED_TYPE_BASE_RID, SECURITY_CRED_TYPE_RID_COUNT, SECURITY_CRED_TYPE_THIS_ORG_CERT_RID, SECURITY_USERMODEDRIVERHOST_ID_BASE_RID, SECURITY_USERMODEDRIVERHOST_ID_RID_COUNT, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE_RID, SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_RID_COUNT, SECURITY_WMIHOST_ID_BASE_RID, SECURITY_WMIHOST_ID_RID_COUNT, SECURITY_TASK_ID_BASE_RID, SECURITY_NFS_ID_BASE_RID, SECURITY_COM_ID_BASE_RID, SECURITY_VIRTUALACCOUNT_ID_RID_COUNT and SECURITY_WINDOWSMOBILE_ID_BASE_RID definitions svn path=/branches/header-work/; revision=45900
This commit is contained in:
parent
7bf74e86d2
commit
01815bddf0
1 changed files with 107 additions and 97 deletions
|
@ -124,6 +124,113 @@ typedef enum _SID_NAME_USE {
|
|||
SidTypeLabel
|
||||
} SID_NAME_USE, *PSID_NAME_USE;
|
||||
|
||||
typedef struct _SID_AND_ATTRIBUTES {
|
||||
PSID Sid;
|
||||
ULONG Attributes;
|
||||
} SID_AND_ATTRIBUTES, *PSID_AND_ATTRIBUTES;
|
||||
typedef SID_AND_ATTRIBUTES SID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY];
|
||||
typedef SID_AND_ATTRIBUTES_ARRAY *PSID_AND_ATTRIBUTES_ARRAY;
|
||||
|
||||
#define SID_HASH_SIZE 32
|
||||
typedef ULONG_PTR SID_HASH_ENTRY, *PSID_HASH_ENTRY;
|
||||
|
||||
typedef struct _SID_AND_ATTRIBUTES_HASH {
|
||||
ULONG SidCount;
|
||||
PSID_AND_ATTRIBUTES SidAttr;
|
||||
SID_HASH_ENTRY Hash[SID_HASH_SIZE];
|
||||
} SID_AND_ATTRIBUTES_HASH, *PSID_AND_ATTRIBUTES_HASH;
|
||||
|
||||
/* Universal well-known SIDs */
|
||||
|
||||
#define SECURITY_NULL_SID_AUTHORITY {0,0,0,0,0,0}
|
||||
#define SECURITY_WORLD_SID_AUTHORITY {0,0,0,0,0,1}
|
||||
#define SECURITY_LOCAL_SID_AUTHORITY {0,0,0,0,0,2}
|
||||
#define SECURITY_CREATOR_SID_AUTHORITY {0,0,0,0,0,3}
|
||||
#define SECURITY_NON_UNIQUE_AUTHORITY {0,0,0,0,0,4}
|
||||
#define SECURITY_RESOURCE_MANAGER_AUTHORITY {0,0,0,0,0,9}
|
||||
|
||||
#define SECURITY_NULL_RID (0x00000000L)
|
||||
#define SECURITY_WORLD_RID (0x00000000L)
|
||||
#define SECURITY_LOCAL_RID (0x00000000L)
|
||||
#define SECURITY_LOCAL_LOGON_RID (0x00000001L)
|
||||
|
||||
#define SECURITY_CREATOR_OWNER_RID (0x00000000L)
|
||||
#define SECURITY_CREATOR_GROUP_RID (0x00000001L)
|
||||
#define SECURITY_CREATOR_OWNER_SERVER_RID (0x00000002L)
|
||||
#define SECURITY_CREATOR_GROUP_SERVER_RID (0x00000003L)
|
||||
#define SECURITY_CREATOR_OWNER_RIGHTS_RID (0x00000004L)
|
||||
|
||||
/* NT well-known SIDs */
|
||||
|
||||
#define SECURITY_NT_AUTHORITY {0,0,0,0,0,5}
|
||||
|
||||
#define SECURITY_DIALUP_RID (0x00000001L)
|
||||
#define SECURITY_NETWORK_RID (0x00000002L)
|
||||
#define SECURITY_BATCH_RID (0x00000003L)
|
||||
#define SECURITY_INTERACTIVE_RID (0x00000004L)
|
||||
#define SECURITY_LOGON_IDS_RID (0x00000005L)
|
||||
#define SECURITY_LOGON_IDS_RID_COUNT (3L)
|
||||
#define SECURITY_SERVICE_RID (0x00000006L)
|
||||
#define SECURITY_ANONYMOUS_LOGON_RID (0x00000007L)
|
||||
#define SECURITY_PROXY_RID (0x00000008L)
|
||||
#define SECURITY_ENTERPRISE_CONTROLLERS_RID (0x00000009L)
|
||||
#define SECURITY_SERVER_LOGON_RID SECURITY_ENTERPRISE_CONTROLLERS_RID
|
||||
#define SECURITY_PRINCIPAL_SELF_RID (0x0000000AL)
|
||||
#define SECURITY_AUTHENTICATED_USER_RID (0x0000000BL)
|
||||
#define SECURITY_RESTRICTED_CODE_RID (0x0000000CL)
|
||||
#define SECURITY_TERMINAL_SERVER_RID (0x0000000DL)
|
||||
#define SECURITY_REMOTE_LOGON_RID (0x0000000EL)
|
||||
#define SECURITY_THIS_ORGANIZATION_RID (0x0000000FL)
|
||||
#define SECURITY_IUSER_RID (0x00000011L)
|
||||
#define SECURITY_LOCAL_SYSTEM_RID (0x00000012L)
|
||||
#define SECURITY_LOCAL_SERVICE_RID (0x00000013L)
|
||||
#define SECURITY_NETWORK_SERVICE_RID (0x00000014L)
|
||||
#define SECURITY_NT_NON_UNIQUE (0x00000015L)
|
||||
#define SECURITY_NT_NON_UNIQUE_SUB_AUTH_COUNT (3L)
|
||||
#define SECURITY_ENTERPRISE_READONLY_CONTROLLERS_RID (0x00000016L)
|
||||
|
||||
#define SECURITY_BUILTIN_DOMAIN_RID (0x00000020L)
|
||||
#define SECURITY_WRITE_RESTRICTED_CODE_RID (0x00000021L)
|
||||
|
||||
|
||||
#define SECURITY_PACKAGE_BASE_RID (0x00000040L)
|
||||
#define SECURITY_PACKAGE_RID_COUNT (2L)
|
||||
#define SECURITY_PACKAGE_NTLM_RID (0x0000000AL)
|
||||
#define SECURITY_PACKAGE_SCHANNEL_RID (0x0000000EL)
|
||||
#define SECURITY_PACKAGE_DIGEST_RID (0x00000015L)
|
||||
|
||||
#define SECURITY_CRED_TYPE_BASE_RID (0x00000041L)
|
||||
#define SECURITY_CRED_TYPE_RID_COUNT (2L)
|
||||
#define SECURITY_CRED_TYPE_THIS_ORG_CERT_RID (0x00000001L)
|
||||
|
||||
#define SECURITY_MIN_BASE_RID (0x00000050L)
|
||||
#define SECURITY_SERVICE_ID_BASE_RID (0x00000050L)
|
||||
#define SECURITY_SERVICE_ID_RID_COUNT (6L)
|
||||
#define SECURITY_RESERVED_ID_BASE_RID (0x00000051L)
|
||||
#define SECURITY_APPPOOL_ID_BASE_RID (0x00000052L)
|
||||
#define SECURITY_APPPOOL_ID_RID_COUNT (6L)
|
||||
#define SECURITY_VIRTUALSERVER_ID_BASE_RID (0x00000053L)
|
||||
#define SECURITY_VIRTUALSERVER_ID_RID_COUNT (6L)
|
||||
#define SECURITY_USERMODEDRIVERHOST_ID_BASE_RID (0x00000054L)
|
||||
#define SECURITY_USERMODEDRIVERHOST_ID_RID_COUNT (6L)
|
||||
#define SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE_RID (0x00000055L)
|
||||
#define SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_RID_COUNT (6L)
|
||||
#define SECURITY_WMIHOST_ID_BASE_RID (0x00000056L)
|
||||
#define SECURITY_WMIHOST_ID_RID_COUNT (6L)
|
||||
#define SECURITY_TASK_ID_BASE_RID (0x00000057L)
|
||||
#define SECURITY_NFS_ID_BASE_RID (0x00000058L)
|
||||
#define SECURITY_COM_ID_BASE_RID (0x00000059L)
|
||||
#define SECURITY_VIRTUALACCOUNT_ID_RID_COUNT (6L)
|
||||
|
||||
#define SECURITY_MAX_BASE_RID (0x0000006FL)
|
||||
|
||||
#define SECURITY_MAX_ALWAYS_FILTERED (0x000003E7L)
|
||||
#define SECURITY_MIN_NEVER_FILTERED (0x000003E8L)
|
||||
|
||||
#define SECURITY_OTHER_ORGANIZATION_RID (0x000003E8L)
|
||||
|
||||
#define SECURITY_WINDOWSMOBILE_ID_BASE_RID (0x00000070L)
|
||||
|
||||
#pragma pack(push,4)
|
||||
|
||||
#ifndef VER_PRODUCTBUILD
|
||||
|
@ -730,103 +837,6 @@ typedef struct _COMPRESSED_DATA_INFO {
|
|||
ULONG CompressedChunkSizes[ANYSIZE_ARRAY];
|
||||
} COMPRESSED_DATA_INFO, *PCOMPRESSED_DATA_INFO;
|
||||
|
||||
typedef struct _SID_AND_ATTRIBUTES {
|
||||
PSID Sid;
|
||||
ULONG Attributes;
|
||||
} SID_AND_ATTRIBUTES, *PSID_AND_ATTRIBUTES;
|
||||
typedef SID_AND_ATTRIBUTES SID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY];
|
||||
typedef SID_AND_ATTRIBUTES_ARRAY *PSID_AND_ATTRIBUTES_ARRAY;
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Universal well-known SIDs
|
||||
//
|
||||
#define SECURITY_NULL_SID_AUTHORITY {0,0,0,0,0,0}
|
||||
#define SECURITY_WORLD_SID_AUTHORITY {0,0,0,0,0,1}
|
||||
#define SECURITY_LOCAL_SID_AUTHORITY {0,0,0,0,0,2}
|
||||
#define SECURITY_CREATOR_SID_AUTHORITY {0,0,0,0,0,3}
|
||||
#define SECURITY_NON_UNIQUE_AUTHORITY {0,0,0,0,0,4}
|
||||
#define SECURITY_RESOURCE_MANAGER_AUTHORITY {0,0,0,0,0,9}
|
||||
|
||||
#define SECURITY_NULL_RID (0x00000000L)
|
||||
#define SECURITY_WORLD_RID (0x00000000L)
|
||||
#define SECURITY_LOCAL_RID (0x00000000L)
|
||||
|
||||
#define SECURITY_CREATOR_OWNER_RID (0x00000000L)
|
||||
#define SECURITY_CREATOR_GROUP_RID (0x00000001L)
|
||||
|
||||
#define SECURITY_CREATOR_OWNER_SERVER_RID (0x00000002L)
|
||||
#define SECURITY_CREATOR_GROUP_SERVER_RID (0x00000003L)
|
||||
|
||||
#define SECURITY_CREATOR_OWNER_RIGHTS_RID (0x00000004L)
|
||||
|
||||
|
||||
|
||||
//
|
||||
// NT well-known SIDs
|
||||
//
|
||||
#define SECURITY_NT_AUTHORITY {0,0,0,0,0,5}
|
||||
|
||||
#define SECURITY_DIALUP_RID (0x00000001L)
|
||||
#define SECURITY_NETWORK_RID (0x00000002L)
|
||||
#define SECURITY_BATCH_RID (0x00000003L)
|
||||
#define SECURITY_INTERACTIVE_RID (0x00000004L)
|
||||
#define SECURITY_LOGON_IDS_RID (0x00000005L)
|
||||
#define SECURITY_LOGON_IDS_RID_COUNT (3L)
|
||||
#define SECURITY_SERVICE_RID (0x00000006L)
|
||||
#define SECURITY_ANONYMOUS_LOGON_RID (0x00000007L)
|
||||
#define SECURITY_PROXY_RID (0x00000008L)
|
||||
#define SECURITY_ENTERPRISE_CONTROLLERS_RID (0x00000009L)
|
||||
#define SECURITY_SERVER_LOGON_RID SECURITY_ENTERPRISE_CONTROLLERS_RID
|
||||
#define SECURITY_PRINCIPAL_SELF_RID (0x0000000AL)
|
||||
#define SECURITY_AUTHENTICATED_USER_RID (0x0000000BL)
|
||||
#define SECURITY_RESTRICTED_CODE_RID (0x0000000CL)
|
||||
#define SECURITY_TERMINAL_SERVER_RID (0x0000000DL)
|
||||
#define SECURITY_REMOTE_LOGON_RID (0x0000000EL)
|
||||
#define SECURITY_THIS_ORGANIZATION_RID (0x0000000FL)
|
||||
#define SECURITY_IUSER_RID (0x00000011L)
|
||||
#define SECURITY_LOCAL_SYSTEM_RID (0x00000012L)
|
||||
#define SECURITY_LOCAL_SERVICE_RID (0x00000013L)
|
||||
#define SECURITY_NETWORK_SERVICE_RID (0x00000014L)
|
||||
|
||||
#define SECURITY_NT_NON_UNIQUE (0x00000015L)
|
||||
#define SECURITY_NT_NON_UNIQUE_SUB_AUTH_COUNT (3L)
|
||||
|
||||
#define SECURITY_ENTERPRISE_READONLY_CONTROLLERS_RID (0x00000016L)
|
||||
|
||||
#define SECURITY_BUILTIN_DOMAIN_RID (0x00000020L)
|
||||
#define SECURITY_WRITE_RESTRICTED_CODE_RID (0x00000021L)
|
||||
|
||||
|
||||
#define SECURITY_PACKAGE_BASE_RID (0x00000040L)
|
||||
#define SECURITY_PACKAGE_RID_COUNT (2L)
|
||||
#define SECURITY_PACKAGE_NTLM_RID (0x0000000AL)
|
||||
#define SECURITY_PACKAGE_SCHANNEL_RID (0x0000000EL)
|
||||
#define SECURITY_PACKAGE_DIGEST_RID (0x00000015L)
|
||||
|
||||
#define SECURITY_MIN_BASE_RID (0x00000050L)
|
||||
|
||||
#define SECURITY_SERVICE_ID_BASE_RID (0x00000050L)
|
||||
#define SECURITY_SERVICE_ID_RID_COUNT (6L)
|
||||
|
||||
#define SECURITY_RESERVED_ID_BASE_RID (0x00000051L)
|
||||
|
||||
#define SECURITY_APPPOOL_ID_BASE_RID (0x00000052L)
|
||||
#define SECURITY_APPPOOL_ID_RID_COUNT (6L)
|
||||
|
||||
#define SECURITY_VIRTUALSERVER_ID_BASE_RID (0x00000053L)
|
||||
#define SECURITY_VIRTUALSERVER_ID_RID_COUNT (6L)
|
||||
|
||||
#define SECURITY_MAX_BASE_RID (0x0000006FL)
|
||||
|
||||
#define SECURITY_MAX_ALWAYS_FILTERED (0x000003E7L)
|
||||
#define SECURITY_MIN_NEVER_FILTERED (0x000003E8L)
|
||||
|
||||
#define SECURITY_OTHER_ORGANIZATION_RID (0x000003E8L)
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Well-known domain relative sub-authority values (RIDs)
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue