Code: Select all
HookAPI("ws2_32.dll", "send", hook_send, (PVOID *) &next_send);
Code: Select all
HookAPI("ws2_32.dll", "recv", hook_recv, (PVOID *) &next_recv);
HookAPI() returns -1 in the second case, and my hook_recv() function does not get called. I am injecting into both Explorer.exe and IExplore.exe, and both the send() hooks fine, but not the recv().
What is the problem here? Under what conditions does HookAPI() return -1?
Thanks much,
David