FreeRDP
winpr/include/winpr/security.h File Reference
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
#include <winpr/nt.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  PLUID_AND_ATTRIBUTES
 
struct  PSID_IDENTIFIER_AUTHORITY
 
struct  PISID
 
struct  PSID_AND_ATTRIBUTES
 
struct  PSID_AND_ATTRIBUTES_HASH
 
struct  PTOKEN_USER
 
struct  PTOKEN_GROUPS
 
struct  PTOKEN_PRIVILEGES
 
struct  PTOKEN_OWNER
 
struct  PTOKEN_PRIMARY_GROUP
 
struct  PTOKEN_DEFAULT_DACL
 
struct  PTOKEN_USER_CLAIMS
 
struct  PTOKEN_DEVICE_CLAIMS
 
struct  PTOKEN_GROUPS_AND_PRIVILEGES
 
struct  PTOKEN_LINKED_TOKEN
 
struct  PTOKEN_ELEVATION
 
struct  PTOKEN_MANDATORY_LABEL
 
struct  PTOKEN_MANDATORY_POLICY
 
struct  PTOKEN_ACCESS_INFORMATION
 
struct  PTOKEN_AUDIT_POLICY
 
struct  PTOKEN_SOURCE
 
struct  PTOKEN_STATISTICS
 
struct  PTOKEN_CONTROL
 
struct  PTOKEN_ORIGIN
 
struct  PTOKEN_APPCONTAINER_INFORMATION
 

Macros

#define ANYSIZE_ARRAY   1
 
#define SECURITY_MAX_IMPERSONATION_LEVEL   SecurityDelegation
 
#define SECURITY_MIN_IMPERSONATION_LEVEL   SecurityAnonymous
 
#define DEFAULT_IMPERSONATION_LEVEL   SecurityImpersonation
 
#define VALID_IMPERSONATION_LEVEL(L)   (((L) >= SECURITY_MIN_IMPERSONATION_LEVEL) && ((L) <= SECURITY_MAX_IMPERSONATION_LEVEL))
 
#define TOKEN_ASSIGN_PRIMARY   (0x0001)
 
#define TOKEN_DUPLICATE   (0x0002)
 
#define TOKEN_IMPERSONATE   (0x0004)
 
#define TOKEN_QUERY   (0x0008)
 
#define TOKEN_QUERY_SOURCE   (0x0010)
 
#define TOKEN_ADJUST_PRIVILEGES   (0x0020)
 
#define TOKEN_ADJUST_GROUPS   (0x0040)
 
#define TOKEN_ADJUST_DEFAULT   (0x0080)
 
#define TOKEN_ADJUST_SESSIONID   (0x0100)
 
#define TOKEN_ALL_ACCESS_P
 
#define TOKEN_ALL_ACCESS   (TOKEN_ALL_ACCESS_P | TOKEN_ADJUST_SESSIONID)
 
#define TOKEN_READ   (STANDARD_RIGHTS_READ | TOKEN_QUERY)
 
#define TOKEN_WRITE
 
#define TOKEN_EXECUTE   (STANDARD_RIGHTS_EXECUTE)
 
#define TOKEN_MANDATORY_POLICY_OFF   0x0
 
#define TOKEN_MANDATORY_POLICY_NO_WRITE_UP   0x1
 
#define TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN   0x2
 
#define TOKEN_MANDATORY_POLICY_VALID_MASK
 
#define POLICY_AUDIT_SUBCATEGORY_COUNT   (56)
 
#define TOKEN_SOURCE_LENGTH   8
 
#define SID_REVISION   (1)
 
#define SID_MAX_SUB_AUTHORITIES   (15)
 
#define SID_RECOMMENDED_SUB_AUTHORITIES   (1)
 
#define SID_HASH_SIZE   32
 
#define SECURITY_MANDATORY_UNTRUSTED_RID   0x0000
 
#define SECURITY_MANDATORY_LOW_RID   0x1000
 
#define SECURITY_MANDATORY_MEDIUM_RID   0x2000
 
#define SECURITY_MANDATORY_HIGH_RID   0x3000
 
#define SECURITY_MANDATORY_SYSTEM_RID   0x4000
 
#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)
 

Typedefs

typedef enum _SECURITY_IMPERSONATION_LEVEL * PSECURITY_IMPERSONATION_LEVEL
 
typedef PVOID PACCESS_TOKEN
 
typedef PVOID PCLAIMS_BLOB
 
typedef LUID_AND_ATTRIBUTES LUID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY]
 
typedef LUID_AND_ATTRIBUTES_ARRAYPLUID_AND_ATTRIBUTES_ARRAY
 
