Changeset 33503 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Oct 27, 2010 1:12:57 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67095
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/RTSystemQueryTotalRam-win.cpp
r33498 r33503 38 38 39 39 40 RTDECL(int) RTSystemQueryTotalRam(uint64_t *pcb) 41 { 42 MEMORYSTATUSEX MemStatus; 43 44 AssertPtrReturn(pcb, VERR_INVALID_POINTER); 45 46 MemStatus.dwLength = sizeof(MemStatus); 47 if (!GlobalMemoryStatusEx(&MemStatus)) 48 return RTErrConvertFromWin32(GetLastError()); 49 50 *pcb = MemStatus.ullTotalPhys; 51 return VINF_SUCCESS; 52 } 40 53 41 54 42 RTDECL(int) RTSystemQuery TotalRam(uint64_t *pcb)55 RTDECL(int) RTSystemQueryAvailableRam(uint64_t *pcb) 43 56 { 44 57 MEMORYSTATUSEX MemStatus;
Note:
See TracChangeset
for help on using the changeset viewer.