>Is there any public domain FLL/DLL with functions for reading byte/string from memory address(s) ? Something like PEEK(segment,offset). I didn't find any solutions in WIN32 API.
Sort of, but not really. There are at least two API calls, lstrcopy() and RtlMoveMemory() that can be used to copy a block of memory specified as a 32 bit virtual address. lstrcopy() copies a null terminated string to a specified buffer location up to the first null character, while RtlMoveMemory() will copy a block of an exact, speifiec size.
There is no equivalent to PEEK() and POKE() because the memory addressing scheme is no longer set up in the form segment:offset, and because the addresses specified are virtual memory addresses, not physical addresses; they may be physical memory at the absolute specified location, another physical location mapped to the virtual address you specify, or a location in the swap file; you have no way of knowing (and in most Win32 programming environments, you don't care, either.) If you're trying to use this to locate addresses in the memory address specae, like BIOS details or the location of a real-mode buffer, you're not going to be able to do it.
>
>Sergey Rewa
>
reware@cafe.redcom.ru