/[pcsx2_0.9.7]/trunk/common/src/Utilities/Windows/WinMisc.cpp
ViewVC logotype

Diff of /trunk/common/src/Utilities/Windows/WinMisc.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/common/src/Utilities/Windows/WinMisc.cpp	2010/12/23 11:48:33	279
+++ trunk/common/src/Utilities/Windows/WinMisc.cpp	2010/12/23 12:02:12	280
@@ -39,6 +39,14 @@
 	return count.QuadPart;
 }
 
+u64 GetPhysicalMemory()
+{
+	MEMORYSTATUSEX status;
+	status.dwLength = sizeof(status);
+	GlobalMemoryStatusEx(&status);
+	return status.ullTotalPhys;
+}
+
 // Windows SDK 7 provides this but previous ones do not, so roll our own in those cases:
 #ifndef VER_SUITE_WH_SERVER
 #	define VER_SUITE_WH_SERVER                 0x00008000

 

  ViewVC Help
Powered by ViewVC 1.1.22