flat assembler
Message board for the users of flat assembler.

Index > Windows > Converting C headers to include files used by FASM

Author
Thread Post new topic Reply to topic
technocrat_



Joined: 25 Jun 2008
Posts: 1
technocrat_
Hi,

I'd like to create object files with FASM which are going to be used in a driver. I need plenty of constants and structures from various C header files from the Windows DDK. So my question is: Is there any tool like h2inc or h2incx which can convert .h into (FASM) .inc? I'd assume that there might be such a tool, because I doubt that the windows include files, which are part of the fasm install package, were created by hand.
Post 25 Jun 2008, 22:32
View user's profile Send private message Reply with quote
kandamun



Joined: 20 Jul 2005
Posts: 25
kandamun
Try http://board.flatassembler.net/topic.php?t=5150
although I've never used it.
Post 26 Jun 2008, 04:13
View user's profile Send private message ICQ Number Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2914
Location: [RSP+8*5]
bitRAKE
Japheth has a tool as well: http://www.japheth.de/h2incX.html

Personally, I use search and replace combined with vertical selection - gets most of the work done. Also, I break the files into smaller pieces based on interfaces/controls. I'm not real fond of massive blobs of code. Much is missing from the FASM includes and smaller pieces make incremental changes easier, imho. When I forget an interface I can freshen up my memory all in one place by reading the include file.

_________________
¯\(°_o)/¯ unlicense.org
Post 26 Jun 2008, 22:07
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.

Powered by rwasa.