我想设置线程的SECURITY_ATTRIBUTES属性,其中的SecurityDescriptor参数设置相当复杂,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 the appropriate access, or add ACEs to the DACL that grants access to a group of users
我想把这个权限设置为所有操作,而不是allows access only to the user represented by the access token 该怎么设置?

解决方案 »

  1.   

    WINDOWS 核心编程中有详细叙述
      

  2.   

    http://search.csdn.net/Expert/topic/2328/2328148.xml?temp=.4511682
      

  3.   

    typedef struct _SECURITY_ATTRIBUTES 
    {  DWORD nLength;  
       LPVOID lpSecurityDescriptor;  
       BOOL bInheritHandle;
    } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES;
    bInheritHandle这个成员与安全无关;lpSecurityDescriptor这个成员是和安全相关的。