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:
Class for sound recording
GlobalReAlloc
..msdn    Add comment     W32 Constants      Translate this page
Changes the size or attributes of a specified global memory object. The size can increase or decrease.
Code examples:
Class for sound recording
Declaration:
HGLOBAL GlobalReAlloc(
    HGLOBAL hMem,
    SIZE_T dwBytes,
    UINT uFlags
);
FoxPro declaration:
DECLARE INTEGER GlobalReAlloc IN kernel32;
    INTEGER hMem,;
    LONG dwBytes,;
    LONG uFlags

Parameters:
hMem
[in] A handle to the global memory object to be reallocated. This handle is returned by either the GlobalAlloc or GlobalReAlloc function.

dwBytes
[in] The new size of the memory block, in bytes. If uFlags specifies GMEM_MODIFY, this parameter is ignored.

uFlags
[in] The reallocation options.
Return value:
If the function succeeds, the return value is a handle to the reallocated memory object, otherwise it is NULL.
My comment:
If GlobalReAlloc reallocates a movable object, the return value is a handle to the memory object. To convert the handle to a pointer, use the GlobalLock function.

If GlobalReAlloc reallocates a fixed object, the value of the handle returned is the address of the first byte of the memory block. To access the memory, a process can simply cast the return value to a pointer.
Word Index links for the GlobalReAlloc :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-04-26 12:32:29
Modified: 2006-04-26 12:34:31
Visited in last 7 days: 17
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.73.186)
19 sec.
Function group: 'Simple MAPI'
37 sec.Function: 'LocalFileTimeToFileTime'
53 sec.Function: 'InternetTimeFromSystemTime'
1.13 min.Function: 'SHCreateDirectory'
1.42 min.Function: 'GdipFillPieI'
1.73 min.Function: 'RasEnumAutodialAddresses'
2.03 min.Function: 'GetDC'
2.33 min.Function: 'PostMessage'
2.62 min.Function: 'JetTerm'
2.92 min.Function: 'LsaOpenPolicy'
Google
Advertise here!