Thursday, April 23, 2009

a TURBO C trick

hey if u are an techie using the old turbo c++ compiler based on DOS this trick is
for u.......
basically this code will block all ur keystrokes fom being printed on the screen..It
simply modifies the IVT(interrupt vector table)and puts ur function pointer in the
place of actual interrupt handler function.So when u literally press a key ur function gets executed...is it coool.

#include
void our();-------ur function...
void main()
{
ptr = getvect(9);---try 8 also ptr is a interrupt funcion pointer find it hehe
setvect(ptr,our);--replace 9th interrupt VECTOR entrywith ur function
keep(0,100);

}
void our()
{
---key press will print nothing on screen
}

1 comment: