Share via


SECURITY_ATTRIBUTES Structure

Contains the security descriptor of an object and specifies whether the handle retrieved by specifying this structure is inheritable.

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'Declaration
Public Structure SECURITY_ATTRIBUTES
public struct SECURITY_ATTRIBUTES
public value class SECURITY_ATTRIBUTES
[<Sealed>]
type SECURITY_ATTRIBUTES =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The SECURITY_ATTRIBUTES type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Fields

  Name Description
Public field bInheritHandle A boolean value that specifies whether the returned handle is inherited when a new process is created. If this field is true, the new process inherits the handle.
Public field lpSecurityDescriptor A pointer to a SECURITY_DESCRIPTOR structure that controls access to the object. If the value of this member is nulla null reference (Nothing in Visual Basic), 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 nulla null reference (Nothing in Visual Basic) discretionary access control list (DACL). The default DACL in the access token of a process allows access only to the user represented by the access token.
Public field nLength The size, in bytes, of this structure. Set this value to the size of this structure.

Top

Remarks

A security descriptor contains security information that identifies the object's owner and primary group. It can also contain a DACL that controls access to the object, and a SACL that controls the logging of attempts to access the object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.OLE.Interop Namespace