subcalls.hlp (Topic list)
VioPrtSc (1.2)
Overview                                            Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_VIO
 
USHORT VioPrtSc(hvio)
HVIO hvio;    /* video handle */
 
The VioPrtSc function copies the contents of the screen to the printer.
 
This function is reserved for system use. It is called whenever the PRTSC
key is pressed. A process can, however, replace VioPrtSc with a custom
screen-printing function by using the VioRegister function. If a process
does replace the VioPrtSc function, all other processes in the screen group
will also use the replacement function. This gives a process the capability
of capturing input from the PRTSC key.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hvio       Identifies an advanced video-input-and-output (AVIO) presentation
           space. For AVIO programs, this handle must have been created
           previously using the VioCreatePS function. For other programs,
           hvio must be NULL.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be one of the following:
 
     ERROR_VIO_INVALID_HANDLE
     ERROR_VIO_SMG_ONLY
 
See Also
 
VioCreatePS, VioPrtScToggle, VioRegister