Group: Security - Library: advapi32
Accessing LSA Policy object (Local Security Authority)
NTSTATUS LsaLookupSids(
LSA_HANDLE PolicyHandle,
ULONG Count,
PSID* Sids,
PLSA_REFERENCED_DOMAIN_LIST* ReferencedDomains,
PLSA_TRANSLATED_NAME* Names
);
DECLARE INTEGER LsaLookupSids IN advapi32;
INTEGER PolicyHandle,;
INTEGER nCount,;
INTEGER Sids,;
INTEGER @ ReferencedDomains,;
INTEGER @ Names
PolicyHandle [in] Handle to a Policy object. This handle must have the POLICY_LOOKUP_NAMES access right.
Count [in] Specifies the number of SIDs in the Sids array.
Sids [in] Pointer to an array of SID pointers to look up.
ReferencedDomains [out] Receives a pointer to an LSA_REFERENCED_DOMAIN_LIST structure.
Names [out] Receives a pointer to an array of LSA_TRANSLATED_NAME structures.
If the function succeeds, the return value is a NTSTATUS value.