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