How do I find out which dlls an executable will load?

前端 未结 9 1387
后悔当初
后悔当初 2020-11-27 03:10

If I have a Windows executable, how can I find out which dlls it will load?

I\'m just talking about which ones that will be loaded statically, not ones it might load

相关标签:
9条回答
  • dumpbin is a tool that comes with VC++.

    To see what DLLs a program will import:

    • Open Visual Studio
    • Menu Item Tools | Visual Studio Command prompt
    • cd to folder containing executable
    • dumpbin /dependents whatever.exe
    Dump of file whatever.exe
    
    File Type: EXECUTABLE IMAGE
    
      Image has the following dependencies:
    
        AIOUSB.DLL
        sqlite3.dll
        wxmsw293u_core_vc_custom.dll
        wxbase293u_vc_custom.dll
        KERNEL32.dll
        ole32.dll
        OLEAUT32.dll
        MSVCP90.dll
        MSVCR90.dll
    

    To see what functions (and DLLs) it will import, use

    C:\> dumpbin /imports whatever.exe
    
    0 讨论(0)
  • 2020-11-27 03:24

    Open the command prompt and then type below command

    tasklist /m /fi "imagename eq netbeans.exe"

    Type instead netbeans.exe whatever name your exe file name.

    0 讨论(0)
  • 2020-11-27 03:24

    Just go to the command prompt and type tasklist /m, you will see the list of dll files used by specific program.

    0 讨论(0)
  • 2020-11-27 03:25

    Dependency Walker can help you determine which .dll will be loaded.

    0 讨论(0)
  • 2020-11-27 03:25

    progfr is simple and useful: [http://members.fortunecity.com/michaelmoser/tip11.htm]

    0 讨论(0)
  • 2020-11-27 03:26

    Process Explorer Comes with SysInternals Suite https://docs.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite

    Benefits: allows to explore the process that is already running (I have not found a was to attach the dependency walker to the existing process)

    0 讨论(0)
提交回复
热议问题