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 >
Text File  |  1990-03-20  |  885b  |  33 lines

  1.  
  2. *****Listing 1*****
  3.  
  4. KILLIT.C
  5.  
  6.  /* 
  7.  *KILLIT.COM - A small utility to kill or re-enable the PrtScr function 
  8.  *      Usage: Call with no argument to disable PrtScr function
  9.                Call with any argument to enable PrtScr function
  10.                   Written by M.L.  Lesser, 10/27/89
  11.         Compiled with Turbo C (TCC) v 2.00, switches -mt -lt -o
  12.                 to link as COM file
  13.  */
  14.  
  15.  #include <MIO><N>.h
  16.  
  17.  char far *PrtScr = (void far *)((unsigned long)0x50 << 16);
  18.  
  19.  void main(argc)
  20.     {
  21.     if (argc == 1)      /* No arguments on the command line */
  22.        {
  23.        *PrtScr = 1;   /* Set PrtScr "busy" signal */
  24.        cprintf("Print screen function has been disabled");
  25.        }
  26.     else
  27.        {
  28.        *PrtScr = 0;   /* Set PrtScr <169>available<170> signal */
  29.        cprintf("Print screen function has been enabled");
  30.        }
  31.     }
  32.  
  33.