Пример #1
0
 def proc_path(self):
     """str: Return file path for the current process main module."""
     return Process.GetCurrentProcess().MainModule.FileName
Пример #2
0
 def proc_name(self):
     """str: Return current process name."""
     return Process.GetCurrentProcess().ProcessName
Пример #3
0
 def proc_id(self):
     """int: Return current process id."""
     return Process.GetCurrentProcess().Id
Пример #4
0
 def proc(self):
     """System.Diagnostics.Process: Return current process object."""
     return Process.GetCurrentProcess()
Пример #5
0
 def proc_screen(self):
     """``intptr``: Return handle to screen hosting current process."""
     return Forms.Screen.FromHandle(
         Process.GetCurrentProcess().MainWindowHandle)
Пример #6
0
def _get_all_processids():
    return [x.Id for x in Process.GetProcesses()]