[DllImport("advapi32.dll", SetLastError=true)]
static extern bool SetSecurityDescriptorDacl(ref SECURITY_DESCRIPTOR sd, bool daclPresent, IntPtr dacl, bool daclDefaulted);
Declare Function SetSecurityDescriptorDacl Lib "advapi32.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
// Initialize the security descriptor structure
NativePipe.SECURITY_DESCRIPTOR securityDesc = new NativePipe.SECURITY_DESCRIPTOR();
NativePipe.InitializeSecurityDescriptor(out securityDesc, 1);
NativePipe.SetSecurityDescriptorDacl(ref securityDesc, true, IntPtr.Zero, false);