TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Erik Huelsmann
from: Peter Fitzsimmons
date: 1994-06-10 22:08:12
subject: DosSetSigHandler (16-bit call)

EH> In the DosSetSigHandler -call, I need to pass 2
 EH> parameters of which I don't
 EH> understand whether they are only information for me, 
 EH> or they are reused by OS/2 again. These parameters are

You must be using a 16 bit compiler,  since the 32bit equivalent is called
DosSetExceptionHandler().

 EH> PrevAction and PrevHandler. They are pointers. One to

Here's a bit from the Microsoft OS/2 1.x api docs:

  The signal-handler function can use the address and fAction value of
  the previous signal handler to pass the signal through a chain of
  previous signal handlers. The new signal handler can also use the
  previous address and fAction value to restore the previous handler.

MOST of the time,  you are installing a signal handler that accepts each
signal (to process Ctrl+Break for example),  without passing it on to the
old handler,  so you don't need to use these parameters.

If you ever want to remove your signal handler,  however,  you'll need to
put the old one back,  so you will ned to hold on to the PrevHandler
parameter (you do NOT have to worry about restoring the signal handlers
when you exit).


--- Maximus/2 2.01

* Origin: Beer bellies = great waist. (905)858-8488 (1:259/414)
SEEN-BY: 54/54 620/243 632/348 640/820 690/660 711/409 413 430 807 808 809
SEEN-BY: 711/934 712/353 623 713/888 800/1 2442/0
@PATH: 259/414 400 99 98 3615/50 229/2 2442/0 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.