A wrap over the CreateACE<ACCESS_ALLOWED_ACE_TYPE>(PSID pSid, DWORD dwAccessMask) template specialization, that creates an access-denied 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 AutoAccessDeniedACE type to the created ACE of ACCESS_DENIED_ACE type. The returned value points to data with the SID, partially occupying a space that contiguously follows the fields described by the ACCESS_DENIED_ACE structure.
- Exceptions
-
- See also
- CreateAccessAllowedACE - a function creating access-allowed ACEs from a SID and an access-control mask;
CreateACE - a function template creating an ACE of type that depends upon a template parameter;
CreateAccessDeniedACE - an overload creating an access-denied ACE from a name of a principal and from corresponding access-control mask.