LsaQueryCAPs function (ntlsa.h)

Returns the Central Access Policies (CAPs) for the specified IDs.

Syntax

NTSTATUS LsaQueryCAPs(
        PSID                   *CAPIDs,
  [in]  ULONG                  CAPIDCount,
  [out] PCENTRAL_ACCESS_POLICY *CAPs,
  [out] PULONG                 CAPCount
);

Parameters

CAPIDs

A pointer to a variable that contains an array of pointers to CAPIDs that identify the CAPs being queried.

[in] CAPIDCount

The number of IDs in the CAPIDs parameter.

[out] CAPs

Receives a pointer to an array of pointers to CENTRAL_ACCESS_POLICY structures representing the queried CAPs.

[out] CAPCount

The number of CENTRAL_ACCESS_POLICY structure pointers returned in the CAPs parameter.

Return value

If the function succeeds, the return value is STATUS_SUCCESS.

If the function fails, the return value is an NTSTATUS code, which can be one of the LSA Policy Function Return Values.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header ntlsa.h
Library Advapi32.lib
DLL Advapi32.dll