【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.5.3.1 SECURITY_ATTRIBUTES
Contents
Name
SECURITY_ATTRIBUTES
Description
Declaration
typedef struct _SECURITY_ATTRIBUTES { DWORD nLength; LPVOID lpSecurityDescriptor; BOOL bInheritHandle; } SECURITY_ATTRIBUTES
Members
- nLength
- Specifies the size, in bytes, of this structure. Set this value to the size of the SECURITY_ATTRIBUTES structure.
- lpSecurityDescriptor
- Pointer to a security descriptor for the object that controls the sharing of it. If NULL is specified for this member, the object is assigned the default security descriptor of the calling process. This is not the same as granting access to everyone by assigning a null DACL. The default security descriptor is based on the default DACL of the access token belonging to the calling process. By default, the default DACL in the access token of a process allows access only to the user represented by the access token. If other users must access the object, you can either create a security descriptor with a null DACL, or add ACEs to the DACL that grants access to a group of users.
- bInheritHandle
- Specifies whether the returned handle is inherited when a new process is created. If this member is TRUE, the new process inherits the handle.
Remark
The SECURITY_ATTRIBUTES structure contains the security descriptor for an object and specifies whether the handle
retrieved by specifying this structure is inheritable.
Examples
Header to Include
origin.h