View Single Post
Old 04-29-2020, 10:49
atom0s's Avatar
atom0s atom0s is offline
Join Date: Jan 2015
Posts: 340
Rept. Given: 25
Rept. Rcvd 110 Times in 54 Posts
Thanks Given: 49
Thanks Rcvd at 572 Times in 229 Posts
atom0s Reputation: 100-199 atom0s Reputation: 100-199
You can lookup the proper translation ids that the file offers via: VerQueryValueA/VerQueryValueW
They can be requested via the following lookup property: \\VarFileInfo\\Translation

MSDN shows an example of doing that here:

This way you don't have to hardcode it to English only, or guess. Using GetACP won't guarantee a valid number either, as that is specific to the system and not the file.
Personal Projects Site:
Reply With Quote
The Following User Says Thank You to atom0s For This Useful Post:
phroyt (04-29-2020)