关于SetSecurityDescriptorDacl函数的使用
来源:互联网 发布:14马刺知乎 编辑:程序博客网 时间:2024/06/01 07:34
参考资料来源:http://msdn.microsoft.com/en-us/library/aa379583(VS.85).aspx
此函数用来设置DACL中的信息。如果一个DACL已经在security descriptor中存在,那么此DACL将被替换。
函数原型如下:
要想使用第三、四两个参数,那么参数二需要设置为TRUE;如果参数二设置为FALSE,那么参数三、四被忽略。
值得注意的是MSDN中的Remarks中有这样的描述:
There is an important difference between an empty and a nonexistent DACL.
- When a DACL is empty, it contains no access control entries (ACEs); therefore, no access rights are explicitly granted. As a result, access to the object is implicitly denied.
- When an object has no DACL (when the pDacl parameter is NULL), no protection is assigned to the object, and all access requests are granted. To help maintain security, restrict access by using a DACL.把参数三设置为NULL,其实相当于将object的安全级别降到了最低,所有的访问请求都将成功。
- 关于SetSecurityDescriptorDacl函数的使用
- 关于几个函数的使用
- 关于header()函数的使用
- 关于inline函数的使用
- 关于FGETS()函数的使用
- 关于函数指针的使用
- 关于fflush函数的使用
- 关于select函数的使用
- 关于memset函数的使用
- 关于sprintf函数的使用
- 关于memset() 函数的使用
- 关于merge函数的使用
- 关于sscanf函数的使用
- 关于stroke函数的使用
- 关于str函数的使用
- 关于GetRecordCount函数的使用问题
- 关于C++中函数指针的使用
- 关于测试函数(假代码)的使用
- 我看看能不能好玩
- 调试技术-起点
- myeclipse集成svn
- 数据库管理员位列美国最佳就业职位第7
- hibernate之数据过滤--实例2
- 关于SetSecurityDescriptorDacl函数的使用
- javascript或运算符“||”
- Oracle中查询 行转列的方法
- 把类的析构函数写成虚函数的用意
- jboss配置与优化
- unsigned int 和 int 混合计算
- C语言字节对齐详解
- 分页查询语句(返回 该有的数据)
- 关键字