list of applications not a list of processes

  • Thread starter Thread starter Ramona
  • Start date Start date
R

Ramona

Hello to all,
I tried to find out which applications are running but get only the
running processes.

Dim p As Process
For Each p In Process.GetProcesses
Debug.WriteLine(p.ProcessName)
Next

Have anyone a good idea how to get the application name?
Many thanks for your help.
Ramona
 
This might be what you want

"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 ("").
If you have just started a process and want to use its main window title,
consider using the WaitForInputIdle method to allow the process to finish
starting, ensuring that the main window handle has been created. Otherwise,
the system throws an exception."

p.MainWindowHandle <> 0
 
Back
Top