You shouldn't manipulate SECURITY_DESCRIPTOR structures directly.
Rather, use the following APIs to modify the various parts of the security
descriptor:
GetSecurityDescriptorControl
GetSecurityDescriptorDacl
GetSecurityDescriptorGroup
GetSecurityDescriptorLength
GetSecurityDescriptorOwner
GetSecurityDescriptorRMControl
GetSecurityDescriptorSacl
InitializeSecurityDescriptor
IsValidSecurityDescriptor
SetSecurityDescriptorDacl
SetSecurityDescriptorGroup
SetSecurityDescriptorOwner
SetSecurityDescriptorRMControl
SetSecurityDescriptorSacl
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
sternr,
Well, there is always SetKernelObjectSecurity.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
I know how to get a process's DACL using the GetKernelObjectSecurity.
But how can I modify and update I don't know.
Any help\example would be greatly appreciated!
sternr- Hide quoted text -
- Show quoted text -
Hey,
But how do I manipulate the ACL's?
Thanks