LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-02-2010, 12:28 AM   #1
VladVons
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
How to get under linux information about Windows EXE/DLL file


How to get under linux (without Wine) such information about Windows EXE/DLL file:
CompanyName
FileVersion
ProductVersion

Under Windows its easy:
GetFileVersionInfoSize()
GetFileVersionInfo()
etc.
 
Old 11-02-2010, 08:00 AM   #2
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Quote:
How to get under linux (without Wine) such information about Windows EXE/DLL file:
CompanyName
FileVersion
ProductVersion
Is that info NTFS meta data? If so then you won't be able to get that info on a non NTFS partition whether you are using wine or not. But maybe it's not, maybe someone else will know.
 
Old 11-04-2010, 12:36 AM   #3
VladVons
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lewisforlife View Post
Is that info NTFS meta data?
NO
This information inside EXE file.
http://en.wikipedia.org/wiki/Portable_Executable
 
Old 11-05-2010, 12:31 PM   #4
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Personally I don't think it will be possible for you to get any info about your EXE file without using wine or something similar.
 
Old 11-06-2010, 02:31 AM   #5
VladVons
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I think i should write C++ routine using Microsoft PE format
http://kishorekumar.net/pecoff_v8.1.htm

Wine is too weight for frequent call (~10 per sec)
 
Old 11-06-2010, 09:43 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,585

Rep: Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164Reputation: 2164
Have you looked at 'winedump'?
It is a WINE tool that may provide what you want.
If you are thinking of writing code, have a look at http://www.winehq.org/docs/winelib-guide/index
 
Old 11-06-2010, 02:30 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
boot windows and read those files with visual studio
all of that info will be displayed -- if it is there .
 
Old 06-16-2011, 02:18 AM   #8
fernandomerces
LQ Newbie
 
Registered: Jun 2011
Location: Brazil
Distribution: Debian Wheezy
Posts: 11

Rep: Reputation: Disabled
Look at my project called pev. You can get the version with -p option.

http://pev.sf.net

Good luck!
 
Old 06-16-2011, 07:44 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,672

Rep: Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333Reputation: 3333
I get the feeling I read a post about this a few weeks ago here, and it has a solution in linux already. Dunno where that is now.

See if this helps at all. http://www.perlmonks.org/?node_id=905425

http://code.activestate.com/recipes/...ecutable-file/


I thought this would give info too but can't says as I can't find it either. http://upx.sourceforge.net/ But a nifty tool.
 
Old 06-17-2011, 05:29 AM   #10
fernandomerces
LQ Newbie
 
Registered: Jun 2011
Location: Brazil
Distribution: Debian Wheezy
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I get the feeling I read a post about this a few weeks ago here, and it has a solution in linux already. Dunno where that is now.

See if this helps at all. http://www.perlmonks.org/?node_id=905425

http://code.activestate.com/recipes/...ecutable-file/

I thought this would give info too but can't says as I can't find it either. http://upx.sourceforge.net/ But a nifty tool.
Both Perl and Python scripts does exactly what pev does (but pev can do more). UPX is a packer, there is no way to do it.

Why can't pev be considered a solution in Linux? It's just a make && make install question.
Debian (or Debian-based distros) users can use a DEB package too http://packages.debian.org/wheezy/pev

Cheers!
 
Old 06-17-2011, 08:16 AM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187
Don't send a glass of alcoholic beverages to do a camel's job.
 
Old 06-17-2011, 08:26 AM   #12
fernandomerces
LQ Newbie
 
Registered: Jun 2011
Location: Brazil
Distribution: Debian Wheezy
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
Don't send a glass of alcoholic beverages to do a camel's job.
From a programmer's perspective, I agree with you. pev is to users that don't want to write a program to get it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make an EXE file for windows XP that does not require any DLL, and works ? frenchn00b Programming 5 07-17-2010 03:44 PM
run windows exe file in Linux? shipon_97 Linux - Newbie 5 11-24-2008 09:42 PM
How to construct a library file like DLL in windows. SameerLx Linux - Newbie 1 06-16-2007 01:10 AM
porting a windows dll into linux so file bianchi Programming 1 12-20-2005 02:58 PM
exe file linux to windows degraffenried13 Linux - General 2 04-09-2004 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration