Ejemplo n.º 1
0
 public SecurityIdentifier GetProcessSid()
 {
     using (WindowsIdentity identity = new WindowsIdentity(_server.GetProcessToken()))
     {
         return(identity.User);
     }
 }
Ejemplo n.º 2
0
 internal IntPtr GetProcessToken()
 {
     return(Server.GetProcessToken());
 }