Hi guys, I got stuck with this. I need to get permission info of NTFS files with Java or C++. Those info should be stored in Access Control List (ACL), but I don't know how to retrieve them with Java or C++. Thanks for your help!
A:
With C/C++ on Win32, you could use the GetNamedSecurityInfo API. You get back the file's access control list (the "DACL"), you get the file's owner, group and audit access control list (the "SACL"). The ACL is returned in the somewhat awkward ACL struct. The GetAce API helps a little in retrieving individual entries from the ACL struct.
Oren Trutner
2009-07-22 00:26:08