Inheritance: SafeHandleZeroOrMinusOneIsInvalid
コード例 #1
0
ファイル: PlatformInvokes.cs プロジェクト: 40a/PowerShell
 public SECURITY_ATTRIBUTES()
 {
     this.nLength = 12;
     this.bInheritHandle = true;
     this.lpSecurityDescriptor = new SafeLocalMemHandle(IntPtr.Zero, true);
 }
コード例 #2
0
 internal static extern unsafe bool ConvertStringSecurityDescriptorToSecurityDescriptor(string StringSecurityDescriptor, int StringSDRevision, out SafeLocalMemHandle pSecurityDescriptor, IntPtr SecurityDescriptorSize);
コード例 #3
0
ファイル: PlatformInvokes.cs プロジェクト: 40a/PowerShell
 internal SecurityAttributes()
 {
     this.nLength = 12;
     this.bInheritHandle = true;
     this.lpSecurityDescriptor = new SafeLocalMemHandle(IntPtr.Zero, true);
 }
コード例 #4
0
 public static extern bool ConvertStringSecurityDescriptorToSecurityDescriptor(
     string sddlSecurityDescriptor, int sddlRevision,
     out SafeLocalMemHandle pSecurityDescriptor,
     IntPtr securityDescriptorSize);
コード例 #5
0
 internal static extern unsafe bool ConvertStringSecurityDescriptorToSecurityDescriptor(string StringSecurityDescriptor, int StringSDRevision, out SafeLocalMemHandle pSecurityDescriptor, IntPtr SecurityDescriptorSize);
コード例 #6
0
 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();
     }
 }
コード例 #7
0
 public SECURITY_ATTRIBUTES ()
 {
     lpSecurityDescriptor = new SafeLocalMemHandle();
 }