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:
Using the heap of the calling process to allocate memory blocks
HeapSize
..msdn    Add comment     W32 Constants      Translate this page
The HeapSize function retrieves the size of a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
Code examples:
Using the heap of the calling process to allocate memory blocks
Declaration:
DWORD HeapSize(
  HANDLE hHeap,  // handle to heap
  DWORD dwFlags, // heap size options
  LPCVOID lpMem  // pointer to memory
);
FoxPro declaration:
DECLARE INTEGER HeapSize IN kernel32;
    INTEGER hHeap,;
    INTEGER dwFlags,;
    INTEGER lpMem
Parameters:
hHeap
[in] Specifies the heap in which the memory block resides. This handle is returned by the HeapCreate or GetProcessHeap function.

dwFlags
[in] Specifies several controllable aspects of accessing the memory block.

lpMem
[in] Pointer to the memory block whose size the function will obtain. This is a pointer returned by the HeapAlloc or HeapReAlloc function.
Return value:
If the function succeeds, the return value is the size, in bytes, of the allocated memory block.

If the function fails, the return value is -1. The function does not call SetLastError. An application cannot call GetLastError for extended error information.
Word Index links for the HeapSize :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-01 08:23:59
Modified: 2001-12-01 08:26:17
Visited in last 7 days: 12
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.196.199.46)
3 sec.Function: 'NetShareDel'
Function group: 'Network Management'
14 sec.Function: 'DeleteFileTransacted'
Function group: 'File Management'
40 sec.Function: 'InternetDial'
Function group: 'Internet Functions (WinInet)'
43 sec.Example: 'Running a regular FoxPro form while main VFP window is minimized'
46 sec.Example: 'Class for sound recording'
8 day(s)Function: 'ReleaseDC'
 Function: 'InternetCloseHandle'
Function group: 'Internet Functions (WinInet)'
 Function: 'FtpGetFileSize'
 Function: 'NetApiBufferFree'
Google
Advertise here!