is there a way to check if an ACE
already exists in the DACL
of an object?
I want to use the RtlAddAccessAllowedAce
API call to add an ACE
to an object, but I want to do that only if the ACE
doesn't exist already.
Does someone know how can I either check if the ACE
already exist, or to try to remove the given ACE
before adding it, or any other solution which will achieve the same goal? Thanks!
you can or use winapi or direct walk by ACL ACEs - enumerate ACE one by one and check are some specific ACE exist:
variant 1:
variant 2: