Contains information about server memory.
#include <esm.h> typedef struct { size64_t TotalExtendedMemory; size64_t RemainingExtendedMemory; size_t TotalMemoryBelow4G; } ESMQueryInfo_t;
Indicates the number of bytes of memory above 4 GB.
Indicates the number of bytes of memory above 4 GB that have not been allocated.
Indicates the number of bytes of memory below 4 GB.
The TotalExtendedMemory and TotalMemoryBelow4G fields can be used to determine the total amount of memory installed on the server.
For the fields in this structure that are long long (or 64-bit), use the ll length modifier with printf-type functions to display the values. For example:
printf("Total Extended Memory: %lld\n"