WriteProcessMemory?
to check if correct process. i guess you could check which modules the process is containing. loop though modules and check there names.
you could also do that with Memory usage, like if the wanted process always use the biggest memory then loop through the process names and check for that