en:docs:fapi:vioprtsctoggle

Differences

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

Link to this comparison view

Next revision
Previous revision
en:docs:fapi:vioprtsctoggle [2021/09/05 06:12] – created prokusheven:docs:fapi:vioprtsctoggle [2021/12/18 05:47] (current) prokushev
Line 1: Line 1:
 +{{page>en:templates:fapiint}}
 +
 +====== 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 ===== 
- VioPrtScToggle (VioHandle)+<code c> 
 +VioPrtScToggle (VioHandle) 
 +</code>
  
-==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   NO_ERROR +===== 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+ 
 +  * 0   NO_ERROR 
 +  * 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;     /* Vio handle */ HVIO    VioHandle;     /* Vio handle */
 USHORT  rc;            /* return code */ USHORT  rc;            /* return code */
-</PRE>+</code>
  
-===MASM=== +====MASM==== 
-<PRE>+<code asm>
 EXTRN  VioPrtScToggle:FAR EXTRN  VioPrtScToggle:FAR
 INCL_VIO            EQU 1 INCL_VIO            EQU 1
Line 43: Line 57:
  
 Returns WORD Returns WORD
-</PRE>+</code> 
 + 
 +Text based on [[http://www.edm2.com/index.php/VioPrtScToggle]]
  
-[[http://www.edm2.com/index.php/VioPrtScToggle]]+{{page>en:templates:fapi}}