Returns information on available memory and resources.
WinResources (request# [, format])
(i) request# see below.
(i) format [optional] see below.
(i) see below.
The value of request# determines the piece of information returned.
Req# |
Return value |
10 |
a number between 0 and 100 giving a general idea of current memory utilization, in which 0 indicates no memory use and 100 indicates full memory use. |
11 |
total number of bytes of physical memory. |
12 |
number of bytes of physical memory available. |
13 |
total number of bytes that can be stored in the paging file. Note that this number does not represent the actual physical size of the paging file on disk. |
14 |
number of bytes available in the paging file. |
15 |
total number of bytes that can be described in the user mode portion of the virtual address space of the calling process. |
16 |
number of bytes of unreserved and uncommitted memory in the user mode portion of the virtual address space of the calling process. |
17 |
number of bytes of unreserved and uncommitted memory in the extended portion of the virtual address space of the calling process (Windows 2000 or newer). |
Format
This is an optional parameter that controls the format in which the size is returned. If the result is too large to be returned as an integer (larger than 2 gigabytes).
Format |
Meaning |
0 |
(Default) Floating Point |
1 |
Huge number. This is a long decimal number string, which may represent a number too large to be converted to an integer.'Huge number' is a special data type. It is a long decimal number string, which may represent a number too large to be converted to an integer. This value can be modified with standard arithmetic operations. |
2 |
64-bit Integer. This option causes the function to return a 64-bit integer when the return value is too large or too small to be represented by a 32-bit integer without loss of information. |
mem = WinResources(10) Message("Current memory utilization ", mem)