Hey guys im trying to mess around with the injector and what not. Im using Bloodsheds DevC++ and i am planning on making a dll. But i have a small question. When using the injector, does the dll have to search for the process to inject to? for instance:
WindowHandle = FindWindow(NULL,"Combat_Arms"); //Grab a handle to the window
while(!WindowHandle) //If the handle is null...
Sleep(50); //Wait 50 miliseconds..
WindowHandle = FindWindow(NULL,"Combat_Arms");//and try again
GetWindowThreadProcessId(hwndWindow,&pid);//Get a process id
ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS,0,pid);//And grab the process handle
yada yada yada...if you're experienced, you would know what im talking about... anyhow, anyhelp?