Q45497: How to Trap CTRL+C

Article: Q45497
Product(s): See article
Version(s): 5.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | appnote softlib CTRLC.ARC S12319.EXE | mspl13_c
Last Modified: 25-JUL-1989

An application note is available that demonstrates how to trap the
CTRL+C and CTRL+BREAK key combinations. This application note is
available from Microsoft Product Support Services by calling (206)
454-2030. This application note is also available from the Microsoft
PSS System Languages group.

This information is also available in the Software/Data library by
searching on the keyword CTRLC, the Q number of this article, or
S12319. CTRLC was archived using the PKware file-compression utility.

The file provided is fully tested; however, it is not regularly
released with the Microsoft C Version 5.10 Compiler. Consequently, it
will not be maintained and any problem reported against it will not
result in a patch or any other immediate repair. Problems experienced
with this file should be reported to Microsoft Product Support
Services.

CTRLC contains the following files:

   README.NOW - Brief description of program and Microsoft
   disclaimer

   CTRL.C - Code example for trapping the CTRL+C and CTRL+BREAK
   key combinations