By the looks of things he wants his trainer to find the Process name of a game.
But he cant change his WindCap for Filename as the rest of the coding doesnt work that way of course.
@sawky - you have to have similar as the skeleton to invoke loading the designated file and poking addresses. As said changing your WindCap for the Filename wont do anygood at all.
You will have to have this somewhere in your coding
invoke CreateProcess, ADDR FileName, NULL,NULL,NULL,NULL,\
NORMAL_PRIORITY_CLASS,NULL,NULL,ADDR StartUpInfo,ADDR hProcess
(the \ just lets the compiler know to goto the next line to continue the sequence)
Also setting the following under your .data? section
StartUpInfo STARTUPINFO <>
hProcess dd ?
So when the game is loaded it sets the address of where the game has loaded into your memory etc properly. So you can later use WriteProcessMemory to write your data.
Like so
invoke WriteProcessMemory,hProcess,Address,addr bytestobewritten,numberofbytestowrite
Would be just as easy to use the skeleton and change what you wanted it is easy enough to follow and change accordingly