Using Win32 functions in Visual FoxPro Image Gallery
Memory Management
..msdn
CopyMemory
FillMemory
GetProcessHeap
GetProcessHeaps
GlobalAlloc
GlobalFree
GlobalLock
GlobalMemoryStatus
GlobalReAlloc
GlobalSize
GlobalUnlock
HeapAlloc
HeapCompact
HeapFree
HeapLock
HeapReAlloc
HeapSize
HeapUnlock
HeapValidate
HeapWalk
LocalAlloc
LocalFree
LocalSize
VirtualAllocEx
VirtualFreeEx
ZeroMemory
Code examples:
Moving shortcut to a specified position on the Windows Desktop
Obtaining names and positions for shortcuts located on the Windows Desktop
VirtualAllocEx
..msdn    Add comment     W32 Constants      Translate this page
Reserves or commits a region of memory within the virtual address space of a specified process.
Code examples:
Moving shortcut to a specified position on the Windows Desktop
Obtaining names and positions for shortcuts located on the Windows Desktop
Declaration:
LPVOID WINAPI VirtualAllocEx(
  __in      HANDLE hProcess,
  __in_opt  LPVOID lpAddress,
  __in      SIZE_T dwSize,
  __in      DWORD flAllocationType,
  __in      DWORD flProtect
);
FoxPro declaration:
DECLARE INTEGER VirtualAllocEx IN kernel32;
    INTEGER hProcess,;
    INTEGER lpAddress,;
    LONG dwSize,;
    INTEGER flAllocationType,;
    INTEGER flProtect

Parameters:
hProcess [in]
The handle to a process. The function allocates memory within the virtual address space of this process.

lpAddress [in, optional]
The pointer that specifies a desired starting address for the region of pages that you want to allocate.

dwSize [in]
The size of the region of memory to allocate, in bytes.

flAllocationType [in]
The type of memory allocation -- a predefined value.

flProtect [in]
The memory protection for the region of pages to be allocated.
Return value:
If the function succeeds, the return value is the base address of the allocated region of pages.
My comment:
The function initializes the memory it allocates to zero, unless MEM_RESET is used.

See also: VirtualFreeEx
Word Index links for the VirtualAllocEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2012-02-07 20:08:56
Modified: 2012-02-07 20:13:15
Visited in last 7 days: 9
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 (23.22.59.252)
1.55 min.Function: 'GetDefaultPrinter'
Function group: 'Printing and Print Spooler'
Google
Advertise here!