SAMPLE: VERSTAMP Accesses the File Version Information Resouce

Last reviewed: February 15, 1996
Article ID: Q92441
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SD) for Windows version 3.1

VERSTAMP 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.

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.

Download VERSTAMP.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:

  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download VERSTAMP.EXE (size: 31036 bytes) 
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the \SOFTLIB\MSLFILES directory
          Get VERSTAMP.EXE (size: 31036 bytes) 
    


Additional reference words: 3.10 Softlib VERSTAMP.EXE
KBCategory: kbprg kbfile
KBSubcategory: UsrExt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 15, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.