I thought it might be using the windows equivalent of PTRACE_POKETEXT, to poke data into notepad's memory.
I've altered the contents of the gedit text editor within a linux VM, via PTRACE_ATTACH and PTRACE_PEEKTEXT/PTRACE_POKETEXT, to find and modify the text.