Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
SECURITY_ATTRIBUTES (Structures)
.
C# Definition:
[StructLayout(LayoutKind.Sequential)]
public struct SECURITY_ATTRIBUTES
public class SECURITY_ATTRIBUTES
{
public int nLength;
public unsafe byte* lpSecurityDescriptor;
public int bInheritHandle;
}
C# Definition:
[StructLayout(LayoutKind.Sequential)]
public struct SECURITY_ATTRIBUTES
{
public int nLength;
public IntPtr lpSecurityDescriptor;
public int bInheritHandle;
}
VB Definition:
<StructLayout(LayoutKind.Sequential)> _
Structure SECURITY_ATTRIBUTES
Public nLength As Integer
Public lpSecurityDescriptor As IntPtr
Public bInheritHandle As Integer
End Structure
User-Defined Field Types:
None.
Notes:
None.
Sample Code - C# - sivakumar.keerthi
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Security.AccessControl;
namespace WindowsApplication1
{
[StructLayout(LayoutKind.Sequential)]
public struct SECURITY_ATTRIBUTES
{
public int nLength;
public IntPtr lpSecurityDescriptor;
public int bInheritHandle;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(528, 266);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
The [SECURITY_ATTRIBUTES] structure contains the security descriptor for an object and specifies whether the handle retrieved by specifying this structure is inheritable. This structure provides security settings for objects created by various functions, such as Kernel32.CreateFile, Kernel32.CreatePipe, Kernel32.CreateProcess, or Advapi32.RegCreateKeyEx.
7/15/2010 5:39:54 AM - -67.168.202.202
The CreateFile API
11/22/2021 7:37:27 PM - RomanRII-98.208.78.243
The CreatePipe API
10/11/2016 6:35:29 AM - -80.187.96.158
Creates a new process and its primary thread.
4/6/2022 1:03:48 PM - -83.249.236.115
Create or open a registry key
5/9/2023 6:05:42 PM - -129.146.50.98
The CreateFile API
11/22/2021 7:37:27 PM - RomanRII-98.208.78.243
The CreatePipe API
10/11/2016 6:35:29 AM - -80.187.96.158
Creates a new process and its primary thread.
4/6/2022 1:03:48 PM - -83.249.236.115
Create or open a registry key
5/9/2023 6:05:42 PM - -129.146.50.98
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
alternate definitions?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.