![]() |
|
![]() |
|
|
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 gets the wrong value of language identifier, so I can't extract file description. For POWERPNT.EXE it gets 0 instead of 1033. Even property FileVersionInfo.FileDescription can't get file description. Can anyone tell me what might be the problem and what should I do?
|
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
Maybe those function are for .NET exe files only. Powerpnt.exe is a native exe.
|
|
|
|
|
|
#3 |
|
Programmer
|
No that's not the problem. Both functions work fine for other files. FileVersionInfo.FileDescription is .NET property, but VerQueryValue is WinAPI function. For POWERPNT.EXE VerQueryValue gets the correct value of code page identifier, but it gets 0 for language identifier. I believe that FileVersionInfo.FileDescription property uses VerQueryValue function. That could be the reason for not getting information out. But, windows shows file description when you right-click the file. I don't know what I should do.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|