Skip to content

Instantly share code, notes, and snippets.

@constructor-igor
Created November 21, 2013 10:02
Show Gist options
  • Save constructor-igor/7578986 to your computer and use it in GitHub Desktop.
Save constructor-igor/7578986 to your computer and use it in GitHub Desktop.
Get DLL names from running process, possible?
Process[] processes = Process.GetProcesses();
foreach(Process process in processes) {
Console.WriteLine("PID: " + process.Id);
Console.WriteLine("Name: " + process.Name);
Console.WriteLine("Modules:");
foreach(ProcessModule module in process.Modules) {
Console.WriteLine(module.FileName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment