How can I hook the keyboard control procedure under windows?

I wrote a short TSR program what hooks the 9.

interrupt. After pressing a specified button,

the keyboard stops working, until a press to this

button. It is working in real mode, but what

sould i do to make it work in protected mode, or in

windows?


Comments

  • : I wrote a short TSR program what hooks the 9.

    : interrupt. After pressing a specified button,

    : the keyboard stops working, until a press to this

    : button. It is working in real mode, but what

    : sould i do to make it work in protected mode, or in

    : windows?


    To make this work in Windows use the SetWindowsHookEx() function.

    This function has to reside in a DLL to work properly.


    Look in the MSC++ help for an example.





  • : I wrote a short TSR program what hooks the 9.

    : interrupt. After pressing a specified button,

    : the keyboard stops working, until a press to this

    : button. It is working in real mode, but what

    : sould i do to make it work in protected mode, or in

    : windows?


    To make this work in Windows use the SetWindowsHookEx() function.

    This function has to reside in a DLL to work properly.


    Look in the MSC++ help for an example.





  • : : I wrote a short TSR program what hooks the 9.

    : : interrupt. After pressing a specified button,

    : : the keyboard stops working, until a press to this

    : : button. It is working in real mode, but what

    : : sould i do to make it work in protected mode, or in

    : : windows?


    : To make this work in Windows use the SetWindowsHookEx() function.

    : This function has to reside in a DLL to work properly.


    : Look in the MSC++ help for an example.


    Could you send me some good functions (SetWindowsHookEx() needed!)

    and examples from msc++ help to spzsz@excite.com? Thank You


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories