I'm writing a program that can lock the keyboard. I patch into ISR 9(the keyboard interrupt) and manipulate the head and tai pointers. It work fine , but there're something I don't understand:
-It seems that I cannot use int 21h when patching into an interrupt
-When I run my program from Command Prompt , it works so the CMD window doesn't receive any keystrokes , but anything outside the cmd window respond to my keypress normally (I mean the keyboard is only locked inside the cmd window). Is there anyway to make it affect all of the computer ?

Recommended Answers

If you are running it under Windows XP CMD than it will only affect that window, because XP just simulates command prompt, doesn't load real one.
So, answer to your question, if you are running XP, is NO

Jump to Post

All 2 Replies

If you are running it under Windows XP CMD than it will only affect that window, because XP just simulates command prompt, doesn't load real one.
So, answer to your question, if you are running XP, is NO

You cant do it on NT based systems because they are secure.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.