I am trying to use SetWindowsHookEx to capture API calls in java.dll.
So, I created another dll and injected all the other processes using setwindowsHookEx
g_hHook = SetWindowsHookEx (WH_CALLWNDPROC, JLoadSetFunc, g_hHookDll, 0)
The problem is as follows:
When I try to capture calls from a process, I notice that my dll is bound to this process after several hooked calls have already been made.
So the problem is that my connection mechanism misses the first few calls of the connected API.
Please suggest or comment on this issue to guide me. I am terribly stuck with this.
Akash
source share