Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I Retrive Memory ?
Message
De
21/04/1999 17:52:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00210754
Message ID:
00210777
Vues:
26
>Hi All.
>
>I have a problem related with read and write segments of memory !
>
>Is there a way to peek and poke value from memory with VFP ?
>

Yes; there are several API calls that you can use to read and write memory locations. Take a look at the source code for CLSHEAP; there are UDFs to GetMem() and SetMem() using RtlCopyMemory().

You're probably going to hurt yourself badly, since the memory map under Windows is very, very different than the memory map under DOS. You can (and likely will) GPF (or C0000005) out VFP if you attempt to access memory in the linerar address space that (1) isn't defined or (2) isn't owned by VFP's process or explicitly shared to VFP by its owner.

>Thanks.
>
>Pedro
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform