home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / tools / 1443 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  870 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!natinst.com!natinst.com!not-for-mail
  2. From: nigeld@natinst.com (Nigel Dsouza)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Detecting Ctrl-C or Ctrl-Break
  5. Date: 16 Nov 1992 17:32:18 -0600
  6. Organization: National Instruments, Austin, TX
  7. Lines: 12
  8. Message-ID: <1e9b22INNn8f@eagle.natinst.com>
  9. NNTP-Posting-Host: eagle.natinst.com
  10.  
  11.  
  12. Do Control-C or Control-Break generate interrupts under Windows 3.1.  The
  13. toolhelp function InterruptRegister does not have any interrupt corresponding
  14. to Control-C or Control-Break.
  15.  
  16. I would like to be able to stop a program when the user hits one of those key
  17. combinations.  I do not want to have to check the input queue, but handle it
  18. like it is done on UNIX systems; by setting up a signal handler for SIGINT.
  19.  
  20. Is it possible? How?
  21.  
  22. Nigel D'Souza
  23.