Пример #1
0
 def get_process_username(self):
     """Return the name of the user that owns the process"""
     if self.pid in (0, 4):
         return 'NT AUTHORITY\\SYSTEM'
     return _psutil_mswindows.get_process_username(self.pid)
Пример #2
0
 def get_process_username(self):
     """Return the name of the user that owns the process"""
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         return 'NT AUTHORITY\\SYSTEM'
     return _psutil_mswindows.get_process_username(self.pid)
Пример #3
0
 def get_process_username(self):
     """Return the name of the user that owns the process"""
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         return "NT AUTHORITY\\SYSTEM"
     return _psutil_mswindows.get_process_username(self.pid)