typedef enum _SID_NAME_USE * PSID_NAME_USE
 
typedef SID_AND_ATTRIBUTES SID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY]
 
typedef SID_AND_ATTRIBUTES_ARRAYPSID_AND_ATTRIBUTES_ARRAY
 
typedef ULONG_PTR SID_HASH_ENTRY
 
typedef ULONG_PTR * PSID_HASH_ENTRY
 
typedef TOKEN_TYPEPTOKEN_TYPE
 
typedef enum _TOKEN_ELEVATION_TYPE * PTOKEN_ELEVATION_TYPE
 
typedef enum _TOKEN_INFORMATION_CLASS * PTOKEN_INFORMATION_CLASS
 
typedef enum _MANDATORY_LEVEL * PMANDATORY_LEVEL
 

Enumerations

enum  SECURITY_IMPERSONATION_LEVEL { SecurityAnonymous, SecurityIdentification, SecurityImpersonation, SecurityDelegation }
 
enum  SID_NAME_USE {
  SidTypeUser = 1, SidTypeGroup, SidTypeDomain, SidTypeAlias,
  SidTypeWellKnownGroup, SidTypeDeletedAccount, SidTypeInvalid, SidTypeUnknown,
  SidTypeComputer, SidTypeLabel
}
 
enum  TOKEN_TYPE { TokenPrimary = 1, TokenImpersonation }
 
enum  TOKEN_ELEVATION_TYPE { TokenElevationTypeDefault = 1, TokenElevationTypeFull, TokenElevationTypeLimited }
 
enum  TOKEN_INFORMATION_CLASS {
  TokenUser = 1, TokenGroups, TokenPrivileges, TokenOwner,
  TokenPrimaryGroup, TokenDefaultDacl, TokenSource, TokenType,
  TokenImpersonationLevel, TokenStatistics, TokenRestrictedSids, TokenSessionId,
  TokenGroupsAndPrivileges, TokenSessionReference, TokenSandBoxInert, TokenAuditPolicy,
  TokenOrigin, TokenElevationType, TokenLinkedToken, TokenElevation,
  TokenHasRestrictions, TokenAccessInformation, TokenVirtualizationAllowed, TokenVirtualizationEnabled,
  TokenIntegrityLevel, TokenUIAccess, TokenMandatoryPolicy, TokenLogonSid,
  TokenIsAppContainer, TokenCapabilities, TokenAppContainerSid, TokenAppContainerNumber,
  TokenUserClaimAttributes, TokenDeviceClaimAttributes, TokenRestrictedUserClaimAttributes, TokenRestrictedDeviceClaimAttributes,
  TokenDeviceGroups, TokenRestrictedDeviceGroups, TokenSecurityAttributes, TokenIsRestricted,
  MaxTokenInfoClass
}
 
enum  MANDATORY_LEVEL {
  MandatoryLevelUntrusted = 0, MandatoryLevelLow, MandatoryLevelMedium, MandatoryLevelHigh,
  MandatoryLevelSystem, MandatoryLevelSecureProcess, MandatoryLevelCount
}
 

Functions

WINPR_API BOOL InitializeSecurityDescriptor (PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD dwRevision)
 
WINPR_API DWORD GetSecurityDescriptorLength (PSECURITY_DESCRIPTOR pSecurityDescriptor)
 
WINPR_API BOOL IsValidSecurityDescriptor (PSECURITY_DESCRIPTOR pSecurityDescriptor)
 
WINPR_API BOOL GetSecurityDescriptorControl (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSECURITY_DESCRIPTOR_CONTROL pControl, LPDWORD lpdwRevision)
 
WINPR_API BOOL SetSecurityDescriptorControl (PSECURITY_DESCRIPTOR pSecurityDescriptor, SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet)
 
WINPR_API BOOL GetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbDaclPresent, PACL *pDacl, LPBOOL lpbDaclDefaulted)
 
WINPR_API BOOL SetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, BOOL bDaclPresent, PACL pDacl, BOOL bDaclDefaulted)
 
WINPR_API BOOL GetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pGroup, LPBOOL lpbGroupDefaulted)
 
WINPR_API BOOL SetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID pGroup, BOOL bGroupDefaulted)
 
WINPR_API BOOL GetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pOwner, LPBOOL lpbOwnerDefaulted)
 
WINPR_API BOOL SetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID pOwner, BOOL bOwnerDefaulted)
 
WINPR_API DWORD GetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR SecurityDescriptor, PUCHAR RMControl)
 
WINPR_API DWORD SetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR SecurityDescriptor, PUCHAR RMControl)
 
