Will increase points to 200 when correct answer is given.
I need a function I can put in a DLL, which I would call like this:
TheData := ReadProcMem(ProcessID);
where TheData is a pchar.
It mustn't use the 'string' type as it means I would need to include an extra file with the dll (you can use pchar).
I want it to read in the entire memory of an app, starting from the base address (normally $400000), and reading till the end of the program.
I think it would need to use openprocess, readprocessmemory and closehandle. I have tried lots but I can't get it to work. Also I don't know the API to find the base address/end address.