コード例 #1
0
 def get_process_create_time(self):
     # special case for kernel process PIDs; return system boot time
     if self.pid in (0, 4):
         return BOOT_TIME
     try:
         return _psutil_mswindows.get_process_create_time(self.pid)
     except OSError:
         err = sys.exc_info()[1]
         if err.errno in ACCESS_DENIED_SET:
             return _psutil_mswindows.get_process_create_time_2(self.pid)
         raise
コード例 #2
0
 def get_process_create_time(self):
     # special case for kernel process PIDs; return system boot time
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         return BOOT_TIME
     return _psutil_mswindows.get_process_create_time(self.pid)
コード例 #3
0
 def get_process_create_time(self):
     # special case for kernel process PIDs; return system boot time
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         return BOOT_TIME
     return _psutil_mswindows.get_process_create_time(self.pid)
コード例 #4
0
ファイル: _psmswindows.py プロジェクト: dksr/REMIND
 def get_process_create_time(self, pid):
     # special case for kernel process PIDs; return system uptime
     if pid in (0, 4):
         return _UPTIME
     return _psutil_mswindows.get_process_create_time(pid)