WINPR_API BOOL GetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbSaclPresent, PACL *pSacl, LPBOOL lpbSaclDefaulted)
 
WINPR_API BOOL SetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, BOOL bSaclPresent, PACL pSacl, BOOL bSaclDefaulted)
 

Macro Definition Documentation

#define ANYSIZE_ARRAY   1

WinPR: Windows Portable Runtime Security Definitions

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Windows Integrity Mechanism Design: http://msdn.microsoft.com/en-us/library/bb625963.aspx

#define DEFAULT_IMPERSONATION_LEVEL   SecurityImpersonation
#define POLICY_AUDIT_SUBCATEGORY_COUNT   (56)
#define SECURITY_CREATOR_GROUP_RID   (0x00000001L)
#define SECURITY_CREATOR_GROUP_SERVER_RID   (0x00000003L)
#define SECURITY_CREATOR_OWNER_RID   (0x00000000L)
#define SECURITY_CREATOR_OWNER_RIGHTS_RID   (0x00000004L)
#define SECURITY_CREATOR_OWNER_SERVER_RID   (0x00000002L)
#define SECURITY_CREATOR_SID_AUTHORITY   {0,0,0,0,0,3}
#define SECURITY_LOCAL_LOGON_RID   (0x00000001L)
#define SECURITY_LOCAL_RID   (0x00000000L)
#define SECURITY_LOCAL_SID_AUTHORITY   {0,0,0,0,0,2}
#define SECURITY_MANDATORY_HIGH_RID   0x3000
#define SECURITY_MANDATORY_LOW_RID   0x1000
#define SECURITY_MANDATORY_MEDIUM_RID   0x2000
#define SECURITY_MANDATORY_SYSTEM_RID   0x4000
#define SECURITY_MANDATORY_UNTRUSTED_RID   0x0000
#define SECURITY_MAX_IMPERSONATION_LEVEL   SecurityDelegation
#define SECURITY_MIN_IMPERSONATION_LEVEL   SecurityAnonymous
#define SECURITY_NON_UNIQUE_AUTHORITY   {0,0,0,0,0,4}
#define SECURITY_NULL_RID   (0x00000000L)
#define SECURITY_NULL_SID_AUTHORITY   {0,0,0,0,0,0}
#define SECURITY_RESOURCE_MANAGER_AUTHORITY   {0,0,0,0,0,9}
#define SECURITY_WORLD_RID   (0x00000000L)
#define SECURITY_WORLD_SID_AUTHORITY   {0,0,0,0,0,1}
#define SID_HASH_SIZE   32
#define SID_MAX_SUB_AUTHORITIES   (15)
#define SID_RECOMMENDED_SUB_AUTHORITIES   (1)
#define SID_REVISION   (1)
#define TOKEN_ADJUST_DEFAULT   (0x0080)
#define TOKEN_ADJUST_GROUPS   (0x0040)
#define TOKEN_ADJUST_PRIVILEGES   (0x0020)
#define TOKEN_ADJUST_SESSIONID   (0x0100)
#define TOKEN_ALL_ACCESS   (TOKEN_ALL_ACCESS_P | TOKEN_ADJUST_SESSIONID)
#define TOKEN_ALL_ACCESS_P
Value:
#define STANDARD_RIGHTS_REQUIRED
Definition: nt.h:1498
#define TOKEN_DUPLICATE
Definition: winpr/include/winpr/security.h:51
#define TOKEN_ASSIGN_PRIMARY
Definition: winpr/include/winpr/security.h:50
#define TOKEN_QUERY
Definition: winpr/include/winpr/security.h:53
#define TOKEN_ADJUST_PRIVILEGES
Definition: winpr/include/winpr/security.h:55
#define TOKEN_IMPERSONATE
Definition: winpr/include/winpr/security.h:52
#define TOKEN_QUERY_SOURCE
Definition: winpr/include/winpr/security.h:54
#define TOKEN_ADJUST_DEFAULT
Definition: winpr/include/winpr/security.h:57
#define TOKEN_ADJUST_GROUPS
Definition: winpr/include/winpr/security.h:56
#define TOKEN_ASSIGN_PRIMARY   (0x0001)
#define TOKEN_DUPLICATE   (0x0002)
#define TOKEN_EXECUTE   (STANDARD_RIGHTS_EXECUTE)
#define TOKEN_IMPERSONATE   (0x0004)
#define TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN   0x2
#define TOKEN_MANDATORY_POLICY_NO_WRITE_UP   0x1
#define TOKEN_MANDATORY_POLICY_OFF   0x0
#define TOKEN_MANDATORY_POLICY_VALID_MASK
Value:
#define TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN
Definition: winpr/include/winpr/security.h:75
#define TOKEN_MANDATORY_POLICY_NO_WRITE_UP
Definition: winpr/include/winpr/security.h:74
#define TOKEN_QUERY   (0x0008)
#define TOKEN_QUERY_SOURCE   (0x0010)
#define TOKEN_READ   (STANDARD_RIGHTS_READ | TOKEN_QUERY)
#define TOKEN_SOURCE_LENGTH   8
#define TOKEN_WRITE
Value:
#define TOKEN_ADJUST_PRIVILEGES
Definition: winpr/include/winpr/security.h:55
#define TOKEN_ADJUST_DEFAULT
Definition: winpr/include/winpr/security.h:57
#define STANDARD_RIGHTS_WRITE
Definition: nt.h:1500
#define TOKEN_ADJUST_GROUPS
Definition: winpr/include/winpr/security.h:56
#define VALID_IMPERSONATION_LEVEL (   L)    (((L) >= SECURITY_MIN_IMPERSONATION_LEVEL) && ((L) <= SECURITY_MAX_IMPERSONATION_LEVEL))

