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