Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:vioprtsctoggle [2021/09/05 06:12] – created prokushev | en:docs:fapi:vioprtsctoggle [2021/12/18 05:47] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== VioPrtScToggle ====== | ||
+ | |||
This call is called by the Session Manager when the operator presses Ctrl and PrtSc. | This call is called by the Session Manager when the operator presses Ctrl and PrtSc. | ||
- | ==Syntax== | + | ===== Syntax |
- | | + | <code c> |
+ | VioPrtScToggle (VioHandle) | ||
+ | </ | ||
- | ==Parameters== | + | ===== Parameters ===== |
- | ;VioHandle ([[HVIO]]) - input : Reserved word of 0s. | + | |
- | ==Return Code== | + | VioHandle ([[HVIO]]) - input : Reserved word of 0s. |
- | ;rc (USHORT) - return:Return code descriptions are: | + | |
- | * 0 | + | ===== Return Code ===== |
- | * 355 ERROR_VIO_MODE | + | |
- | * 402 ERROR_VIO_SMG_ONLY | + | rc ([[USHORT]]) - return |
- | * 430 ERROR_VIO_ILLEGAL_DURING_POPUP | + | |
- | * 436 ERROR_VIO_INVALID_HANDLE | + | Return code descriptions are: |
- | * 465 ERROR_VIO_DETACHED | + | |
+ | | ||
+ | * 355 ERROR_VIO_MODE | ||
+ | * 402 ERROR_VIO_SMG_ONLY | ||
+ | * 430 ERROR_VIO_ILLEGAL_DURING_POPUP | ||
+ | * 436 ERROR_VIO_INVALID_HANDLE | ||
+ | * 465 ERROR_VIO_DETACHED | ||
+ | |||
+ | ===== Remarks ===== | ||
- | ==Remarks== | ||
VioPrtScToggle toggles the Ctrl and PrtSc state of the foreground session. When the Ctrl and PrtSc state is on, all [[VioWrtTTY]] calls from that session are echoed to the print device. | VioPrtScToggle toggles the Ctrl and PrtSc state of the foreground session. When the Ctrl and PrtSc state is on, all [[VioWrtTTY]] calls from that session are echoed to the print device. | ||
Line 23: | Line 35: | ||
Three beeps are generated if a hard error is detected while writing to the printer. When Ctrl and PrtSc is turned off, the operator may have to press the Enter key to cause output spooled while Ctrl and PrtSc was active to be printed. This is because the spool files are closed when the next VioWrtTTY is executed in the session, such as writing the prompt in response to the Enter key. | Three beeps are generated if a hard error is detected while writing to the printer. When Ctrl and PrtSc is turned off, the operator may have to press the Enter key to cause output spooled while Ctrl and PrtSc was active to be printed. This is because the spool files are closed when the next VioWrtTTY is executed in the session, such as writing the prompt in response to the Enter key. | ||
- | ==Bindings== | + | ===== Bindings ===== |
- | ===C=== | + | |
- | <PRE> | + | ==== C ==== |
+ | |||
+ | <code c> | ||
#define INCL_VIO | #define INCL_VIO | ||
Line 32: | Line 46: | ||
HVIO VioHandle; | HVIO VioHandle; | ||
USHORT | USHORT | ||
- | </PRE> | + | </code> |
- | ===MASM=== | + | ====MASM==== |
- | <PRE> | + | <code asm> |
EXTRN VioPrtScToggle: | EXTRN VioPrtScToggle: | ||
INCL_VIO | INCL_VIO | ||
Line 43: | Line 57: | ||
Returns WORD | Returns WORD | ||
- | </PRE> | + | </code> |
+ | |||
+ | Text based on [[http:// | ||
- | [[http:// | + | {{page> |