Exemplo n.º 1
0
/**
 * @return the amount of physical RAM in bytes, or zero in case of failure.
 */
static uint64
getphysmemsize_internal(void)
#ifdef MINGW32
{
	uint64 mem;

	if ((uint64) -1 == (mem = mingw_getphysmemsize())) {
		g_warning("%s(): GlobalMemoryStatusEx() failed: %m", G_STRFUNC);
		return 0;
	}

	return mem;
}
Exemplo n.º 2
0
/**
 * @return the amount of physical RAM in bytes, or zero in case of failure.
 */
guint64
getphysmemsize(void)
#ifdef MINGW32
{
	return mingw_getphysmemsize();
}