Click here to Skip to main content
13,254,373 members (66,406 online)
Click here to Skip to main content
Add your own
alternative version


73 bookmarked
Posted 8 Feb 2000

Display Loaded Modules v1.5

, 8 Feb 2000
Rate this:
Please Sign up or sign in to vote.
A Debugging Tool for Application using Multiple DLLs
  • Download demo project - 110 Kb
  • Download project source files - 134 Kb

    Sample Image - DisplayLoadedModules.jpg

    <!-- Article Starts -->

    Have you ever experienced an error while loading a DLL when you start an application? Invalid DLL version? Entry point @XXXX not found?

    If the answer is yes, then this application is for you!

    On you LAN, there may be thousands of versions of a DLL! Which version are you using? Which DLL has effectively been loaded by your application? You must check the PATH, the current working directory of your process, etc...

    This small application, called "DisplayLoadedModules", connects to a running process, gets the list of DLLs loaded by the process, and displays the following information for every DLL:

    • Module File Path (e.g. "C:\WINNT4\System32\WS2_32.dll")
    • Module Description (e.g. "Windows Socket 2.0 32-Bit DLL")
    • Module File Version (e.g. "4.00")
    • Associated Product Name (e.g. "Microsoft(R) Windows NT(TM) Operating System")
    • Associated Product Version (e.g. "4.00")
    • Module File Size (e.g. "59664 bytes")
    • Module Creation Date (e.g. "October 14, 1996 03:38:00")

    The application can also save the output to a text file. If your application runs on a machine "A" and not on a machine "B", you can compare (using 'diff' or 'windiff') the output of the program on both machines. If you're experiencing a DLL version problem, you'll figure out very easily...

    On Windows NT, the executable uses two additional DLLs/Lib: PSAPI.DLL and PDH.DLL For more on these APIs, please refer to MSDN Platform SDK:

    On Windows 98, the executable uses the ToolHelp32 library. For more on this APIs, please refer to MSDN Platform SDK:

    Note that you must select the proper WIN32 Configuration to build the executable:

    • On Windows 98: select configuration Win32 Windows 98 Debug or Win32 Windows 98 Release
    • On Windows NT: select configuration Win32 Windows NT Debug or Win32 Windows NT Release
  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    Emmanuel Kartmann
    Web Developer
    France France
    Fell into computer software at the age of 11, founder of 3 startups, and now manager of an independent software vendor (ISV) labelled proSDK ( And still a freeware writer and technical article author!

    You may also be interested in...

    Comments and Discussions

    QuestionDLL trace back! Pin
    Willian.BR3-Apr-08 8:21
    memberWillian.BR3-Apr-08 8:21 
    Generalvc++ code Pin
    jhjh jkb13-Jul-03 21:39
    memberjhjh jkb13-Jul-03 21:39 
    Generaldll messages Pin
    salah_gis18-Dec-02 4:46
    membersalah_gis18-Dec-02 4:46 
    GeneralRe: dll messages Pin
    Vitali Halershtein6-Oct-03 22:43
    memberVitali Halershtein6-Oct-03 22:43 
    GeneralLatest SDK library installed, but program still doesn't work. Pin
    WREY1-Jul-02 11:22
    memberWREY1-Jul-02 11:22 
    QuestionHow to unload.... Pin
    Fox Mulder17-Mar-02 15:38
    memberFox Mulder17-Mar-02 15:38 
    Generalvery useful tool, but small Win2000 bug Pin
    Joan29-Jun-00 0:40
    sussJoan29-Jun-00 0:40 
    GeneralDepends use only a heuristic ... Pin
    Christian Rodemeyer14-Feb-00 23:28
    sussChristian Rodemeyer14-Feb-00 23:28 
    GeneralAlternatively ... Pin
    Lee Hayward10-Feb-00 2:50
    sussLee Hayward10-Feb-00 2:50 
    GeneralRe: Alternatively ... Pin
    AlexanderK25-Sep-00 1:52
    sussAlexanderK25-Sep-00 1:52 
    GeneralRe: Alternatively ... Pin
    Firas26-May-01 13:29
    memberFiras26-May-01 13:29 
    GeneralRe: Alternatively ... Pin
    GDaniel25-Mar-02 1:13
    memberGDaniel25-Mar-02 1:13 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Terms of Use | Mobile
    Web04 | 2.8.171114.1 | Last Updated 9 Feb 2000
    Article Copyright 2000 by Emmanuel Kartmann
    Everything else Copyright © CodeProject, 1999-2017
    Layout: fixed | fluid