mirror of https://github.com/dahall/Vanara.git
Added LsaOpenPolicy test for remote machine (#169)
parent
3068a87465
commit
e94d44d48a
|
@ -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]
|
[Test]
|
||||||
public void LsaOpenTrustedDomainByNameTest()
|
public void LsaOpenTrustedDomainByNameTest()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue