LookupAccountSidW

[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL LookupAccountSidW(
    PCWSTR lpSystemName,
    PSID Sid,
    PWSTR Name,
    uint* cchName,
    PWSTR ReferencedDomainName,
    uint* cchReferencedDomainName,
    SID_NAME_USE* peUse);
SID_NAME_USE

Last updated