- Timestamp:
- Oct 27, 2010 1:12:57 PM (14 years ago)
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/RTSystemQueryTotalRam-posix.cpp
r33499 r33503 44 44 return VERR_NOT_IMPLEMENTED; 45 45 } 46 47 RTDECL(int) RTSystemQueryAvailableRam(uint64_t *pcb) 48 { 49 AssertPtrReturn(pcb, VERR_INVALID_POINTER); 50 return VERR_NOT_IMPLEMENTED; 51 } -
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.