I want to trap WM_SETFOCUS messages on all the current windows. Whats the best way to do that.
I think SetWidnwosHookEx can be used to for this purpose. Can it be used with WH_CALLWNDPROC or WH_MSGFILTER ?
Also its mentioned that hook procedure must be in separate dll. Is it required. Can I not have hook procedure in same dll which installs hook.