A wrap over the CreateACE<ACCESS_ALLOWED_ACE_TYPE>(PSID pSid, DWORD dwAccessMask) template specialization, that creates an access-allowed ACE by the given principal specified as a native security identifier and a corresponding combination (bit mask) of Windows API access control values. .
- Parameters
-
- Returns
- The function returns a smart pointer of the AutoAccessAllowedACE type to the created ACE of ACCESS_ALLOWED_ACE type. The returned value points to data with the SID, partially occupying a space that contiguously follows the fields described by the ACCESS_ALLOWED_ACE structure.
- Exceptions
-
- See also
- CreateAccessDeniedACE - a function creating access-denied ACEs from a SID and an access-control mask;
CreateACE - a function template creating an ACE of type that depends upon a template parameter;
CreateAccessAllowedACE - an overload creating an access-allowed ACE from a name of a principal and from corresponding access-control mask.