How to get the source from which an ACE is inherited?

Mukilan IK 21 Reputation points
2021-10-27T07:22:04.953+00:00

I'm trying to write a program to get the NTFS permissions for a folder and information about each Access Control Entry(ACE). How do I get the source object from which an ACE was inherited?

for (int i = 0; i < dacl->AceCount; i++)
 {
            dw_name = 0;
            dw_domain = 0;
            GetAce(dacl, i, (PVOID *)&ace);

            if((ace->Header.AceFlags & INHERITED_ACE) == INHERITED_ACE)
                  // Get inherited source
}
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,412 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,519 questions
{count} votes

Accepted answer
  1. RLWA32 40,021 Reputation points
    2021-10-27T08:20:22.623+00:00

    See the API function nf-aclapi-getinheritancesourcew

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful