Displaying Source Code(s)
|
|
Program for enabling and disabling the keyboard.
--------------------------------------------------------------------------------
#include<stdio.h>
#include<conio.h>
#include<dos.h>
main()
{
clrscr();
outportb(0x64,0xAD); /*Code for disabling the KEYBOARD*/
printf("
Keyboard Disabled");
delay(10000);
clrscr();
printf("
Keyboard Enabled");
outportb(0x64,0xAE); /*Code for enabling the KEYBOARD*/
getch();
}
|
|
|