Utility for viewing which files/dlls are loaded by an executable image

17,724

Solution 1

use Process Monitor or Process Explorer.

Solution 2

Visual Studio does it well. Use Tools > Attach to Process, Debug > Break All. Then Debug > Windows > Modules. For VS2015+ start that with Debug > Attach to Process.

Solution 3

The command line route is ListDLLs from Sysinternals.

It can list DLLs loaded by a process, or list processes that loaded a given DLL.

Share:
17,724
GregH
Author by

GregH

Updated on July 26, 2022

Comments

  • GregH
    GregH almost 2 years

    I know there is a utility for this because I used to use it...just can't remember the name. I'm looking for a Windows (Windows-7) utility that will allow me to select an executable image running and have it tell me what files/dlls that program has loaded and from what directory. I am writing software in Visual Studio and would like to verify at runtime which dlls my program is loading.

  • GregH
    GregH about 13 years
    That's it "Process Explorer"...excellent little utility. Thanks!
  • Tomáš Zato
    Tomáš Zato over 8 years
    You forgot to say how to do it with process explorer. It shows lot of stuff, but I don't see list of DLL files anywhere.
  • Appleshell
    Appleshell over 5 years
    To see DLLs loaded by a process with PE, select View->Lower Pane View->DLLs.
  • Dominique
    Dominique over 2 years
    Keep out: in some cases, the list, provided by the mentioned tool, is incomplete.