문제

ReadProcessMemory(hProc,(LPCVOID)(7845CDDC),&PHP,4,NULL);

When I enter that i get this error in Dev-C++ Win32 :

C:\Dev-Cpp\main.cpp invalid suffix "CDDC" on integer constant

any idea why?

도움이 되었습니까?

해결책

You probably want a hex constant, that is to say 0x7845CDDC.

ReadProcessMemory(hProc,(LPCVOID)(0x7845CDDC),&PHP,4,NULL);

다른 팁

ReadProcessMemory should have the lpBaseAddress parameter as a pointer to the base address in the specified process from which to read. The problem with "7845CDDC" is that it is a Hex value (should be 0x7845CDDC), but you can enter the value as an Decimal as well (will be 2017840604).

So you can call:

ReadProcessMemory(hProc,(LPCVOID)(2017840604),&PHP,4,NULL);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top