how do i set a hook on a specific window once i know its handle?
Printable View
how do i set a hook on a specific window once i know its handle?
Use SetWindowsHookEx, using the WH_CALLWNDPROC, or WH_CALLWNDPROCRET flags. Then, when it calls your callback, check to see what window that message is going to (the hWnd param), and if they match, do whatever you want.
Z.