[DllImport("Advapi32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.U4)] public static extern uint LsaEnumerateAccountRights( IntPtr PolicyHandle, IntPtr AccountSid, out IntPtr UserRights, out uint CountOfRights );
Microsoft documentation: Link
Last updated 1 year ago