Against Kyle Marsh of MSDN's advice, I am trying to subclass a foreign window using CreateRemoteThread(). I'm having trouble working out how to use this function. I have a few questions.
1. Do I create the thread function in my process space, then WriteProcessMemory() to get it to the target process?
2. How do I get my window procedure to the target process space?
3. Once I have the thread there, how can I locate the window I was trying to subclass? I was thinking of passing the HWND through as the parameter, but I'm not sure.
I've never created extra threads before, let alone sent them to other processes, so this is all new to me.