![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
I am trying to extract informations from .exe and .dll files. It works fine, but for some files VerQueryValue function (API) gets the wrong value of language identifier, so I can't extract file description. E.g. for POWERPNT.EXE it gets 0 instead of 1033 (en-us). Is there a chance that language identifier isn't specified in .exe file? How can I get file description in that case? Can anyone tell me what might be the problem and what should I do?
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Could you post the code?
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#3 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I seem to recall we discussed this some.
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#4 |
|
Programmer
|
Thanks, but I am aware of all those things. Still, I know that I can get file description out even if there is no language identifier specified inside the file. First time I call VerQueryValue to get language and code page identifiers, so I could, get file description the second time I call the function, using those values. I have a programme that succedes in getting all of those informations out, so it can be done. I just don't know what to do. Should I go through all language identifiers until I get non-zero value for file description. That doesn't seem like very good solution, but it could work. Help?
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|