如何设置NTFS目录访问权限及获得NTFS目录的访问权限????(100分)

Y

yblldl

Unregistered / Unconfirmed
GUEST, unregistred user!
如何设置NTFS目录访问权限及获得NTFS目录的访问权限????<br>我实过API函数GetFileSecurity和SetFileSecurity但总是有问题。
 
问问老盖大叔,好像只有他知道!
 
怎样和老盖大叔联系呢???????
 
可以使用SetFilePermission (Win32 API)来设置NTFS上的文件和目录的权限<br>用法如下:<br>BOOL SetFilePermission(LPCTSTR lpFileName, // address of string for filename<br>SECURITY_INFORMATION SecurityInformation, // type of information to set<br>PSECURITY_DESCRIPTOR pSecurityDescriptor // address of security descriptor<br>); <br><br>请您参考下列API函数和数据结构以获得设置权限的进一步的信息:<br>ACL (DataStructure, Access Control List)<br>Get/SetSecurityDescriptorDacl<br>Get/SetSecurityDescriptorGroup<br>Get/SetSecurityDescriptorOwner<br>Get/SetSecurityDescriptorSacl<br><br>另外, 就是用GetFilePermission
 
接受答案了.
 
顶部