开发者

ReadProcessMemory to memcpy conversion. Need help

开发者 https://www.devze.com 2022-12-23 23:59 出处:网络
I\'m using: ReadProcessMemory(hProcess,(PVOID)(dwEngine_DLL+0x2E15C8+i),&memSnap[i],1,NULL); //Store the memory 开发者_开发知识库into a byte array

I'm using:

ReadProcessMemory(hProcess,(PVOID)(dwEngine_DLL+0x2E15C8+i),&memSnap[i],1,NULL); //Store the memory 开发者_开发知识库into a byte array

To store a section of memory into an array of byte, but I realized this was sloppy since I'm in the same address space, but I'm not sure how to do the same thing with memcpy.


My bad, I figured it out.

memcpy((void *)&memSnap[i],(PVOID)(dwEngine_DLL+0x2E15C8+i),1);

Pretty easy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号