mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Memory (Windows): adds comments [ci skip]
This commit is contained in:
@@ -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