From d07af877ef62b5f74cc1076558e8e936a4845fb2 Mon Sep 17 00:00:00 2001 From: Max Altgelt Date: Thu, 19 Aug 2021 15:41:50 +0200 Subject: [PATCH] chore: Drop PROCESS_QUERY_INFORMATION support PROCESS_QUERY_INFORMATION was used for compatibility reasons with Windows XP / Server 2003. Both are no longer supported in Golang and haven't been for a while (since Go 1.11). It should be safe to drop this flag. PROCESS_QUERY_LIMITED_INFORMATION supports PPL process such as LSASS, which are not queryable without this change. --- process/process_windows.go | 2 +- v3/process/process_windows.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/process/process_windows.go b/process/process_windows.go index 8f9e499..c88f949 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -40,7 +40,7 @@ var ( processorArchitecture uint ) -const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION | windows.PROCESS_QUERY_INFORMATION // WinXP doesn't know PROCESS_QUERY_LIMITED_INFORMATION +const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION type SystemProcessInformation struct { NextEntryOffset uint64 diff --git a/v3/process/process_windows.go b/v3/process/process_windows.go index 1b8f241..52c73d9 100644 --- a/v3/process/process_windows.go +++ b/v3/process/process_windows.go @@ -40,7 +40,7 @@ var ( processorArchitecture uint ) -const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION | windows.PROCESS_QUERY_INFORMATION // WinXP doesn't know PROCESS_QUERY_LIMITED_INFORMATION +const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION type systemProcessorInformation struct { ProcessorArchitecture uint16