可以使用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