I'm trying to get a simple list of all the dll's currently attached to all the processes currently running.
Right now, I'm using psapi and toolhelp api. Both of these API's require you first enumerate the processes and pass the process ids one at a time to gain a list of dlls (modules) accociated with each respective process. This is dandy and works well. The problem is that it doesn't work fast. It's a bloody pig! Many of the loaded modules are duplicated accross all the processes (system APIs, hooks, etc). I'm wasting many extra cycles reading this redundant junk.
Is there some API or helper dll jiggy to get all the modules attached to all the processes without any duplicates (in a timely manor)?
Thanks in advance,