Returns information about how much memory is in the system.
#include <esm.h> int ESMQuery ( size_t bufferSize, ESMQueryInfo_t *buffer);
(IN) Specifies, in bytes, the size of the query information to be returned.
(OUT) Points to the buffer where memory information is returned in an ESMQueryInfo_t structure.
If successful, returns 0. Otherwise, returns a nonzero error code.
For other possible values, see Section 30.3, Return Values for ESM Functions.
The ESMQuery function returns information about total extended server memory, remaining extended server memory, and total memory below 4 GB. This function can be used to determine the size for an ESMAlloc call; however, there is no guarantee that memory available at the time of the query will still be available at the time of allocation.