Inheritance: SafeHandleZeroOrMinusOneIsInvalid
Exemple #1
0
 public SECURITY_ATTRIBUTES()
 {
     this.nLength = 12;
     this.bInheritHandle = true;
     this.lpSecurityDescriptor = new SafeLocalMemHandle(IntPtr.Zero, true);
 }
 internal static extern unsafe bool ConvertStringSecurityDescriptorToSecurityDescriptor(string StringSecurityDescriptor, int StringSDRevision, out SafeLocalMemHandle pSecurityDescriptor, IntPtr SecurityDescriptorSize);
Exemple #3
0
 internal SecurityAttributes()
 {
     this.nLength = 12;
     this.bInheritHandle = true;
     this.lpSecurityDescriptor = new SafeLocalMemHandle(IntPtr.Zero, true);
 }
 public static extern bool ConvertStringSecurityDescriptorToSecurityDescriptor(
     string sddlSecurityDescriptor, int sddlRevision,
     out SafeLocalMemHandle pSecurityDescriptor,
     IntPtr securityDescriptorSize);
 internal static extern unsafe bool ConvertStringSecurityDescriptorToSecurityDescriptor(string StringSecurityDescriptor, int StringSDRevision, out SafeLocalMemHandle pSecurityDescriptor, IntPtr SecurityDescriptorSize);
 public void Release()
 {
     if (lpSecurityDescriptor != null)
     {
         lpSecurityDescriptor.Dispose();
         
         // we do not set the handle to null because .Net marshaling will throw an exception if we pinvoke with a structure containing a null SafeHandle field
         lpSecurityDescriptor = new SafeLocalMemHandle();
     }
 }
 public SECURITY_ATTRIBUTES ()
 {
     lpSecurityDescriptor = new SafeLocalMemHandle();
 }