Memory (Windows): adds comments [ci skip]
This commit is contained in:
1 parent
681a102a2b
commit
ff7e81ed81
1 file changed
+3
@@ -7,6 +7,9 @@ const char* ffDetectMemory(FFMemoryResult* ram)
|
||||
MEMORYSTATUSEX statex = {
|
||||
.dwLength = sizeof(statex),
|
||||
};
|
||||
// GlobalMemoryStatusEx() internally uses
|
||||
// NtQuerySystemInformation(SystemBasicPerformanceInformation) in Win 7, and
|
||||
// NtQuerySystemInformation(SystemMemoryUsageInformation) in Win 10
|
||||
if (!GlobalMemoryStatusEx(&statex))
|
||||
return "GlobalMemoryStatusEx() failed";
|
||||
|
||||
|
||||
Reference in new issue
Block a user