Gets the caption of the main window of the process.
- p (Process)
- The Process
The process's main window title.
A process has a main window associated with it only if the process has a graphical interface.
If the associated process does not have a main window (so that MainWindowHandle is zero), MainWindowTitle is an empty string ("").