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