Finding version info of a DLL
-
Hello all Is there any function to findout the version information of a DLL programatically. Pls help.. Thanks Hari.
-
Hello all Is there any function to findout the version information of a DLL programatically. Pls help.. Thanks Hari.
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.
-
Hello all Is there any function to findout the version information of a DLL programatically. Pls help.. Thanks Hari.
-
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.
Thank you very much for the replies.
-
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.
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.