想要把 DWORD dwValue换成 Cstring dwValue
这一段代码该怎么调整才能正常使用
BYTE byPage[KPAGE] = { 0 };
if (!ReadProcessMemory(hProcess, (LPCVOID)dwBaseAddr, (LPVOID)byPage, KPAGE, NULL))
{
return TRUE;
}
DWORD *pdwPointer = NULL;
pdwPointer = (DWORD *)byPage;
for (DWORD i = 0;i < KONEK;i++)
{
if (*pAddrListCounter >= addrListMax)
{
return FALSE;
}
if (pdwPointer[i] == dwValue)
{
pAddrList[*pAddrListCounter] = dwBaseAddr + i * sizeof(DWORD);
(*pAddrListCounter)++;
}
}