SAMPLE: VerStamp.exe Accesses File Version Information Resource (92441)



The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) 3.1

This article was previously published under Q92441

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:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

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.

Modification Type:MinorLast Reviewed:8/4/2004
Keywords:kb16bitonly kbfile kbResource kbSample KB92441 kbAudDeveloper