コード例 #1
0
ファイル: _psmswindows.py プロジェクト: Andrel322/gecko-dev
 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)