ReadProcessMemory
Hello, i'm getting an error i havn't seen before. Any help would be appriciated.
Everytime i run the program it the console outputs:
"Application has requested the runtime to terminate it in an unusual way"
I have no idea why this is happening T.T
Thanks in advance.
Code:
HANDLE handle;
DWORD base = 0x00400000;
DWORD end = 0x7FFFFFFF;
long bSize = (end-base);
LPBYTE buffer = new byte[bSize];
void Read(DWORD value)
{
ReadProcessMemory(handle,(LPVOID)base,buffer,bSize,0);
for(int i = 0; i < bSize; i++ )
{
if(buffer[i] == value)
{
cout << hex << base + i << endl;
}
}
cout << "Done";
getch();
}
"Application has requested the runtime to terminate it in an unusual way"
I have no idea why this is happening T.T
Thanks in advance.

