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
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)
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)