public LsaNamesResult LookupNames2(string name, LsaLookupNamesFlags flags = LsaLookupNamesFlags.None) { using (var lsaString = new LsaUnicodeString(name)) { var names = new[] { lsaString }; LsaReferencedDomainsHandle referencedDomainsHandle = null; LsaTranslatedSidHandle translatedSidHandle = null; LsaChecked(() => NativeMethods.LsaLookupNames2(this, flags, 1, names, out referencedDomainsHandle, out translatedSidHandle)); return(new LsaNamesResult(referencedDomainsHandle, translatedSidHandle)); } }
internal static extern LsaStatus LsaLookupNames2(LsaPolicyHandle policyHandle, LsaLookupNamesFlags flags, uint count, LsaUnicodeString[] names, out LsaReferencedDomainsHandle referencedReferencedDomains, out LsaTranslatedSidHandle translatedSid);
public LsaNamesResult(LsaReferencedDomainsHandle referencedDomainsHandle, LsaTranslatedSidHandle translatedSidHandle) { ReferencedDomainsHandle = referencedDomainsHandle; TranslatedSidHandle = translatedSidHandle; }