|
of_GetPhysicalMemory
|
|
Full name
|
pfc_n_cst_platformunicode.of_GetPhysicalMemory
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_GetPhysicalMemory()
|
Name
|
Datatype
|
lstr_memory
|
os_memorystatus
|
public function long of_GetPhysicalMemory ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetPhysicalMemory
//
// Access: public
//
// Arguments: none
//
//
// Returns: long - total memory
//
//
// Description: Return the total physical memory (RAM) installed in the machine
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 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_totalphys)
end function