Here is my new tool coded with Pelle's C , def2inc V1.0
Quote
Definition file to MASM include file converter V1.0
def2inc converts a definition file created by Iczelion's lib2def tool to MASM include files containing function prototypes. The definition files ( .icz ) are created from Pelle's import libraries.Using Iczelion's lib2def tool supported by def2inc is a simple methode to create MASM include files from MS COFF import libraries.Notice that the tool should be at the same directory where the .icz definitions files are located. def2inc accepts wildcards like *.inc
To get information about lib2def :
http://spiff.tripnet.se/~iczelion/importlib.html
http://www.vortex.masmcode.com/files/def2inc10.zip
The function RtlZeroMemory was missing from kernel32.icz , I updated this file to contain RtlZeroMemory.
Now, def2inc is redesigned to process module definition files like the following :
LIBRARY kernel32
EXPORTS
"_ActivateActCtx@8"
"_AddAtomA@4"
"_AddAtomW@4"
etc.
http://vortex.masmcode.com/files/def2inc11.zip
Version 1.2
Some functions have also an ANSI version, the new swicth -d will display duplicate symbols :
def2inc user32.def
Duplicate name in user32.def , BroadcastSystemMessage
Duplicate name in user32.def , CallMsgFilter
Duplicate name in user32.def , GetAltTabInfo
Duplicate name in user32.def , GetWindowModuleFileName
Duplicate name in user32.def , IsDialogMessage
Duplicate name in user32.def , RealGetWindowClass
Duplicate name in user32.def , TranslateAccelerator
Only the ANSI version of those functions are passed to the final include file.
http://www.vortex.masmcode.com/files/def2inc12.zip
Version 2.0
- New version coded with Pelle's C development tools V5.0
- String handling tasks moved to assembly subroutines
- No any dependency on msvcrt.dll
def2inc is already used in the GeneSys project to create include files from module definition files. This version should be faster than V1.2
http://vortex.masmcode.com/files/def2inc20.zip
Version 2.1
- New version built with Pelles C Version 6.50.8 Release Candidate 4
- Support for Jwasm
- Some minor optimizations in the source code
http://vortex.masmcode.com/files/def2inc21.zip