kodiak@matt.ksu.ksu.edu (Bryan D. Nehl) (02/13/91)
Does someone have C or Assembly source code that they could give me that lets you abort the current program by hitting the SysRq key? For example: Load the program as a TSR. Debugging an application program and it winds up in an infinite loop. Hit SysRq and you're back in DOS. I have something right now that is pretty crude, that almost works by hooking the Print Screen Interrupt and then calling Int 21, 00h. The problem with it though is that it doesn't clean things up. It tends to leave the aborted program in RAM. Thanks in advance. Bryan. /* === Bryan Nehl ========= kodiak@Kodiakpc.Manhattan.KS.US =======+ [ Software Engineer -- USDA -- WERU ][ bdn@chepil.weru.ksu.edu ] [ (913) 532-6233 or 532-6495 ][ kodiak@matt.ksu.ksu.edu ] +_________ ...!rutgers!ksuvax1!matt.ksu.ksu.edu!kodiak __________ */
tcs@mailer.jhuapl.edu (Carl Schelin) (02/15/91)
In article <1991Feb12.212925.17489@maverick.ksu.ksu.edu>, kodiak@matt.ksu.ksu.edu (Bryan D. Nehl) says: > >Does someone have C or Assembly source code that they could give me that >lets you abort the current program by hitting the SysRq key? I tried sending you a message but it bounced. I have a program here called CtrlAlt that came with asm source. It has a routine that allows you to totally break out of an application if at all possible and return you to dos (you may not like returning to dos, but it will get you there). Not only that, it's a great programmers aid and the only TSR that I run from my autoexec.bat (I run norton guides too but only when programming). I'm not sure how I could get it to you unless you have a different mailing address that works. Maybe it's on a server somewhere that's FTPable. Write if you think I can get it to you. Carl Schelin tcs@mailer.jhuapl.edu