			MASM to FASM function prototype converter

					Version 1.06

			=========================================


This tool converts Masm include files to Fasm style include files. The include files to be
converted are limited with Masm function prototypes.

Usage : inc2inc -type <source file> <destination> [-e]

		-d:dynamic library - ANSI
		-D:dynamic library - UNICODE
		-s:static library

optional -e : use extrndef macro

Example:

inc2inc -d \masm32\include\kernel32.inc .

This command reads kernel32.inc from the masm32\include folder and saves the converted
include file to the current folder.

A typical conversion of a function should look like this:

Masm : 

CreateFileA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD

Fasm :

if used CreateFile
extrn '_CreateFileA@28' as CreateFile:dword
end if

inc2inc -s \masm32\include\masm32.inc C:\temp

This command reads masm32.inc and saves the converted file to the temp folder. Notice that
here, masm32.inc contains function prototypes for the static library masm32.lib

The optional -e switch is used to create include files declaring functions with the extrndef
macro:

macro extrndef decorated_name,name
{
if used name
extrn decorated_name as name : dword
end if
}

This tool is completely freeware, it can be used in any project ( even commercial ) and can be re-distributed with the only condition that this manual is accompaigned with the tool.

Include files stdcall.inc and cdecl.inc from the fasmw package are modified to support direct function calls.

Suggestions,reports for any possible bugs are always welcomed. You can contact me at:

vortex_1@hotmail.com

Vortex
						
August 2005