Is there a way I can get a list of all open applications and a list of all open files? For the files I only need the files that I opened (documents etc) not OS s open system files. The same for the applications (only browsers, document processors etc).
I already tried various functions from the Windows API like EnumWindows but I couldn t get what I wanted.
An example of what my ultimate goal would be, is to have lists like this:
Applications
Microsoft Word, Notepad, Mozilla Firefox
Files
foo.txt, foo.mp3, foo.doc
What I need is just the names, I don t need handles etc (even though I m sure I ll have to use them to get what I want)