flat assembler
Message board for the users of flat assembler.

Index > Windows > Resource with various win32 structure definitions as inc?

Author
Thread Post new topic Reply to topic
alphis01



Joined: 05 Sep 2020
Posts: 7
alphis01
This has probably been asked before but I can't find any guidance on it so I thought I'd ask anyway.

I need to do some PE parsing in fasm and as such could really use the various PE IMAGE structure definitions somewhere in .inc files. Is there an "easy" way to convert the structures that are already defined in, say, visual studio's headers into .inc files?

Or do I need to *painfully* write them all myself for both 32 and 64bit?

Any help is appreciated! Thanks!
Post 13 Oct 2020, 00:40
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18444
Location: In your JS exploiting you and your system
revolution
The PE image structures have been posted here before. So if you can find them then you won't need to convert.

But more generally, there isn't any automated tool to do structure conversions to fasm format. So painful manual writing is the solution. Smile

Edit: Another possible route is from the MASM project. A lot of structures are included in there. The conversions are closer to fasm format, lesser painful manual converting.
Post 13 Oct 2020, 00:48
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3386
Location: vpcmipstrm
bitRAKE
There are tools that can get you most the way there ...
https://www.google.com/search?q=%22h2inc%22+conversion

_________________
¯\(°_o)/¯ unlicense.org
Post 13 Oct 2020, 03:39
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.