Jump to content

Extracting information from LIB files

From EDM2
Revision as of 03:19, 4 July 2016 by Martini (talk | contribs) (Created page with "The IBM OS/2 Warp Toolkit has several .LIB files. This is some quick tutorial on how to get information from this files. ==Using LIB.EXE== LIB.EXE is included on Microsoft Li...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The IBM OS/2 Warp Toolkit has several .LIB files. This is some quick tutorial on how to get information from this files.

Using LIB.EXE

LIB.EXE is included on Microsoft Library Manager contained in c7os2.zip.

To get some information on what os2386.lib contains you can call:

lib.exe os2386.lib,os2386.lst

It will generate the os2386.lst text file with something similar to:

DDF32BEGINLIST....DDF32BEGINLIST    DDF32BITMAP.......DDF32BITMAP
DDF32ENDLIST......DDF32ENDLIST      DDF32HYPERTEXT....DDF32HYPERTEXT
DDF32INFORM.......DDF32INFORM       DDF32INITIALIZE...DDF32INITIALIZE
DDF32LISTITEM.....DDF32LISTITEM     DDF32METAFILE.....DDF32METAFILE
DDF32PARA.........DDF32PARA         DDF32SETCOLOR.....DDF32SETCOLOR
DDF32SETFONT......DDF32SETFONT      DDF32SETFONTSTYLE..DDF32SETFONTSTYLE
DDF32SETFORMAT....DDF32SETFORMAT    DDF32SETTEXTALIGN..DDF32SETTEXTALIGN
DDF32TEXT.........DDF32TEXT         DDFBEGINLIST......DDFBEGINLIST
...

Using EMXIMP.EXE

There is also a way to get information from a lib file using emximp.exe:

emximp -o os2386.imp os2386.lib

It will generate something like:

;
; os2386.imp (created by emximp)
;
; -------- os2386.lib --------
DOSPTRACE               DOSCALLS  12 ?
DOSISETRELMAXFH         DOSCALLS 108 ?
DOSIDEVIOCTL            DOSCALLS 109 ?
DosForceDelete          DOSCALLS 110 ?
Dos32ForceDelete        DOSCALLS 110 ?
DosKillThread           DOSCALLS 111 ?
Dos32KillThread         DOSCALLS 111 ?
.....


[[Category:]]