Andrew Dunstan wrote:
>
> As I understand it, Windows has a standard set of DLL/EXE metadata
> (build number, copyright, product name yadda yadda yadda) stored in some
> well-known segment of the file. Is there any reason we can't put the
> version number somewhere in there and use some standard API to extract
> it, rather than running the .exe to make it tell us? (Not that I have
> any idea how to do such a thing.)
It's the VERSION resource, look at GetFileVersionInfo in the docs.
Regards,
Andreas