home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_03
/
8n03039a
< prev
next >
Wrap
Text File
|
1990-03-20
|
885b
|
33 lines
*****Listing 1*****
KILLIT.C
/*
*KILLIT.COM - A small utility to kill or re-enable the PrtScr function
* Usage: Call with no argument to disable PrtScr function
Call with any argument to enable PrtScr function
Written by M.L. Lesser, 10/27/89
Compiled with Turbo C (TCC) v 2.00, switches -mt -lt -o
to link as COM file
*/
#include <MIO><N>.h
char far *PrtScr = (void far *)((unsigned long)0x50 << 16);
void main(argc)
{
if (argc == 1) /* No arguments on the command line */
{
*PrtScr = 1; /* Set PrtScr "busy" signal */
cprintf("Print screen function has been disabled");
}
else
{
*PrtScr = 0; /* Set PrtScr <169>available<170> signal */
cprintf("Print screen function has been enabled");
}
}