Find which dlls are being called by an exe

  • Thread starter Thread starter Abhishek
  • Start date Start date
A

Abhishek

Is there a method of finding out which dll's are being used by an exe

if yes how?

regards
Abhi
 
Is there a method of finding out which dll's are being used by an exe

if yes how?

If this is a native exe, use depends.exe (www.dependencywalker.com). If
this is a .NET exe, use .NET Reflector.

In both cases, these tools will enumerate only static dependencies, and
not DLLs which are dynamically loaded by the exe (throug LoadLibrary or
Assembly::Load*). For those, the only way is to actually run the exe
and enumerates it's DLLs while it's running (use Process Explorer from
www.sysinternals.com or a debugger)

Arnaud
MVP - VC
 
Abhishek said:
Is there a method of finding out which dll's are being used by an exe

if yes how?
use dumpbin /imports or depends.exe
Either of them will find out what you want to know.
 
Thanks Arnaud & Jonathan

If this is a native exe, use depends.exe (www.dependencywalker.com). If
this is a .NET exe, use .NET Reflector.

In both cases, these tools will enumerate only static dependencies, and
not DLLs which are dynamically loaded by the exe (throug LoadLibrary or
Assembly::Load*). For those, the only way is to actually run the exe
and enumerates it's DLLs while it's running (use Process Explorer from
www.sysinternals.com or a debugger)

Arnaud
MVP - VC
 
If this is a native exe, use depends.exe (www.dependencywalker.com). If
this is a .NET exe, use .NET Reflector.

In both cases, these tools will enumerate only static dependencies, and
not DLLs which are dynamically loaded by the exe (throug LoadLibrary or
Assembly::Load*). For those, the only way is to actually run the exe
and enumerates it's DLLs while it's running (use Process Explorer from
www.sysinternals.com or a debugger)

Dependency Walker, when run in profiling mode, will pick up all DLLs, native
and managed, static, delay-load, dynamic, via COM registration, and
injection.
 
Back
Top