Opening a Process By Its Name for Virtual Memory Access
Small snippet which lets you open a process by its process name and retrieve a handle to it being at least suitable for NtProtectVirtualMemory & NtWriteVirtualMemory.
See http://www.rohitab.com/discuss/topic/41783-nt-api-opening-a-process-by-its-name-for-vm-access/ for more information and assessing whether it is the correct method in order to your achieve your goals.
Snippet was mainly published for myself so I don't need to have always a long time remembering were I last time used this function or were I posted it in the web.