ReadProcessMemory and WriteProcessMemory Gone Wrong

后端 未结 1 772
慢半拍i
慢半拍i 2021-01-16 08:06

I am creating this memory editor, but the subroutine ReadProcessMemory fails; so does WriteProcessMemory. I have tried to get the last error by using the GetLastError subrou

相关标签:
1条回答
  • 2021-01-16 08:44

    For ReadProcessMemory you need PROCESS_VM_READ permission and for WriteProcessMemory you need PROCESS_VM_OPERATION permission.

    see http://msdn.microsoft.com/en-us/library/ms680553%28v=vs.85%29.aspx
    and http://msdn.microsoft.com/en-us/library/ms681674%28v=vs.85%29.aspx

    Very likely you need Administrator rights, perhaps even SeDebugPrivilege (which you would need to elevate your process to even with Administrator rights)...

    0 讨论(0)
提交回复
热议问题