en:docs:fapi:dossetsighandler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:docs:fapi:dossetsighandler [2021/09/18 15:01] – prokusheven:docs:fapi:dossetsighandler [2021/09/18 15:04] (current) – prokushev
Line 12: Line 12:
 ===== Parameters ===== ===== Parameters =====
  
-;Routine (PFNSIGHANDLER) - input : Address of the entry point of routine that receives control when a signal equal to SigNumber is received. +  * Routine (PFNSIGHANDLER) - input : Address of the entry point of routine that receives control when a signal equal to SigNumber is received. 
-;PrevAddress (PFNSIGHANDLER FAR *) - output: Address of the previous signal handler. This operand may be coded as null (= 0), then it is ignored. +  * PrevAddress (PFNSIGHANDLER FAR *) - output: Address of the previous signal handler. This operand may be coded as null (= 0), then it is ignored. 
-;PrevAction (PUSHORT) - output : Address of the previous signal action. Only values 0 to 3 are returned. This operand may be coded as null (= 0), then it is ignored. +  * PrevAction (PUSHORT) - output : Address of the previous signal action. Only values 0 to 3 are returned. This operand may be coded as null (= 0), then it is ignored. 
-;Action (USHORT) - input : Indicates what action to take when the specified signal is received: +  * Action (USHORT) - input : Indicates what action to take when the specified signal is received: 
- '''Value     Definition''' + 
- 0     The system default action is installed for the signal. +^ Value ^ Definition ^ 
- 1     The signal is to be ignored. +| 0 | The system default action is installed for the signal. | 
- 2     The routine receives control when the SigNumber occurs. +| 1 | The signal is to be ignored. | 
- 3     It is an error for any program to signal this SigNumber to this process. +| 2 | The routine receives control when the SigNumber occurs. | 
- 4     The current signal is reset without affecting the disposition of the signal. +| 3 | It is an error for any program to signal this SigNumber to this process. | 
-; SigNumber (USHORT) - input : Signal number to be intercepted by this signal handler. The signal numbers defined are: +| 4 | The current signal is reset without affecting the disposition of the signal. | 
- '''Value  Definition''' + 
- 1      Ctrl-C (SIGINTR) +  * SigNumber (USHORT) - input : Signal number to be intercepted by this signal handler. The signal numbers defined are: 
- 3      Program terminated (SIGTERM) + 
- 4      Ctrl-Break (SIGBREAK) +^ Value ^ Definition ^ 
- 5      Process flag A (SIGPFA) +| 1 | Ctrl-C (SIGINTR) | 
- 6      Process flag B (SIGPFB) +| 3 | Program terminated (SIGTERM) | 
- 7      Process flag C (SIGPFC)+| 4 | Ctrl-Break (SIGBREAK) | 
 +| 5 | Process flag A (SIGPFA) | 
 +| 6 | Process flag B (SIGPFB) | 
 +| 7 | Process flag C (SIGPFC) | 
 '''Note:''' Presentation Manager applications may not establish signal handlers for Ctrl-C and Ctrl-Break. Establishing a signal handler for Ctrl-C and Ctrl-Break is supported for VIO-Windowable and full-screen applications. '''Note:''' Presentation Manager applications may not establish signal handlers for Ctrl-C and Ctrl-Break. Establishing a signal handler for Ctrl-C and Ctrl-Break is supported for VIO-Windowable and full-screen applications.