Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read from memory address
Message
From
21/12/1998 05:58:49
 
 
To
20/12/1998 22:50:50
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00169288
Message ID:
00169312
Views:
21
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform