Adding controls when DLL hooking
I've DLL hooked calc.exe, and I'm trying to created a new button, but it's not working. CreateWindowEx() returns a handle, but I can't see anything. When I check Spy++, I can't find the button window anywhere. Does anyone know what's going on?
It is very fustrating!
BOOL WINAPI DllMain(HANDLE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
hFind=FindWindowEx(NULL, hFind,NULL, "Calculator");
} while (thisProcessId!=wndProcessId);
lpCalculator=(WNDPROC)SetWindowLong(hFind, GWL_WNDPROC, (LONG)WndProc);
MessageBox(NULL,"couldn't create button","yo", MB_OK);
MessageBox(NULL,"created button","yo", MB_OK);