Hi friends,

Here is my tool converting MS COFF import libraries to MASM include files.

Tested with import libraries coming with Hutch's masm32 package and PellesC V3.00

The tool accepts wildcards like *.lib

http://vortex.masmcode.com/files/lib2inc10.zip
Posted on 2005-08-07 07:20:46 by Vortex
Hi friends,

Here is lib2inc V1.1 :

- Fixed bug with duplicate names from user32.lib  ( Many thanks Paul informing me about the bug )

The tool is able to extract fuction prototypes from static libraries. If you have the time, could you test the tool with static libs?

http://vortex.masmcode.com/files/lib2inc11.zip

Here is the include file set extracted from Pelles import libraries V 4.00 beta1 :

http://vortex.masmcode.com/files/PellesC_incV11.zip
Posted on 2005-08-14 06:43:08 by Vortex
Here is version V1.11 :

- Fixed bug : lib2inc is now able to extract function names with leading @ :


@DnsGetDomainName PROTO :DWORD
@DnsIsAMailboxType PROTO :DWORD
etc...

http://vortex.masmcode.com/files/lib2inc111.zip

http://vortex.masmcode.com/files/PellesC_inc111.zip
Posted on 2005-08-15 05:22:20 by Vortex
Here is lib2inc V1.2 translated to Poasm. Now, the tool supports both MASM and POASM

http://vortex.masmcode.com/files/lib2inc12.zip

Include file set extracted from Pelles import libraries 4.00.50

http://vortex.masmcode.com/files/PellesC_inc12.zip
Posted on 2006-01-01 08:18:09 by Vortex
Here is lib2inc V2.0 now supporting Fasm.

Usage    : lib2inc libfile.lib

Switches :

-s	 : set global calling convention to STDCALL for MASM \ POASM

  MessageBoxA PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD

-fd : output EXTERNDEFs for Fasm - direct calls
  lib2inc outputs include files enabling direct function calls

  EXTERNDEF '_MessageBoxA@16',MessageBox

-fi : output EXTERNDEFs for Fasm - indirect calls
    lib2inc outputs include files enabling indirect function calls

  EXTRNDEF '__imp__MessageBoxA@16',MessageBox


If the user does not specify any optinonal parameter then the tool emits standard MASM \ POASM include files.

http://vortex.masmcode.com/files/lib2inc20.zip
Posted on 2006-10-03 12:24:06 by Vortex