22.214.171.124.41 ApiGetKeySecurity (Opnum 40)
The server SHOULD accept an ApiGetKeySecurity request if its protocol server state is read-only, and the server MUST accept the request for processing if it is in the read/write state, as specified in section 3.1.1.
error_status_t ApiGetKeySecurity( [in] HKEY_RPC hKey, [in] DWORD SecurityInformation, [in, out] PRPC_SECURITY_DESCRIPTOR pRpcSecurityDescriptor, [out] error_status_t* rpc_status );
SecurityInformation: A bitmask, as described in [MS-RRP] section 2.2.10, that indicates the components of the security descriptor to retrieve.
rpc_status: A 32-bit integer used to indicate success or failure. The RPC runtime MUST indicate, by writing to this parameter, whether it succeeded in executing this method on the server. The encoding of the value passed in this parameter MUST conform to encoding for comm_status and fault_status, as specified in Appendix E of [C706].
Return Values: The method MUST return the following error codes for the specified conditions.
Return value/code Description
The hKey parameter does not represent a valid HKEY_RPC context handle.
For any other condition, the server MUST set Status to a value that is not one of the values listed in the preceding table. The client MUST treat all values that are not listed in the preceding table the same, except as specified in section 126.96.36.199.