I can easily identify running processes by looping through the WMI Win32_Process
elements. Is there a similar way to identify "applications" as in Task Manager? I assume that this is comparable to knowing whether the process has an open window. For example, when you exit Outlook, the OUTLOOK.EXE
process keeps running. Task Manager no longer shows it as an application, but the process is still there. I want to be able to determine this difference from a script. I think I can handle examples in most any language.
views:
76answers:
2
A:
This looks like it does what you are asking: Running Processes/Applications
CSharpAtl
2009-10-09 20:36:47
+1
A:
It would appear that the way to do that is to enumerate all of the top-level windows.
Robert Harvey
2009-10-09 20:41:05
Is there a WMI object for that? That would definitely answer the question.
Ken Paul
2009-10-12 23:50:34
No you would use the Windows API. See http://support.microsoft.com/kb/183009
Robert Harvey
2009-10-12 23:57:30