Partager via


2.2.3.2 RPC_SECURITY_ATTRIBUTES

The RPC_SECURITY_ATTRIBUTES structure represents security attributes that can be marshaled and unmarshaled by RPC.

The RPC_SECURITY_ATTRIBUTES is used by a client to indicate the security attributes that are assigned when creating a new cluster registry key, as specified in section 3.1.4.2.30.

 typedef struct _RPC_SECURITY_ATTRIBUTES {
   unsigned long nLength;
   RPC_SECURITY_DESCRIPTOR RpcSecurityDescriptor;
   long bInheritHandle;
 } RPC_SECURITY_ATTRIBUTES,
  *PRPC_SECURITY_ATTRIBUTES;

nLength: The length of the structure, in bytes.

RpcSecurityDescriptor: A self-relative security descriptor that can be marshaled and unmarshaled by RPC, as specified in section 2.2.3.1.

bInheritHandle: Any nonzero value if a new spawned process inherits the handle; however, because cluster registry keys are not inheritable, this field MUST be set to zero for use in ApiCreateKey (section 3.1.4.2.30).