How To Retrieve Language and Code Page id Using VerQueryValue (160042)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q160042 SUMMARY
Using the VerQueryValue API, the language identifier and the character set
identifier can be retrieved from the version-information resource within a
file. You can concatenate these two identifiers to form a hexadecimal
string and pass the string to another VerQueryValue call to retrieve the
following version information: CompanyName, FileDescription, FileVersion,
InternalName, LegalCopyright, OriginalFileName, ProductName, and
ProductVersion.
This article presents a Visual Basic 4.0 32-bit sample application that
retrieves the language identifier, the character set identifier, and
the information mentioned above for the Windows system file, gdi32.dll.
This article also supplements the following Microsoft Knowledge Base
article that extracts a VS_FIXEDFILEINFO structure from a file's version-
information resource:
139491 How To Use Functions in VERSION.DLL - A 32-bit Sample App
Modification Type: | Minor | Last Reviewed: | 2/10/2005 |
---|
Keywords: | kbAPI kbhowto KB160042 |
---|
|