(Simple!) C# Modules Question
-
Hi All, If I load a dll or exe using a pinvoke call to LoadLibrary, how do I get the handles of all of the dependent modules? I have tried to create a 'Process' object from the PID (acquired via pinvoke and the handle) but this object cannot be used apparently. So is there any way to enumerate the modules related to a handle returned by loadlibrary? Thanks in advance!
-
Hi All, If I load a dll or exe using a pinvoke call to LoadLibrary, how do I get the handles of all of the dependent modules? I have tried to create a 'Process' object from the PID (acquired via pinvoke and the handle) but this object cannot be used apparently. So is there any way to enumerate the modules related to a handle returned by loadlibrary? Thanks in advance!
Don't cross post questions: you've got this in 'Quick Answers' as well.
me, me, me "The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!" Larry Niven
-
Don't cross post questions: you've got this in 'Quick Answers' as well.
me, me, me "The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!" Larry Niven
-
Hi All, If I load a dll or exe using a pinvoke call to LoadLibrary, how do I get the handles of all of the dependent modules? I have tried to create a 'Process' object from the PID (acquired via pinvoke and the handle) but this object cannot be used apparently. So is there any way to enumerate the modules related to a handle returned by loadlibrary? Thanks in advance!
Why?
-
Hi All, If I load a dll or exe using a pinvoke call to LoadLibrary, how do I get the handles of all of the dependent modules? I have tried to create a 'Process' object from the PID (acquired via pinvoke and the handle) but this object cannot be used apparently. So is there any way to enumerate the modules related to a handle returned by loadlibrary? Thanks in advance!
I received a message asking 'Why' which I think has been deleted. The why is that I would like to present the resources from an exe or dll, but also show the resources in any modules that are loaded. So for example, if you wanted the icons in the windows picture and fax viewer, you see that the process is explorer.exe, but it doesn't contain the resources, it's the shimgvw.dll (from memory) module that contains the resources - so in some cases a recursive search would be useful.