Yes it compiles and its coming to where i want!
I want to capture size of memory of this process created, but now it doesn't return this buf size but the false part of readprocessmemory(). Pliz help
this function:
Code:ZeroMemory(buf, sizeof(buf));
if( ReadProcessMemory( hProcess, &baseaddr, &buf, bufsize, NULL ) == FALSE )
{
printf("\nProcess memory read failed", GetLastError());
_exit(1);
}
else
{
printf("\nProcess memory read: \n",buf);
}
return(0);
