示例#1
0
 private static extern NtStatus SamConnect(UnicodeString serverName, out IntPtr serverHandle, ServerAccessMask desiredAccess, IntPtr objectAttributes);
示例#2
0
 public SamServer(ServerAccessMask access = ServerAccessMask.SamServerEnumerateDomains | ServerAccessMask.SamServerLookupDomain)
 {
     Check(SamConnect(new UnicodeString(Name), out _handle, access, IntPtr.Zero));
 }