0

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!

4

1 回答 1

1

在 Win32 上使用 C/C++,您可以使用GetNamedSecurityInfo API。您将取回文件的访问控制列表(“DACL”),获得文件的所有者、组和审计访问控制列表(“SACL”)。ACL 在有点尴尬的ACL struct中返回。GetAce API有助于从 ACL 结构中检索单个条目。

于 2009-07-22T00:26:08.907 回答