Need some code that will check to see if a certain dll is loaded . Please help.
Need some code that will check to see if a certain dll is loaded . Please help.
can someone please point me in the right direction? What I am trying to do is if a dll is loaded when I run a certain program that it will either unload the dll or the exe using it.
thanks for any help..
There are some APIs that enumerate Processes (EnumProcesses()) ...and then the modules loaded into those processes (EnumProcessModules()).......that might work......but the machine I am on is Win98 and so does not have the PSAPI.dll that I need to link to these system calls.......
If you have WinNT and above you may want to look at this perhaps....If I can I will try and have a go tonight to see if this works....