Not sure how far you are going to get with it,
But research Pinvoke, Windows API Map , and interop and that's just to understand the basic concept of how to use and impliment. It's a little more extensive to understand, Copy and Paste, You won't learn a thing, But you won't get anywhere with just WriteProcessMemory() either, so better to research the above.