Function 18, subfunction 20 - get information on RAM.
Parameters:
- eax = 18 - function number
- ebx = 20 - subfunction number
- ecx = pointer to the buffer for information (36 bytes)
Returned value:
- eax = total size of existing RAM in pages
or -1 if error has occured
- buffer pointed to by ecx contains the following information:
- +0: dword: total size of existing RAM in pages
- +4: dword: size of free RAM in pages
- +8: dword: number of page faults (exceptions #PF)
in applications
- +12: dword: size of kernel heap in bytes
- +16: dword: free in kernel heap in bytes
- +20: dword: total number of memory blocks in kernel heap
- +24: dword: number of free memory blocks in kernel heap
- +28: dword: size of maximum free block in kernel heap
(reserved)
- +32: dword: size of maximum allocated block in kernel heap
(reserved)