From ff7e81ed81e608d864d81d5dabebe8136a3c4ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 11 Feb 2026 21:17:36 +0800 Subject: [PATCH] Memory (Windows): adds comments [ci skip] --- src/detection/memory/memory_windows.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detection/memory/memory_windows.c b/src/detection/memory/memory_windows.c index 666d79727..38362fd40 100644 --- a/src/detection/memory/memory_windows.c +++ b/src/detection/memory/memory_windows.c @@ -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";