KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

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

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.