Reputation: 15934
What libraries and basic function calls are required in a Windows C program in order get file SID information, map the SID information to user name, and control permissions for a file, in special "Read and Execute" and "Write" permissions ?
Really hope somebody can provide the basic building blocks for these operations, since I have tried hard to find some examples, but without luck.
Upvotes: 1
Views: 769
Reputation: 1757
Windows' security model is anything but simple. As opposed to the basic Unix model of read write and execute bits for the owner group and world Windows uses access control lists. If you were looking for something as simple as chmod(2) I'm sorry it is not to be.
The functions you are looking for are
The article you need is Modifying the ACLs of an Object in C++
Upvotes: 1