I managed to write a semiworking EasyHook example that hooks recv function. I wrote a form, added a WebBrowser component, and started the application. The problem is, I get the
Problem Solved. The line that created trouble was
CreateRecvHook.ThreadACL.SetExclusiveACL(new Int32[] { 0 });
I changed it to
CreateRecvHook.ThreadACL.SetInclusiveACL(new Int32[] { 0 });
and now everything works just fine. Thanks everybody :)