Well hooking is probably the issue. BTW, you cannot actually override the Window Procedure of another process, but you could set a hook with SetWindowsHookEx()