Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The LsarQueryInformationPolicy method is invoked to query values that represent the server's information policy.
-
NTSTATUS LsarQueryInformationPolicy( [in] LSAPR_HANDLE PolicyHandle, [in] POLICY_INFORMATION_CLASS InformationClass, [out, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION* PolicyInformation );
PolicyHandle: An RPC context handle obtained from either LsarOpenPolicy or LsarOpenPolicy2.
InformationClass: A parameter that specifies what type of information the caller is requesting.
PolicyInformation: A parameter that references policy information structure on return.
Return Values: The following is a summary of the return values that an implementation MUST return, as specified by the message processing below.
-
Return value/code
Description
0x00000000
STATUS_SUCCESS
The request was successfully completed.
0xC000009A
STATUS_INSUFFICIENT_RESOURCES
There are insufficient resources to complete the request.
0xC0000022
STATUS_ACCESS_DENIED
The caller does not have the permissions to perform the operation.
0xC000000D
STATUS_INVALID_PARAMETER
One of the parameters is incorrect. For instance, this can happen if InformationClass is out of range or if PolicyInformation is NULL.
0xC0000008
STATUS_INVALID_HANDLE
PolicyHandle is not a valid handle.
Processing:
This message MUST be processed in an identical manner to LsarQueryInformationPolicy2.