Using Win32 functions in Visual FoxPro Image Gallery
Debugging
..msdn
ReadProcessMemory
WriteProcessMemory
Code examples:
Moving shortcut to a specified position on the Windows Desktop
Obtaining names and positions for shortcuts located on the Windows Desktop
ReadProcessMemory
..msdn    Add comment     W32 Constants      Translate this page
Reads data from an area of memory in a specified process.
Code examples:
Obtaining names and positions for shortcuts located on the Windows Desktop
Moving shortcut to a specified position on the Windows Desktop
Declaration:
BOOL WINAPI ReadProcessMemory(
  __in   HANDLE hProcess,
  __in   LPCVOID lpBaseAddress,
  __out  LPVOID lpBuffer,
  __in   SIZE_T nSize,
  __out  SIZE_T *lpNumberOfBytesRead
);
FoxPro declaration:
DECLARE INTEGER ReadProcessMemory IN kernel32;
    INTEGER hProcess,;
    INTEGER lpBaseAddress,;
    INTEGER lpBuffer,;
    LONG nSize,;
    LONG @ lpNumberOfBytesRead
Parameters:
hProcess [in]
A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process.

lpBaseAddress [in]
A pointer to the base address in the specified process from which to read.

lpBuffer [out]
A pointer to a buffer that receives the contents from the address space of the specified process.

nSize [in]
The number of bytes to be read from the specified process.

lpNumberOfBytesRead [out]
A pointer to a variable that receives the number of bytes transferred into the specified buffer.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
The entire area to be read must be accessible or the operation fails.

See also: WriteProcessMemory, VirtualAllocEx, OpenProcess
Word Index links for the ReadProcessMemory :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2012-02-07 20:18:24
Modified: 2012-02-07 21:03:25
Visited in last 7 days: 11
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.75.69)
19 sec.Example: 'The original LoadPicture() function in VFP returns valid handles to bitmaps, icons, cursors, and metafiles'
22 sec.Function: 'UpdateResource'
26 sec.Function: 'TextOut'
Google
Advertise here!