请教:windows XP中的结构SECURITY_DESCRIPTOR

请问:windows XP中的结构SECURITY_DESCRIPTOR
我看安全方面时,有说到SECURITY_DESCRIPTOR,
MSDN上只有说该结构的成员,连数据类型、大小都没有,
我还想知道该怎么用,不知道哪里可以获得这方面的
详细资料?


------解决方案--------------------
看了一下,这个跟EnterCriticalSection的参数CRITICAL_SECTION类似,都是用来当作句柄那样操作的,所以不需要你知道这个结构体的结构,你也不用管这个结构体,你只要利用这个结构体变更进行其它的操作
------解决方案--------------------
看看这个帖子
http://topic.****.net/t/20060314/23/4614692.html
------解决方案--------------------
SECURITY_DESCRIPTOR
The SECURITY_DESCRIPTOR structure contains the security information associated with an object. Drivers use this structure to set and query an object's security status.

Because the internal format of a security descriptor can vary, drivers are not to modify the SECURITY_DESCRIPTOR structure directly. For creating and manipulating a security descriptor, use the functions listed in the See Also section.

typedef struct _SECURITY_DESCRIPTOR {
UCHAR Revision;
UCHAR Sbz1;
SECURITY_DESCRIPTOR_CONTROL Control;
PSID Owner;
PSID Group;
PACL Sacl;
PACL Dacl;
} SECURITY_DESCRIPTOR, *PISECURITY_DESCRIPTOR;
Remarks
A security descriptor includes information that specifies the following components of an object's security:

An owner (SID)

A primary group (SID)

A discretionary ACL (DACL)

A system ACL (SACL)

Qualifiers for the preceding items

Requirements
Header

Ntifs.h (include Ntifs.h)

------解决方案--------------------
SECURITY_ATTRIBUTES

  The SECURITY_ATTRIBUTES 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, CreatePipe, CreateProcess, RegCreateKeyEx, or RegSaveKeyEx.
  typedef struct _SECURITY_ATTRIBUTES {
  DWORD nLength; //结构体大小,可用sizeof取得
  LPVOID lpSecurityDescriptor; //安全描述符
  BOOL bInheritHandle;//安全描述的对象能否被新创建的进程继承
  } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES;
=========================================
The SECURITY_DESCRIPTOR structure contains the security information associated with an object. Drivers use this structure to set and query an object's security status.

The SECURITY_ATTRIBUTES This structure provides security settings for objects created by various functions, such as CreateFile, CreatePipe, CreateProcess, RegCreateKeyEx, or RegSaveKeyEx.