
Need to determine executable file version
<Justin,
<Thanks for your response, but I don't need the version of the VB app itself;
<I want the VB app to extract the version of another program executable, the
<name of which will be specified in the VB code.
If the executable has a version resource, you can get to it
using API calls. GetFileVersionInfoSize will give you the
size of the version resource. GetFileVersionInfo will get
the resource. VerQueryValue can be used to get a pointer
to a buffer containing a VS_FIXEDFILEINFO structure. You
can then use RtlMoveMemory to copy that buffer into a
variable of type VS_FIXEDFILEINFO.
--
Paul Marshall