Typedef Documentation

typedef LUID_AND_ATTRIBUTES LUID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY]
typedef PVOID PACCESS_TOKEN
typedef PVOID PCLAIMS_BLOB
typedef enum _MANDATORY_LEVEL * PMANDATORY_LEVEL
typedef enum _SECURITY_IMPERSONATION_LEVEL * PSECURITY_IMPERSONATION_LEVEL
typedef ULONG_PTR * PSID_HASH_ENTRY
typedef enum _SID_NAME_USE * PSID_NAME_USE
typedef enum _TOKEN_ELEVATION_TYPE * PTOKEN_ELEVATION_TYPE
typedef enum _TOKEN_INFORMATION_CLASS * PTOKEN_INFORMATION_CLASS
typedef SID_AND_ATTRIBUTES SID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY]
typedef ULONG_PTR SID_HASH_ENTRY

Enumeration Type Documentation

Enumerator
MandatoryLevelUntrusted 
MandatoryLevelLow 
MandatoryLevelMedium 
MandatoryLevelHigh 
MandatoryLevelSystem 
MandatoryLevelSecureProcess 
MandatoryLevelCount 
Enumerator
SecurityAnonymous 
SecurityIdentification 
SecurityImpersonation 
SecurityDelegation 
Enumerator
SidTypeUser 
SidTypeGroup 
SidTypeDomain 
SidTypeAlias 
SidTypeWellKnownGroup 
SidTypeDeletedAccount 
SidTypeInvalid 
SidTypeUnknown 
SidTypeComputer 
SidTypeLabel 
Enumerator
TokenElevationTypeDefault 
TokenElevationTypeFull 
TokenElevationTypeLimited 
Enumerator
TokenUser 
TokenGroups 
TokenPrivileges 
TokenOwner 
TokenPrimaryGroup 
TokenDefaultDacl 
TokenSource 
TokenType 
TokenImpersonationLevel 
TokenStatistics 
TokenRestrictedSids 
TokenSessionId 
TokenGroupsAndPrivileges 
TokenSessionReference 
TokenSandBoxInert 
TokenAuditPolicy 
TokenOrigin 
TokenElevationType 
TokenLinkedToken 
TokenElevation 
TokenHasRestrictions 
TokenAccessInformation 
TokenVirtualizationAllowed 
TokenVirtualizationEnabled 
TokenIntegrityLevel 
TokenUIAccess 
TokenMandatoryPolicy 
TokenLogonSid 
TokenIsAppContainer 
TokenCapabilities 
TokenAppContainerSid 
TokenAppContainerNumber 
TokenUserClaimAttributes 
TokenDeviceClaimAttributes 
TokenRestrictedUserClaimAttributes 
TokenRestrictedDeviceClaimAttributes 
TokenDeviceGroups 
TokenRestrictedDeviceGroups 
TokenSecurityAttributes 
TokenIsRestricted 
MaxTokenInfoClass 
enum TOKEN_TYPE
Enumerator
TokenPrimary 
TokenImpersonation 

Function Documentation

