home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / IMPLIST.ZIP / SAMPLE.TXT < prev    next >
Text File  |  1991-07-28  |  8KB  |  216 lines

  1.  
  2. This sample shows two executions of EXEHDR.  The first is using the normal
  3. verbose listing option.  Note that the imported function list is difficult
  4. to figure out because of cardinal numbers, such as DOSCALLS.5.
  5.  
  6. The second execution of EXEHDR is filtered thru IMPFILT to decode the
  7. cardinal numbers.  You can verify that DOSCALLS.5 is DOSEXIT.
  8.  
  9. The undocumented function DOSQPROCSTATUS  (DOSCALLS.154) is listed.  It
  10. turns out, using CodeView, that this is the system call which provides
  11. all the status information for the PSTAT command.
  12.  
  13.  
  14.  
  15.  
  16.    N O R M A L   E X E C U T I O N   O F   E X E H D R
  17.  
  18.  
  19.  
  20.  
  21. Microsoft (R) EXE File Header Utility  Version 2.01    
  22. Copyright (C) Microsoft Corp 1985-1990.  All rights reserved.
  23.  
  24. .EXE size (bytes)         3cc2
  25. Magic number:             5a4d
  26. Bytes on last page:       00c2
  27. Pages in file:            001f
  28. Relocations:              0000
  29. Paragraphs in header:     0004
  30. Extra paragraphs needed:  0000
  31. Extra paragraphs wanted:  ffff
  32. Initial stack location:   0000:00b8
  33. Word checksum:            0000
  34. Entry point:              0000:0000
  35. Relocation table address: 0040
  36. Reserved words:
  37.  0000 0000 0000 0000 0000 0000 0000 0000
  38.  0000 0000 0000 0000 0000
  39. New .EXE header address:  00000080
  40. Memory needed:            16K
  41.  
  42. Module:                   PSTAT
  43. Description:              pstat.EXE
  44. Operating system:         Microsoft/IBM OS/2
  45. Data:                     NONSHARED
  46. Initial CS:IP:            seg   1 offset 128e
  47. Initial SS:SP:            seg   3 offset 0000
  48. Extra stack allocation:   2000 bytes
  49. DGROUP:                   seg   3
  50. Linker version:           5.05
  51. 32-bit Checksum:          60fd39df
  52. Segment Table:            000000c0 length 0018 (24)
  53. Resource Table:           000000d8 length 0000 (0)
  54. Resident Names Table:     000000d8 length 0009 (9)
  55. Module Reference Table:   000000e1 length 000a (10)
  56. Imported Names Table:     000000eb length 0024 (36)
  57. Entry Table:              0000010f length 0002 (2)
  58. Non-resident Names Table: 00000111 length 000d (13)
  59. Movable entry points:     0
  60. Segment sector size:      16
  61. Heap allocation:          2000 bytes
  62. Application type:         WINDOWCOMPAT
  63.  
  64. no. type address  file  mem   flags
  65.   1 CODE 00000120 0363b 0363c EXECUTEREAD, LOADONCALL, NONCONFORMING, NOIOPL,
  66.                               relocs, (fixed), (nondiscardable), (nonshared)
  67.   2 CODE 00003850 0002a 0002c EXECUTEREAD, LOADONCALL, NONCONFORMING, NOIOPL,
  68.                               relocs, (fixed), (nondiscardable), (nonshared)
  69.   3 DATA 00003890 00428 01ce0 READWRITE, NONSHARED, LOADONCALL, NOEXPANDDOWN,
  70.                               NOIOPL, relocs, iterated, (fixed),
  71.                               (nondiscardable)
  72.  
  73.  
  74.   1 type   offset target
  75.     BASE    31fd  seg   2 offset 0000
  76.     BASE    16ae  seg   3 offset 0000
  77.     PTR     1442  imp DOSCALLS.5
  78.     PTR     2d7f  imp MSG.1
  79.     PTR     30e2  imp DOSCALLS.137
  80.     PTR     317f  imp DOSCALLS.138
  81.     PTR     11f3  imp VIOCALLS.7
  82.     PTR     0317  imp DOSCALLS.154
  83.     PTR     35b3  imp KBDCALLS.4
  84.     PTR     32e4  imp NLS.1
  85.     PTR     2cc8  imp DOSCALLS.34
  86.     PTR     3588  imp KBDCALLS.10
  87.     PTR     35c4  imp KBDCALLS.11
  88.     PTR     35fd  imp VIOCALLS.19
  89.     PTR     3243  imp NLS.4
  90.     PTR     118a  imp VIOCALLS.21
  91.     PTR     306e  imp KBDCALLS.13
  92.     PTR     11b0  imp VIOCALLS.22
  93.     PTR     2fe8  imp DOSCALLS.38
  94.     PTR     2d09  imp DOSCALLS.39
  95.     PTR     11d1  imp VIOCALLS.24
  96.     PTR     3476  imp KBDCALLS.22
  97.     PTR     2d46  imp DOSCALLS.49
  98.     PTR     2398  imp DOSCALLS.58
  99.     PTR     141d  imp DOSCALLS.59
  100.     PTR     292b  imp DOSCALLS.72
  101.     PTR     304b  imp DOSCALLS.77
  102.     PTR     13ac  imp DOSCALLS.89
  103.     PTR     2c5b  imp DOSCALLS.92
  104.   29 relocations
  105.  
  106.   2 type   offset target
  107.     PTR     0025  imp MSG.2
  108.    1 relocations
  109.  
  110.   3 type   offset target
  111.     BASE    019a  seg   3 offset 0000
  112.    1 relocations
  113.  
  114.  
  115.  
  116.  
  117.    E X E H D R   O U T P U T   F I L T E R E D   B Y   I M P F I L T
  118.  
  119.  
  120.  
  121.  
  122.  
  123. Microsoft (R) EXE File Header Utility  Version 2.01    
  124. Copyright (C) Microsoft Corp 1985-1990.  All rights reserved.
  125.  
  126. .EXE size (bytes)         3cc2
  127. Magic number:             5a4d
  128. Bytes on last page:       00c2
  129. Pages in file:            001f
  130. Relocations:              0000
  131. Paragraphs in header:     0004
  132. Extra paragraphs needed:  0000
  133. Extra paragraphs wanted:  ffff
  134. Initial stack location:   0000:00b8
  135. Word checksum:            0000
  136. Entry point:              0000:0000
  137. Relocation table address: 0040
  138. Reserved words:
  139.  0000 0000 0000 0000 0000 0000 0000 0000
  140.  0000 0000 0000 0000 0000
  141. New .EXE header address:  00000080
  142. Memory needed:            16K
  143.  
  144. Module:                   PSTAT
  145. Description:              pstat.EXE
  146. Operating system:         Microsoft/IBM OS/2
  147. Data:                     NONSHARED
  148. Initial CS:IP:            seg   1 offset 128e
  149. Initial SS:SP:            seg   3 offset 0000
  150. Extra stack allocation:   2000 bytes
  151. DGROUP:                   seg   3
  152. Linker version:           5.05
  153. 32-bit Checksum:          60fd39df
  154. Segment Table:            000000c0 length 0018 (24)
  155. Resource Table:           000000d8 length 0000 (0)
  156. Resident Names Table:     000000d8 length 0009 (9)
  157. Module Reference Table:   000000e1 length 000a (10)
  158. Imported Names Table:     000000eb length 0024 (36)
  159. Entry Table:              0000010f length 0002 (2)
  160. Non-resident Names Table: 00000111 length 000d (13)
  161. Movable entry points:     0
  162. Segment sector size:      16
  163. Heap allocation:          2000 bytes
  164. Application type:         WINDOWCOMPAT
  165.  
  166. no. type address  file  mem   flags
  167.   1 CODE 00000120 0363b 0363c EXECUTEREAD, LOADONCALL, NONCONFORMING, NOIOPL,
  168.                               relocs, (fixed), (nondiscardable), (nonshared)
  169.   2 CODE 00003850 0002a 0002c EXECUTEREAD, LOADONCALL, NONCONFORMING, NOIOPL,
  170.                               relocs, (fixed), (nondiscardable), (nonshared)
  171.   3 DATA 00003890 00428 01ce0 READWRITE, NONSHARED, LOADONCALL, NOEXPANDDOWN,
  172.                               NOIOPL, relocs, iterated, (fixed),
  173.                               (nondiscardable)
  174.  
  175.  
  176.   1 type   offset target
  177.     BASE    31fd  seg   2 offset 0000
  178.     BASE    16ae  seg   3 offset 0000
  179.     PTR     1442  imp DOSCALLS.5        DOSEXIT
  180.     PTR     2d7f  imp MSG.1             DOSPUTMESSAGE
  181.     PTR     30e2  imp DOSCALLS.137      DOSREAD
  182.     PTR     317f  imp DOSCALLS.138      DOSWRITE
  183.     PTR     11f3  imp VIOCALLS.7        VIOSCROLLUP
  184.     PTR     0317  imp DOSCALLS.154      DOSQPROCSTATUS
  185.     PTR     35b3  imp KBDCALLS.4        KBDCHARIN
  186.     PTR     32e4  imp NLS.1             DOSCASEMAP
  187.     PTR     2cc8  imp DOSCALLS.34       DOSALLOCSEG
  188.     PTR     3588  imp KBDCALLS.10       KBDGETSTATUS
  189.     PTR     35c4  imp KBDCALLS.11       KBDSETSTATUS
  190.     PTR     35fd  imp VIOCALLS.19       VIOWRTTTY
  191.     PTR     3243  imp NLS.4             DOSGETDBCSEV
  192.     PTR     118a  imp VIOCALLS.21       VIOGETMODE
  193.     PTR     306e  imp KBDCALLS.13       KBDFLUSHBUFFER
  194.     PTR     11b0  imp VIOCALLS.22       VIOSETMODE
  195.     PTR     2fe8  imp DOSCALLS.38       DOSREALLOCSEG
  196.     PTR     2d09  imp DOSCALLS.39       DOSFREESEG
  197.     PTR     11d1  imp VIOCALLS.24       VIOREADCELLSTR
  198.     PTR     3476  imp KBDCALLS.22       KBDPEEK
  199.     PTR     2d46  imp DOSCALLS.49       DOSGETMACHINEMODE
  200.     PTR     2398  imp DOSCALLS.58       DOSCHGFILEPTR
  201.     PTR     141d  imp DOSCALLS.59       DOSCLOSE
  202.     PTR     292b  imp DOSCALLS.72       DOSQCURDISK
  203.     PTR     304b  imp DOSCALLS.77       DOSQHANDTYPE
  204.     PTR     13ac  imp DOSCALLS.89       DOSSETVEC
  205.     PTR     2c5b  imp DOSCALLS.92       DOSGETVERSION
  206.   29 relocations
  207.  
  208.   2 type   offset target
  209.     PTR     0025  imp MSG.2             DOSTRUEGETMESSAGE
  210.    1 relocations
  211.  
  212.   3 type   offset target
  213.     BASE    019a  seg   3 offset 0000
  214.    1 relocations
  215.  
  216.