epperly@cs.odu.edu (William "Badger" Epperly) (06/26/91)
Problem: I am writing a small program which I do not want the user
to be able to kill with a warm boot command. I am writing
on a 386sx machine using Turbo C++'s ansi C compiler. I have
used the routine
getvect(0x19)
to get the address of the original routine which I save in
a properlly declared variable. I then use
setvect(0x19,<routine name>)
to set the new routines address in the interrupt vector table.
I have then issued another call to getvect(0x19) to see if
the value in the interrupt vector table has been changed.
It was changed.
The problem is that when ctl-alt-del is entered by the
user, the machine performs a warm boot anyway. My Question
is, what am I not doing or doing wrong. BTW, I have turned
of the "check stack overflow" box for the compiler and my
code is executable.
Please mail your responses to
epperly@cs.odu.edu
and I will post a summary.
Thanks in advance for your help.