how do i set a hook on a specific window once i know its handle?
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
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.
Forum Rules