I’m seeking for a way to get DLL names from a running process, sorry if I’m poorly expressing myself though.
I need to “connect” to this process via it’s name or PID and retrieve the DLL names that it’s using if that’s possible.
Regards.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes it is possible. You can use the
Processclass. It has aModulesproperty that lists all the loaded modules.For example, to list all processes and all modules to the console:
You can of course check
Process.Idfor the PID you would like etc.For more information check out the documentation for this class:-
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx
Note: This code might get upset for certain system processes which you will not have access permission to.