C ++ ReadProcessMemory缓冲区始终显示0

时间:2015-12-29 13:44:27

标签: c++ readprocessmemory

my& pTemp

所以我觉得我不太了解这一点。如果我没弄错的话,指针值应该存储在pTemp中,对吧?那么,如果基指针是0x00001A,那么pTemp不应该显示同样的东西吗?我是C ++的新手,任何帮助都会受到赞赏!

DWORD pointer = baseAddress;
DWORD pTemp;
DWORD pointerAddress;

cout << "Base Address: " << (DWORD*) pointer << endl;

for (int i = 0; i < PointerLevel; i++)
{
    if (i == 0)
    {
        ReadProcessMemory(handle, (LPVOID)pointer, &pTemp, sizeof(4), NULL);
        cout << "pTemp: " << pTemp << endl;

1 个答案:

答案 0 :(得分:0)

试试这个:

React.js