#include "dos.h"

#include "iostream.h"

void interrupt noboot();

void interrupt (*prev)();

char far *keyptr=(char far*)0x417;

main()

{

//PROGRAM AIM : the machine will not boot on pressing <ctrl>+<alt>+<del>

      unsigned long far *keylocation;

      keylocation=(unsigned long far*)36;

      prev=(void (interrupt far*)())*keylocation;

      *keylocation=(unsigned long)noboot;

      keep(0,500);

      return 0;

}

 

void interrupt noboot()

{

      (*prev)();

      *keyptr=*keyptr&0xf3;

      cout<<"\nNo booting using <ctrl>+<alt>+<del>";

}