WINPR_API BOOL GetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSECURITY_DESCRIPTOR_CONTROL  pControl,
LPDWORD  lpdwRevision 
)
WINPR_API BOOL GetSecurityDescriptorDacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
LPBOOL  lpbDaclPresent,
PACL *  pDacl,
LPBOOL  lpbDaclDefaulted 
)
WINPR_API BOOL GetSecurityDescriptorGroup ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID *  pGroup,
LPBOOL  lpbGroupDefaulted 
)
WINPR_API DWORD GetSecurityDescriptorLength ( PSECURITY_DESCRIPTOR  pSecurityDescriptor)
WINPR_API BOOL GetSecurityDescriptorOwner ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID *  pOwner,
LPBOOL  lpbOwnerDefaulted 
)
WINPR_API DWORD GetSecurityDescriptorRMControl ( PSECURITY_DESCRIPTOR  SecurityDescriptor,
PUCHAR  RMControl 
)
WINPR_API BOOL GetSecurityDescriptorSacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
LPBOOL  lpbSaclPresent,
PACL *  pSacl,
LPBOOL  lpbSaclDefaulted 
)
WINPR_API BOOL InitializeSecurityDescriptor ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
DWORD  dwRevision 
)

WinPR: Windows Portable Runtime Base Security Functions

Copyright 2013 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. api-ms-win-security-base-l1-2-0.dll:

AccessCheck AccessCheckAndAuditAlarmW AccessCheckByType AccessCheckByTypeAndAuditAlarmW AccessCheckByTypeResultList AccessCheckByTypeResultListAndAuditAlarmByHandleW AccessCheckByTypeResultListAndAuditAlarmW AddAccessAllowedAce AddAccessAllowedAceEx AddAccessAllowedObjectAce AddAccessDeniedAce AddAccessDeniedAceEx AddAccessDeniedObjectAce AddAce AddAuditAccessAce AddAuditAccessAceEx AddAuditAccessObjectAce AddMandatoryAce AddResourceAttributeAce AddScopedPolicyIDAce AdjustTokenGroups AdjustTokenPrivileges AllocateAndInitializeSid AllocateLocallyUniqueId AreAllAccessesGranted AreAnyAccessesGranted CheckTokenCapability CheckTokenMembership CheckTokenMembershipEx ConvertToAutoInheritPrivateObjectSecurity CopySid CreatePrivateObjectSecurity CreatePrivateObjectSecurityEx CreatePrivateObjectSecurityWithMultipleInheritance CreateRestrictedToken CreateWellKnownSid DeleteAce DestroyPrivateObjectSecurity DuplicateToken DuplicateTokenEx EqualDomainSid EqualPrefixSid EqualSid FindFirstFreeAce FreeSid GetAce GetAclInformation GetAppContainerAce GetCachedSigningLevel GetFileSecurityW GetKernelObjectSecurity GetLengthSid GetPrivateObjectSecurity GetSidIdentifierAuthority GetSidLengthRequired GetSidSubAuthority GetSidSubAuthorityCount GetTokenInformation GetWindowsAccountDomainSid ImpersonateAnonymousToken ImpersonateLoggedOnUser ImpersonateSelf InitializeAcl InitializeSid IsTokenRestricted IsValidAcl IsValidSid IsWellKnownSid MakeAbsoluteSD MakeSelfRelativeSD MapGenericMask ObjectCloseAuditAlarmW ObjectDeleteAuditAlarmW ObjectOpenAuditAlarmW ObjectPrivilegeAuditAlarmW PrivilegeCheck PrivilegedServiceAuditAlarmW QuerySecurityAccessMask RevertToSelf SetAclInformation SetCachedSigningLevel SetFileSecurityW SetKernelObjectSecurity SetPrivateObjectSecurity SetPrivateObjectSecurityEx SetSecurityAccessMask SetTokenInformation

WINPR_API BOOL IsValidSecurityDescriptor ( PSECURITY_DESCRIPTOR  pSecurityDescriptor)
WINPR_API BOOL SetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
SECURITY_DESCRIPTOR_CONTROL  ControlBitsOfInterest,
SECURITY_DESCRIPTOR_CONTROL  ControlBitsToSet 
)
WINPR_API BOOL SetSecurityDescriptorDacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
BOOL  bDaclPresent,
PACL  pDacl,
BOOL  bDaclDefaulted 
)
WINPR_API BOOL SetSecurityDescriptorGroup ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID  pGroup,
BOOL  bGroupDefaulted 
)
WINPR_API BOOL SetSecurityDescriptorOwner ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID  pOwner,
BOOL  bOwnerDefaulted 
)
WINPR_API DWORD SetSecurityDescriptorRMControl ( PSECURITY_DESCRIPTOR  SecurityDescriptor,
PUCHAR  RMControl 
)
WINPR_API BOOL SetSecurityDescriptorSacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
BOOL  bSaclPresent,
PACL  pSacl,
BOOL  bSaclDefaulted 
)