Am I doing this right?? (Config.Register)

Nov 22, 2010 at 6:25 PM
Edited Nov 22, 2010 at 6:26 PM

When i'm doing this Config.Register( "This description can be anything.", @"SomePathToAnExecutable.exe", "MyInjectionDll.dll");

I get the error:

There was an error while connecting to target: System.BadImageFormatException: Unable to load given assembly [SomePathToAnExecutable.exe] for reflection.

Is this a valid NET assembly? ---> System.BadImageFormatException: Could not load file or assembly [SomePathToAnExecutable.exe] or one of its dependencies. The module was expected to contain an assembly manifest.

 

Am I right in thinking that SomePathToAnExecutable is the process that you want to hook into???

Does the executable have to be managed code then??

Dec 5, 2010 at 3:10 AM

Note : Someone might actually be able to help me. See here where I asked the same question on StackOverflow and got a response.
Hopefully the start of a discussion.

http://stackoverflow.com/questions/4278779/how-to-use-easyhook-with-non-managed-executable

-- Lee