开发者

ReadProcessMemory to memcpy conversion. Need help

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