3.1.4.3.5.2 Retrieve a Task's Security Descriptor

To retrieve a task's security descriptor, the client MUST first know the path of the task. The path of the task is determined when the client creates the task or queries the server (section 3.1.4.3.6).

Next, the client MUST invoke the SchRpcGetSecurity method with the following parameters:

  • The path of the existing task in the path parameter.

  • The type of security information desired in the securityInformation parameter. For more information on the SECURITY_INFORMATION structure, see [MS-DTYP] section 2.4.7.

  • The location of a buffer to receive the security information in the sddl parameter.

The client MUST deallocate the xmlTaskDefinition after successful execution of the method, as specified in [C706] section 5.1.1.1.