Horrid
Programmer
- May 20, 1999
- 373
I have been trying for the past few days to get a list of the running applications, the window title (window class would be nice) and the applications path and exe file. I have had some success with enumwindows, getting the windows processId (via GetWindowThreadProcessId) then finding the matching process with CreateToolhelp32Snapshot. The problems I have is that EmunWindows doesn't let me know what windows are applications so I end up with a huge amount of garbage (eg Default IME about 20 times) and I only get the exe name from the PROCESSENTRY32 structure.
How do I find out which windows are application windows and then get the exe from them. Or am I going in the wrong direction.
Thanks
How do I find out which windows are application windows and then get the exe from them. Or am I going in the wrong direction.
Thanks