Search code examples
c#hookwndproceasyhook

EasyHook and CallWndProc


I am desperately trying and failing to hook CallWndProc using EasyHook.

Intptr addr = LocalHook.GetProcAddress("user32.dll", "CallWndProc");

This throws with "The given method does not exist.". So I'm guessing either CallWndProc isn't in user32.dll, or it's called something subtly different, or I'm missing some fundamental piece of the puzzle.

Cheers


Solution

  • The given method does not exists.

    The function is exported as CallWindowProcA and CallWindowProcW for ANSI and Unicode calls respectively.