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:
Validating the heap of the calling process
HeapCompact
..msdn    Add comment     W32 Constants      Translate this page
Attempts to compact a specified heap. It compacts the heap by coalescing adjacent free blocks of memory and decommitting large free blocks of memory.
Code examples:
Validating the heap of the calling process
Declaration:
UINT HeapCompact(
  HANDLE hHeap,  // handle to heap
  DWORD dwFlags  // heap access options
);
FoxPro declaration:
DECLARE INTEGER HeapCompact IN kernel32;
    INTEGER hHeap,;
    INTEGER dwFlags
Parameters:
hHeap
[in] Handle to the heap that the function will attempt to compact.

dwFlags
[in] Specifies heap access during function operation.
Return value:
If the function succeeds, the return value is the size, in bytes, of the largest committed free block in the heap. If the function fails, the return value is zero.
My comment:
Windows NT/2000/XP: Included in Windows NT 3.5 and later.
Windows 95/98/Me: Unsupported.
Word Index links for the HeapCompact :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-01 08:44:29
Modified: 2001-12-01 08:46:32
Visited in last 7 days: 10
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.158.212.93)
12 sec.Function: 'CeRapiFreeBuffer'
21 sec.Function: 'GetFileVersionInfo'
31 sec.Function: 'CeFindNextDatabaseEx'
41 sec.Function: 'GetPhysicalMonitorsFromHMONITOR'
51 sec.
Function group: 'HTTP Functions (WinHTTP)'
1.07 min.Function: 'NetGetJoinInformation'
1.25 min.Function: 'ReadFile'
1.4 min.Function: 'EnumJobs'
1.57 min.Function: 'FlashWindowEx'
1.73 min.Function: 'CeRegEnumKeyEx'
Google
Advertise here!