Hooks with C#

  • Thread starter Thread starter Oleg Mustiazza
  • Start date Start date
O

Oleg Mustiazza

Hi,

I was looking at a sample for hooks -
http://www.codeproject.com/system/hooksys.asp, in particular at the part
where one .exe injects the code from a .dll into an external process. It
swaps the mouse buttons when clicking on windows "Start" button.

I'm trying to do install the hook from a C# program but it doesn't work. The
target program keeps dying and then I have to reboot windows because the
crash is pretty bad.

Has anyone done this before? Any pointers?
 
Has anyone done this before? Any pointers?

You can't implement global hooks in managed code (with the exception
of lowlevel keyboard and mouse hooks).


Mattias
 

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

Back
Top