Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DPMI - how to chain user and original RM handler? (Developers)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 04.05.2023, 04:03

> I am trying to implement the INT 15h/AH=4Fh keyboard interrupt.
> If I detect the 4Fh in the AH I can do what I want.
> But if there is not the 4Fh (if there is f.e. AX=E820h) I have to put my
> hands off and just to call the original routine.

INT 15.4F isn't really the keyboard interrupt -- it is used to modify scancodes.
I'm trying to imagine a scenario where implementing an INT 15.4F routine in DPMI would be useful and I can't think of one. What exactly are you trying to accomplish?

Also, you will need to let the original routine process even if it's INT 15.4F but the scancode isn't the one you're trying to "trap". You may also need/want to call the original routine _before_ you do any of your own processing in case there is another handler that modifies some of the same scancodes you're trying to process (like a foreign keyboard layout driver that uses INT 15.4F instead of INT 09).

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 86 users online (0 registered, 86 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum