AddAccessDeniedAce

  BOOL AddAccessDeniedAce(pAcl, dwAceRevision, AccessMask, pSid)    
  PACL pAcl;    
  DWORD dwAceRevision;    
  DWORD AccessMask;    
  PSID pSid;    

The AddAccessDeniedAce function adds an ACCESS_DENIED ACE to an ACL. This is expected to be a common form of ACL modification.

A very bland ACE header is placed in the ACE. It provides no inheritance and no ACE flags.

Parameters

pAcl

Points to the ACL to be modified

dwAceRevision

Specifies the ACL/ACE revision of the ACE to add

AccessMask

Specifies the access privileges to be denied to the specified SID.

pSid

Points to the SID to be denied access.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

See Also

AddAccessAllowedAce