Archive: Get File Language


Get File Language
Is it possible to get the (spoken not programming) language of an EXE or DLL file ? What I'm looking for is something similar to GetDLLVersion: to return the Language value that appears under the Version tab in the Properties dialog of an EXE or DLL file.


i think that is just the language of the version info, and a exe/dll can contain version info in many languages in one file


fine, I want to read the language of the version info. Would you happen to know how ?


See my "MoreInfo" plugin sourcecode for how to do this.

You can just also try the plugin, but it still has (for the spoken language) not a 100% score of result (e.g. if the resource in the EXE of DLL is build differently.

If you encounter a defect I'll improve the plugin for you, if you promise to retest improved version! well if that is not a good offer... ;)


I'm sorry but your Plugin gets the language of the OS. What I'm talking about is something similar to GetTransTable here (but that's delphi)


I think what onad is saying is that languages being used in programs (DLL/EXE) are specified by the OS and not the programs themselves.

-Stu


Originally posted by Afrow UK
I think what onad is saying is that languages being used in programs (DLL/EXE) are specified by the OS and not the programs themselves.

-Stu
Oh, well the program whose language I'm trying to obtain is available in different languages, and well I've tried it in several languages on my OS.

To be more exact, I included a screenshot. 0x0409 is 1033 in decimal which means English (United States). That is under the version info of a dll. What I'm aiming to is to read the 0x0409 part.

Try this out:
http://nsis.sourceforge.net/Reading_...from_DLL_files
It was only put up a few days ago, so the author is still around if you need any help.

-Stu


Well that covers String Tables not version info... two totally different types of resources


GetFileInfo plugin


Do any of these functions achieve what you are after?
CF


actually Instructor's DLL works great! Thanks for that mate... exactly what I needed :)


kookh wrote:
> I'm sorry but your Plugin gets the language of the OS.

Also, but not only! also the language of a chosen DLL/EXE see the documentation...

That's why it is called "MoreInfo" not "OSLangInfo" ;)