Exemplo n.º 1
0
 /// <summary>
 /// Get a new logon session SID.
 /// </summary>
 /// <returns>The new logon session SID.</returns>
 public static Sid GetLogonSessionSid()
 {
     return(GetLogonSessionSid(NtSystemInfo.AllocateLocallyUniqueId()));
 }
Exemplo n.º 2
0
 public TokenSource(string source)
     : this(source, NtSystemInfo.AllocateLocallyUniqueId(false).GetResultOrDefault())
 {
 }