of_GetFreeMemory


pfcapsrv.pbl   >   pfc_n_cst_platformsol2   >   of_GetFreeMemory   

Full name pfc_n_cst_platformsol2.of_GetFreeMemory
Access public
Extend of long
Return value long
Prototype public function long of_GetFreeMemory()

Name Datatype
No Data

Name Datatype
lstr_memory os_memorystatus

public function long of_GetFreeMemory ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_GetFreeMemory
//
//	Access:  public
//
//	Arguments: none
//
//
//	Returns:  long - 	bytes of memory
//	
//
//	Description:  returns the number of bytes of memory currently available 
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0.02   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 Sybase, Inc. and its subsidiaries.  All rights reserved.
//	Any distribution of the PowerBuilder Foundation Classes (PFC)
//	source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
os_memorystatus lstr_memory

//structure size is 8 ulong's or 8 * 4 bytes
lstr_memory.ul_length = 32

GlobalMemoryStatus(lstr_memory)

//bytes of virtual memory available
Return (lstr_memory.ul_availpagefile)
end function

     
Name Owner
No Data

     
Name Owner
pfc_n_cst_platformsol2.GlobalMemoryStatus pfc_n_cst_platformsol2

     
Full name
pfc_n_cst_platformsol2.os_memorystatus

     
Name Scope
No Data