Keyboard Hooking and Global Event handling in WM5.0

F

farseer

Hi,
just curious, can Keyboard hooking and a "global" message handling be
done natively with C# now?

With WM2003, for Keyboard hooking, i had to create a dll using C++
which would install a keyboard hook and that dll would in turn forward
key board events/messages back to my application's MessageWindow.

For handling windows messages from external process, a similar method
was used, in this case a dll was injected into the process we wanted to
recieve events for and that dll would subclass the wndProc. This dll
would then intercept messages and forward onto a MessageWindow in my
app.

Can these things be done differently now? i.e. can the be done solely
using C# rather relying on a dll?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top