Hi,
I'm building a library that both Exports some functions that implement SetWindowsHookEx-hooks, and it also uses HookAPI. The main program imports these functions, and I also use InjectLibrary here. However this crashes the target app I do not use InjectLibrary the mad-hooks doesn't seem to be in action.
How can I do this? Is it better to use two DLLs? I would prefer having only one DLL...
DLL that Exports functions and using HookAPI
I'm a bit confused. First you say: "I also use InjectLibrary here". Then you say: "I do not use InjectLibrary". What now? Also are you injecting that dll in one specific process only or system wide? Is your SetWindowsHookEx hook for one thread only or is it system wide? Basically if you use SetWindowsHookEx and if your hook dll gets injected this way into the target process(es), the madCodeHook API hooks should be in action, too.