Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!snorkelwacker!usc!cs.utexas.edu!rice!uw-beaver!ubc-cs!eric!eric.mpr.ca!vlee From: vlee@eric.mpr.ca (Vitus Lee) Newsgroups: comp.lang.c Subject: Help in Writing Turbo C TSR Needed Message-ID: <2058@eric.mpr.ca> Date: 8 Feb 90 22:05:12 GMT Sender: news@eric.mpr.ca Reply-To: vlee@eric.mpr.ca (Vitus Lee) Distribution: na Organization: Microtel Pacific Research Ltd., Burnaby, B.C., Canada Lines: 17 I have a need to write a TSR using Turbo C 2.0 which on a specific hot key sequence, will take over the machine. On exit, it returns the machines to normal operations. I know that I have to intercept the keyboard interrupt using getvect and setvect. And I also have to use keep to terminate and stay resident. However, how do I parse the keyboard entry to determine if the correct hot key sequence was entered. The TSR must pass all non hot key sequences to DOS for normal machine operations. Only hot key sequence will be gobbled up. How do I do this? How do I chain the interrupts? I will much appreciate if anyone can offer any help or maybe offer any skeleton program in C. Many thanks in advance. Vitus