[Quote=引用 5 楼 zuoluoyun 的回复:]
那也就是说WriteProcessMemory在读写内存的时候会自动处理内存有保护的情况 ?
[/Quote]
WriteProcessMemory不会处理内存有保护的情况。也只能改写“可写”属性的内存。
MSDN的解释:
The WriteProcessMemory function writes data to an area of memory in a specified process. The entire area to be written to must be accessible or the operation fails.