Steven K
Supporting Actor
- Joined
- Jan 10, 2000
- Messages
- 830
I've been rifling through the MSDN all day, looking for a good function to find the version number of a DLL file. I've found a few:
DllGetVersion( )
Unfortunately, this only seems to work on newer, shell DLL files (not the ones I am trying to access).
GetFileVersionInfo( ), GetFileVersion( ), then VerQueryValue( )
This one is very complicated; it involves bit-shifting and I have been running into trouble with it a little bit.
I just wanted to check with anyone with an advanced knowledge of the WinAPI to see if there exists a simpler way of checking for a DLL version number. If not, looks like Im going to have to go with option #2.
DllGetVersion( )
Unfortunately, this only seems to work on newer, shell DLL files (not the ones I am trying to access).
GetFileVersionInfo( ), GetFileVersion( ), then VerQueryValue( )
This one is very complicated; it involves bit-shifting and I have been running into trouble with it a little bit.
I just wanted to check with anyone with an advanced knowledge of the WinAPI to see if there exists a simpler way of checking for a DLL version number. If not, looks like Im going to have to go with option #2.