Added LsaOpenPolicy test for remote machine (#169)

pull/180/head
dahall 2020-09-14 10:27:58 -06:00
parent 3068a87465
commit e94d44d48a
1 changed files with 8 additions and 0 deletions

View File

@ -158,6 +158,14 @@ namespace Vanara.PInvoke.Tests
}
}
[Test]
public void LsaOpenPolicyRemoteTest()
{
var stat = LsaOpenPolicy(TestCaseSources.GetValueOrDefault("RemoteComputer"), LSA_OBJECT_ATTRIBUTES.Empty, LsaPolicyRights.POLICY_ALL_ACCESS, out var h);
Assert.That(stat, ResultIs.Successful);
h.Dispose();
}
[Test]
public void LsaOpenTrustedDomainByNameTest()
{