SAMPLE: VerStamp.exe Accesses File Version Information Resource

ID: Q92441


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) 3.1


SUMMARY

VerStamp.exe demonstrates how to use the VER.DLL and VER.LIB libraries, which provide version-stamping for Microsoft(R) Windows(TM) and MS-DOS(R) executable files.


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

Verstamp.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

To select an executable, a dynamic-link library (DLL), or a driver file source and display its file version information in the main window, choose the Open command from the File menu. If the file does not have a version information resource, VERSTAMP notifies you with a message box. If the file has a version information resource, choose the More Info button in the main window to display the information. If you choose the Install File button, VERSTAMP uses the VerFindFile() function to determine where the source file should be installed. If VerFindFile() returns an error, VERSTAMP displays a message box prompting you to continue or abort. If you choose to continue, VERSTAMP proceeds with the installation, captures the result of VerInstallFile(), and displays it in a message box.

Additional query words:

Keywords : kbfile kbsample kb16bitonly kbResource kbGrpUser kbWinOS310
Version : WINDOWS:3.1
Platform : WINDOWS
Issue type :


Last Reviewed: January 18, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.