We are hooking TextOut(),ExtTextOut() and DrawText() methods GLOBALLY .
hhook = SetWindowsHookEx(WH_CBT, function_address, module_handle, 0);
But we want to hook/unhook only a particular exe. Can someone tell us how to check all the existing threads and get the required exe and hook/unhook only that.
Please provide help.