 |
| How to retrieve version information for the specified file |
User rating: 0/10 (0 votes) | |
|
|
 |
 |
Versions: click to open |
 |
|
 |
 |
| Before you begin: |
 |
Version information makes it easier for applications to install files properly and enables setup programs to analyze files currently installed. The version-information resource contains the version number, intended operating system, and original file name.
The FileVersionInfo class encapsulates GetFileVersionInfo API call and provides read-only access to structures VS_VERSIONINFO and VS_FIXEDFILEINFO.
Usage:

See also:
Retrieving file information for the VFP executable running
|
 |
 |
| |
| |
Members area. Log in to view this example. |
|
| |
|
|
|
|
|
 |
User rating: 0/10 (0 votes) | |
| 5819 bytes Created: 2005-02-25 15:48:07 Modified: 2009-03-27 10:03:27 Visits in 7 days: 81 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
VFP AGETFILEVERSION() Function returns similar data.
See also Version Information article on MSDN.
The presence of OleSelfRegister in the version resource means that the file (DLL or EXE) can self-register itself. The developer decides whether to add this string to the version information.
Since all information resources are enumerated in a method of the class, there is no apparent need in using the VerQueryValue API call. |
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|