Determines when has this process started running. @rtype: win32.SYSTEMTIME @return: Process start time.
(self)
| 773 | # ------------------------------------------------------------------------------ |
| 774 | |
| 775 | def get_start_time(self): |
| 776 | """ |
| 777 | Determines when has this process started running. |
| 778 | |
| 779 | @rtype: win32.SYSTEMTIME |
| 780 | @return: Process start time. |
| 781 | """ |
| 782 | if win32.PROCESS_ALL_ACCESS == win32.PROCESS_ALL_ACCESS_VISTA: |
| 783 | dwAccess = win32.PROCESS_QUERY_LIMITED_INFORMATION |
| 784 | else: |
| 785 | dwAccess = win32.PROCESS_QUERY_INFORMATION |
| 786 | hProcess = self.get_handle(dwAccess) |
| 787 | CreationTime = win32.GetProcessTimes(hProcess)[0] |
| 788 | return win32.FileTimeToSystemTime(CreationTime) |
| 789 | |
| 790 | def get_exit_time(self): |
| 791 | """ |
nothing calls this directly
no test coverage detected