Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetSecurityDescriptorDacl" in [All]

advapi32

.

SetSecurityDescriptorDacl(ref securityDesc, true, IntPtr.Zero, false);

.

static extern bool SetSecurityDescriptorDacl(ref SECURITY_DESCRIPTOR sd, bool daclPresent, IntPtr dacl, bool daclDefaulted);

.

<DllImportAttribute("advapi32.dll", EntryPoint:="SetSecurityDescriptorDacl")>

.

Private Shared Function SetSecurityDescriptorDacl(ByRef pSecurityDescriptor As SECURITY_DESCRIPTOR, <MarshalAsAttribute(UnmanagedType.Bool)> ByVal bDaclPresent As Boolean, <InAttribute()> ByVal pDacl As System.IntPtr, <MarshalAsAttribute(UnmanagedType.Bool)> ByVal bDaclDefaulted As Boolean) As UInteger

.

SetSecurityDescriptorDacl(ref securityDesc, true, IntPtr.Zero, false);

.
Documentation
[SetSecurityDescriptorDacl] on MSDN

Enums

.

SetSecurityDescriptorDacl

kernel32

.

        public static extern bool SetSecurityDescriptorDacl(ref SECURITY_DESCRIPTOR securityDescriptor, bool daclPresent, IntPtr dacl, bool daclDefaulted);

.

                    worked = Native.SetSecurityDescriptorDacl(ref securityDesc, true, IntPtr.Zero, false);


 
Access PInvoke.net directly from VS: