Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 15 - topview - send message - setesc - set escape routine address http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 15 - TopView - SEND MESSAGE - "SETESC" - SET ESCAPE ROUTINE ADDRESS
        AH = 12h
        BH = 14h
        BL = message modifier
            00h handle is DWORD on top of stack
            01h define user stream
            04h intercept keystrokes from KEYBOARD to a window (handle on stack)
            05h intercept keystrokes from task's default KEYBOARD to a window
        STACK: (if window)   DWORD user stream number (14h-1Fh)
                             DWORD address of FAR user stream handler
               (if keyboard) DWORD address of FAR filter function

The keyboard filter function is called when the keyboard is in field mode.  On
entry,
        AL = character
        AH = 00h or extended ASCII code if AL = 00h
        BL = field number
        CH = cursor column
        CL = cursor row
        DL = field type modifier (sixth item in field table entry)
        DH = seventh item in field table entry
        ES:SI = window's handle
        DS:DI -> field table entry for field containing the cursor
The filter function should return
        AH = 00h use keystroke
             01h ignore keystroke
             FFh beep and ignore keystroke
Note: the filter function is not allowed to make INT 15, DOS, or BIOS calls

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson