Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.33 KB

LsaLookupSids.md

File metadata and controls

63 lines (44 loc) · 1.33 KB

Home

Function name : LsaLookupSids

Group: Security - Library: advapi32


The LsaLookupSids function looks up the names that correspond to an array of SIDs.


Code examples:

Accessing LSA Policy object (Local Security Authority)

Declaration:

NTSTATUS LsaLookupSids(
  LSA_HANDLE PolicyHandle,
  ULONG Count,
  PSID* Sids,
  PLSA_REFERENCED_DOMAIN_LIST* ReferencedDomains,
  PLSA_TRANSLATED_NAME* Names
);
  

FoxPro declaration:

DECLARE INTEGER LsaLookupSids IN advapi32;
	INTEGER   PolicyHandle,;
	INTEGER   nCount,;
	INTEGER   Sids,;
	INTEGER @ ReferencedDomains,;
	INTEGER @ Names
  

Parameters:

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.


Return value:

If the function succeeds, the return value is a NTSTATUS value.