SecurityAttributes 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 CreateFile(String, FileAccessRights, FileShare, IntPtr, FileMode, CreateFileFlags, IntPtr), CreatePipe, CreateProcess(String, StringBuilder, SecurityAttributes, SecurityAttributes, Boolean, CreateProcessFlags, IntPtr, String, ProcessStartupInfo, ProcessInformation), RegCreateKeyEx, or RegSaveKeyEx.

Definition

Namespace: DevCase.Win32.Structures
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public struct SecurityAttributes
Inheritance
Object    ValueType    SecurityAttributes

Remarks

Constructors

SecurityAttributes Initializes a new instance of the SecurityAttributes structure.

Methods

Equals Indicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetHashCode Returns the hash code for this instance.
(Inherited from ValueType)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns the fully qualified type name of this instance.
(Inherited from ValueType)

Fields

InheritHandle A value that specifies whether the returned handle is inherited when a new process is created.

If this member is , the new process inherits the handle.

SecurityDescriptor A pointer to a SECURITY_DESCRIPTOR structure that controls access to the object.

If the value of this member is Zero, the object is assigned the default security descriptor associated with the access token of the calling process.

This is not the same as granting access to everyone by assigning a NULL discretionary access control list (DACL).

By default, the default DACL in the access token of a process allows access only to the user represented by the access token.

SizeOfStruct The size of this structure, In bytes.

Set this member to Marshal.SizeOf(Of SecurityAttributes) before calling any function.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also