how to change the ACLs from c++?

前端 未结 3 1763
你的背包
你的背包 2020-12-09 07:26

How to change the ACLs from c++?

Can anyone help me to do the following from c++ without any confirmations:

cacls c:\\personal\\file.txt /d everyone
         


        
3条回答
  •  萌比男神i
    2020-12-09 07:33

    I assume you mean on a Windows system? You need to use the NTFS part of the Win32 API, which is what cacls uses. Browse through MSDN, it'll be in there somewhere. Eg SetSecurityInfo

提交回复
热议问题