Hi, in order to learn something more about hooks, I'm trying to write a simple application: a form containing a webbrowser component, and i'm going to make a local hook oon recv to see the packets received by it.
I wrote the program looking at the easyhook tutorial, but when i try to run it, i get a
A first chance exception of type 'System.NotSupportedException' occurred in EasyHook.dll There was an error while connecting to target: System.NotSupportedException: STATUS_NOT_SUPPORTED: (Code: 0) at EasyHook.NativeAPI.Force(Int32 InErrorCode) at EasyHook.RemoteHooking.InjectEx(Int32 InHostPID, Int32 InTargetPID, Int32 InWakeUpTID, Int32 InNativeOptions, String InLibraryPath_x86, String InLibraryPath_x64, Boolean InCanBypassWOW64, Boolean InCanCreateService, Object InPassThruArgs) at EasyHook.RemoteHooking.Inject(Int32 InTargetPID, InjectionOptions InOptions, String InLibraryPath_x86, String InLibraryPath_x64, Object InPassThruArgs) at Hook_Test.Form1.Run()
and, the line who generates the error is
RemoteHooking.Inject( Process.GetCurrentProcess().Id, InjectionOptions.Default, "TestInject.dll", "TestInject.dll", ChannelName);
What am I missing? Here http://www.mediafire.com/?29qkq0vvzz9bkyt you can find the full solution source, just in case somebody needs it ...
Thansk everybody for your help!