home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / h / hookin.zip / HOOKINT.DOC < prev    next >
Text File  |  1992-12-03  |  7KB  |  155 lines

  1. Specific Uses for HOOKINT
  2. -------------------------
  3.  
  4. Intel SatisFAXtion Board
  5. ------------------------
  6.  
  7. Without the file HOOKINT.COM, DESQview users often find that they cannot 
  8. run the Intel SatisFAXtion program CASMGR.EXE in a DESQview window.
  9. Running CASMGR in a DESQview window is not usually the best way to use
  10. the SatisFAXtion board with DESQview, because it makes it difficult to
  11. do heavy multitasking while sending and receiving FAXes.  But some users
  12. choose this configuration anyway, because the SatisFAXtion programs
  13. FAX.EXE and FAXPOP.EXE, which provide SatisFAXtion's user interface,
  14. cannot be multitasked at all in DESQview with CASMGR loaded before
  15. DESQview.  To use HOOKINT to load CASMGR in a DESQview window:
  16.  
  17. 1) Load SATISFAX.SYS in the CONFIG.SYS file.
  18.  
  19. 2) Determine the hardware interrupt that the SatisFAXtion board uses for FAXes.  
  20. To do so, run the SatisFAXtion SETUP.EXE program, go to the Advanced Setup, 
  21. select Set Up Hardware, and look at the current configuration.  The currently 
  22. shipping version of the SatisFAXtion board puts the FAX on IRQ10 by default, but 
  23. offers seven different options.  Here is a list of the seven different IRQ's 
  24. that Intel lets you select from, with the corresponding INT numbers.
  25.  
  26.      IRQ            INT
  27.      ---            ---
  28.      2              A
  29.      3              B
  30.      4              C
  31.      5              D
  32.      7              F
  33.      10             72
  34.      11             73
  35.  
  36. If you determine that the FAX is using IRQ10, then 72 is the INT number that 
  37. HOOKINT.COM will use as its first parameter.
  38.  
  39. 3) Load a batch file in a DV window that contains the following lines:
  40.  
  41.      HOOKINT 72 2F
  42.      CASMGR CASMGR.CFG
  43.      FAXPOP
  44.      FAX         
  45.  
  46. If the FAX is not using IRQ10, substitute another number from the above table 
  47. instead of the 72 on the HOOKINT line.
  48.  
  49. Use a DESQview window with the following Change a Program options set:
  50.  
  51.  
  52. Program Name............: Intel SatisFAXtion
  53.  
  54. Keys to Use on Open Menu: SA                         Memory Size (in K): 480
  55. ----------------------------------------------------------------------------
  56. Program...: (name_of_your_batch_file)
  57.  
  58. Parameters:
  59.  
  60. Directory.: (name_of_SatisFAXtion_directory)
  61. ----------------------------------------------------------------------------
  62. Options:
  63.                  Writes text directly to screen.......: [Y]
  64.                  Displays graphics information........: [Y]
  65.                  Virtualize text/graphics (Y,N,T).....: [Y]
  66.                  Uses serial ports (Y,N,1,2)..........: [Y]
  67.                  Requires floppy diskette.............: [N]
  68.  
  69. System Memory (in K).......:   0   Maximum Program Memory Size (in K)..:
  70.  
  71. Script Buffer Size.......:  1000   Maximum Expanded Memory Size (in K):
  72.  
  73. Text Pages: 1  Graphics Pages: 1   Initial Mode:        Interrupts: 00 to FF
  74. ----------------------------------------------------------------------------
  75. Window Position:
  76.    Maximum Height:  25       Starting Height:           Starting Row...:
  77.    Maximum Width.:  80       Starting Width.:           Starting Column:
  78. ----------------------------------------------------------------------------
  79.                                Shared Program
  80. Pathname..:
  81. Data......:
  82. ----------------------------------------------------------------------------
  83. Close on exit (Y,N,blank)......: [ ]  Uses its own colors..............: [Y]
  84. Allow Close Window command.....: [N]  Runs in background (Y,N,blank)...: [ ]
  85. Uses math coprocessor..........: [Y]  Keyboard conflict (0-F)..........: [0]
  86. Share CPU when foreground......: [Y]  Share EGA when foreground/zoomed.: [Y]
  87. Can be swapped out (Y,N,blank).: [ ]  Protection level (0-3)...........: [0]
  88.  
  89.  
  90. Lotus 1-2-3 Release 3.1
  91. -----------------------
  92.  
  93. Some users find that they get system hangs when switching back to Lotus 1-2-3 
  94. Release 3.1 from a DESQview menu or from another DESQview window.  There are two 
  95. already existing solutions to this problem: 1) Setting Keyboard Conflict to 8 in 
  96. the 1-2-3 window, which sometimes causes shift states to get stuck in the 1-2-3 
  97. window; and 2) the L4-LOAD.COM program that ships with DESQview 2.33 and later.
  98.  
  99. HOOKINT can be used as an equivalent to L4-LOAD.COM.  To do so, load 1-2-3 in a 
  100. DESQview window with a batch file that contains the following lines:
  101.  
  102. HOOKINT 9 82 /D
  103. 123 -C
  104.  
  105. If you are running on a monochrome system, substitute the -M parameter for the
  106. -C on the 123 line in the batch file.  For further information on how to run 
  107. Lotus 1-2-3 Release 3.1 in DESQview, see the Quarterdeck technote LOTUS3.TEC.
  108.  
  109.  
  110. Technical Background for HOOKINT
  111. --------------------------------
  112.  
  113. The file HOOKINT.COM is a utility that uses DESQview's External Device Interface 
  114. (XDI) to guarantee that a particular software interrupt handler that is in 
  115. effect within a DESQview window will always be in place when that software 
  116. interrupt is called from inside a particular hardware interrupt handler.  This 
  117. can be important because hardware interrupts are often given to one program in 
  118. DESQview when the state of the computer is set up for a completely different 
  119. program.  If a program's hardware interrupt handler assumes that it can safely 
  120. call a given software interrupt, the program may not run successfully in 
  121. DESQview.  HOOKINT is designed to help such programs.
  122.  
  123. The syntax for HOOKINT is:
  124.  
  125. HOOKINT intnum [restorenum] [/D]
  126.    where:
  127.       intnum = interrupt number to hook
  128.       restorenum = interrupt number to make valid when
  129.                    an INT intnum occurs
  130.       /D = Defer hooking until someone else does
  131.  
  132. For instance, the command HOOKINT C 66, issued inside a DESQview window, will 
  133. guarantee that the INT C (IRQ4, which is COM1) handler that is already in place 
  134. will be able to issue an INT 66 and call the INT 66 handler that is in effect in 
  135. that window.  Without this command, the INT C handler could unintentionally call 
  136. another window's INT 66 handler when it issues its INT 66, depending on which 
  137. window is receiving a time slice when the INT C occurs.
  138.  
  139. If you add a /D to this command (HOOKINT C 66 /D), then the INT 66 handler in 
  140. that window will be valid, not just when the INT C handler already in place is 
  141. called, but when the INT C handler that is about to be installed in that window 
  142. is called.  To know whether or not to use the /D parameter to HOOKINT, you need 
  143. to know which program is installing the hardware interrupt handler in question.  
  144. If this program is loaded before HOOKINT (or even before DESQview), the /D 
  145. parameter should not be used.  If this program is loaded after HOOKINT, the /D 
  146. parameter should be used.
  147.  
  148. If loaded before DESQview, HOOKINT simply grabs an interrupt, without performing 
  149. any of the functions that make it useful to applications.  Unless you wish to 
  150. use HOOKINT as a debugging tool, it should always be loaded in a DESQview 
  151. window.
  152.  
  153.  
  154.                                  END OF FILE
  155.