SECURITY_ATTRIBUTES

A Boolean value that specifies whether the returned handle is inherited when a new process is created. If this member is TRUE, the new process inherits the handle.

基本介紹

  • 中文名:SECURITY_ATTRIBUTES
  • 描述:lpSecurityDescriptor
  • n長度:The size, in bytes
  • 大小:可用SIZEOF取得
簡介,n長度,描述,操作,資格,

簡介

SECURITY_ATTRIBUTES結構包含一個對象的安全描述符,並指定檢索到指定這個結構的句柄是否是可繼承的。這個結構為很多函式創建對象時提供安全性設定。如:CreateFileCreatePipeCreateProcessRegCreateKeyEx,RegSaveKeyEx。
typedef struct _SECURITY_ATTRIBUTES {
DWORD nLength; / /結構體的大小,可用SIZEOF取得
LPVOID lpSecurityDescriptor; / /安全描述符
BOOL bInheritHandle ;/ /安全描述的對象能否被新創建的進程繼承
} SECURITY_ATTRIBUTES,* PSECURITY_ATTRIBUTES;

n長度

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

描述

lpSecurityDescriptor
A 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 discretionary access control list (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 the appropriate access, or add ACEs to the DACL that grants access to a group of users.

相關詞條

熱門詞條

聯絡我們