AddScopedPolicyIDAce function
The AddScopedPolicyIDAce function adds a SYSTEM_SCOPED_POLICY_ID_ACE access control entry (ACE) to the end of a system access control list (SACL). A SYSTEM_SCOPED_POLICY_ID_ACE structure specifies a central access policy (CAP) to be associated with the resource and can be used during access checks. The set of standard access rights are defined in the Standard Access Rights topic.
Syntax
BOOL WINAPI AddScopedPolicyIDAce( _Inout_ PACL pAcl, _In_ DWORD dwAceRevision, _In_ DWORD AceFlags, _In_ DWORD AccessMask, _In_ PSID pSid );
Parameters
- pAcl [in, out]
-
A pointer to an access control list (ACL). This function adds an ACE to this ACL. The value of this parameter cannot be NULL.
- dwAceRevision [in]
-
Specifies the revision level of the ACL being modified. This value can be ACL_REVISION or ACL_REVISION_DS. Use ACL_REVISION_DS if the ACL contains object-specific ACEs.
- AceFlags [in]
-
A set of bit flags that control ACE inheritance. The function sets these flags in the AceFlags member of the ACE_HEADER structure of the new ACE.
For consistency with the Windows 8 Advanced File Permissions UI, applications should specify the CONTAINER_INHERIT_ACE and OBJECT_INHERIT_ACE flags in the AceFlags parameter.
This parameter can be a combination of the following values.
- AccessMask [in]
-
Must be zero for Windows 8 and Windows Server 2012.
- pSid [in]
-
A pointer to the SID (S-1-17-*) that identifies the Central Access Policy to be associated with the resource.
Return value
If the function succeeds, it returns TRUE.
If the function fails, it returns FALSE. To get extended error information, call GetLastError.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also