On Thu, April 28, 2005 13:52, Alexey Pavluchenko said: > P> Yes, this is interisting but I'd like for example to create a memory > image > P> of some part of ram to see exactly what is there. In old dos days it > was > P> possible to do like for i:=0 to 65535 do for j:=0 to 15 do > P> write(f,mem[i,j]); or similarly. But how can be done this in Windows? > > Here's an excerpt from WinAPI reference: > > === cut === > The ReadProcessMemory function reads memory in a specified process. > The entire area to be read must be accessible, or the operation fails. . .
Alternatively, you can create shared memory area (memory mapped file) - see e.g. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/creating_named_shared_memory.asp for Win32 API example. Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal