标签: c++ windows acl dacl
我试图将应用程序的权限设置为只读/执行,我可以通过使用c ++ windows SetSecurityDescriptorDacl()函数来实现。
SetSecurityDescriptorDacl()
但是,管理员可以通过右键单击文件来改变它
properties-> security-> advanced-> Change Permission
但不知何故,防病毒软件会阻止他们的应用程序收费,如下图所示