Compartilhar via


SECURITY_ATTRIBUTES Struct

Definition

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

public value class SECURITY_ATTRIBUTES
struct SECURITY_ATTRIBUTES
[System.Runtime.InteropServices.ComConversionLoss]
public struct SECURITY_ATTRIBUTES
[<System.Runtime.InteropServices.ComConversionLoss>]
type SECURITY_ATTRIBUTES = struct
Public Structure SECURITY_ATTRIBUTES
Inheritance
SECURITY_ATTRIBUTES
Attributes

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.

Fields

bInheritHandle

Determines whether the returned handle is inherited when a new process is created. If this field is set to a non-zero value, the new process inherits the handle. If it is 0, the new process does not inherit the handle.

lpSecurityDescriptor

A pointer to a SECURITY_DESCRIPTOR structure that controls access to the object. If the value of this member is null, 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). The default DACL in the access token of a process allows access only to the user represented by the access token.

nLength

The size, in bytes, of this structure. Set this value to the size of this structure.

Applies to