예제 #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(self):
     """System.Diagnostics.Process: Return current process object."""
     return Process.GetCurrentProcess()
예제 #4
0
 def proc_id(self):
     """int: Return current process id."""
     return Process.GetCurrentProcess().Id
예제 #5
0
 def proc_screen(self):
     """``intptr``: Return handle to screen hosting current process."""
     return Forms.Screen.FromHandle(
         Process.GetCurrentProcess().MainWindowHandle)