flat assembler
Message board for the users of flat assembler.

Index > Windows > File Permissions

Author
Thread Post new topic Reply to topic
Apolo



Joined: 18 Mar 2017
Posts: 23
Apolo 23 Mar 2017, 15:16
How set permissions in a file using SetFileSecurity API?
Post 23 Mar 2017, 15:16
View user's profile Send private message Reply with quote
Apolo



Joined: 18 Mar 2017
Posts: 23
Apolo 24 Mar 2017, 07:09
Aaarrggghhh! Mad Evil or Very Mad
Post 24 Mar 2017, 07:09
View user's profile Send private message Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 257
Trinitek 24 Mar 2017, 07:31
https://msdn.microsoft.com/en-us/library/windows/desktop/aa379577.aspx

SetFileSecurity takes an ASCIZ path to the file you want to modify, a SECURITY_INFORMATION structure, which is actually just a bitfield in a DWORD, and a SECURITY_DESCRIPTOR struct that requires you to use a set of getter and setter methods to acquire and modify as opposed to passing in a struct of your own.
Post 24 Mar 2017, 07:31
View user's profile Send private message Reply with quote
Apolo



Joined: 18 Mar 2017
Posts: 23
Apolo 24 Mar 2017, 09:19
I need to know how to declare SECURITY_DESCRIPTOR and TOKEN_USER structures in 64 bits
Post 24 Mar 2017, 09:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.