Answer the question
In order to leave comments, you need to log in
How to get all dlls of a c# process?
The bottom line is that Process.modules returns an error, access denied
I need to get a list of all dlls related to the process
Answer the question
In order to leave comments, you need to log in
Then you need to switch to native methods.
[DllImport("psapi.dll", CallingConvention = CallingConvention.StdCall, SetLastError = true)]
public static extern int EnumProcessModulesEx(SafeProcessHandle handle, IntPtr modules, uint size, ref int needed, int dwFilterFlags);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question