Well, I’m working on a small project, and this may sounds stupid, but I want to keep a process from editing its own memory.
Is there something like VirtualProtect that can do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can mark memory in your own process as write protected. See
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366898(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366785(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366786(v=vs.85).aspx