I am studying about the windows programming, and i have some question.
I saw a security module that defends memory data. if one process is going to change other process
General answer to your question: no, there are no such API or functions.
But there are different methods where you can achieve same result. 1. Api hooking. You can Hook functions in system (such as WriteProcessMemory) and then check if somebody trying to change something in your process. More on this here. 2. Debugging. You can use debugging breakpoints on functions or memory change.