Retrieve File Version Information Executable files, OCXs, DLLs, device drivers, and fonts can contain information about their origin, national language and code page, content, target operating system, version and more. Also, developers can code a comment, description, copyright, trademark and additional info into the executable itself. To see this info, navigate to an executable, right click on it and select properties. This sample shows how to retrieve this information.
All functionality is contained in a class module.
Simply call the GetVersionInfo method passing in the path to the file whose information you want to read. Or, you can pass in the Module name of a file that is loaded in memory. For a complete description of the individual file properties retrieved, see the class module. A variable-length section with information about translation issues, including the default code page and language. To retrieve this information the GetFileVersionInfoSize , GetFileVersionInfo , and VerQueryInfo APIs are used.