Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Finding version info of a DLL

Finding version info of a DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncement
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haritadala
    wrote on last edited by
    #1

    Hello all Is there any function to findout the version information of a DLL programatically. Pls help.. Thanks Hari.

    T A 2 Replies Last reply
    0
    • H haritadala

      Hello all Is there any function to findout the version information of a DLL programatically. Pls help.. Thanks Hari.

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      No (well, not one simple one). Take a look at this. Should give you enough information to get started. http://www.codeproject.com/file/VersionInfo.asp?target=version%7Cinfo[^] Tim Smith I'm going to patent thought. I have yet to see any prior art.

      1 Reply Last reply
      0
      • H haritadala

        Hello all Is there any function to findout the version information of a DLL programatically. Pls help.. Thanks Hari.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        There sure is. The function is defined in <shlwapi.h> which is part of the Platform SDK.

        HRESULT CALLBACK DllGetVersion(DLLVERSIONINFO *pdvi);
        

        Hope this helps.

        H T 2 Replies Last reply
        0
        • A Anonymous

          There sure is. The function is defined in <shlwapi.h> which is part of the Platform SDK.

          HRESULT CALLBACK DllGetVersion(DLLVERSIONINFO *pdvi);
          

          Hope this helps.

          H Offline
          H Offline
          haritadala
          wrote on last edited by
          #4

          Thank you very much for the replies.

          1 Reply Last reply
          0
          • A Anonymous

            There sure is. The function is defined in <shlwapi.h> which is part of the Platform SDK.

            HRESULT CALLBACK DllGetVersion(DLLVERSIONINFO *pdvi);
            

            Hope this helps.

            T Offline
            T Offline
            Tim Smith
            wrote on last edited by
            #5

            This is not an API routine, it is a routine that must be implemented by the DLL. MSDN: This function is not an API. It is exported by name from each DLL that implements it. Currently, most of the Windows Shell and common controls DLLs implement DllGetVersion. These include, but are not limited to, Shell32.dll, Comctl32.dll, Shdocvw.dll, and Shlwapi.dll. It will not work on all DLLs. Tim Smith I'm going to patent thought. I have yet to see any prior art.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups