Calling GetFileVersionInfo()

BlitzMax Forums/BlitzMax Programming/Calling GetFileVersionInfo()

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

In my app I need to get the file version of DLLs and EXEs from around the computer. I know I need to use the following API commands:

GetFileVersionInfo()
GetFileVersionInfoSize()

... and I know they are in the "version.dll" which isn't referenced in any .a files in the BlitzMax\lib. I can't work out how to call them. I've tried using LoadLibraryA() and GetProcAddress() but I think I have messed up in changing the variable types. Could someone please write some code that would get the version no. of say, "explorer.exe", just as an example.

Thanks for your help


Seb