Skip to content

Commit d07af87

Browse files
committed
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.
1 parent f86a042 commit d07af87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

process/process_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var (
4040
processorArchitecture uint
4141
)
4242

43-
const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION | windows.PROCESS_QUERY_INFORMATION // WinXP doesn't know PROCESS_QUERY_LIMITED_INFORMATION
43+
const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION
4444

4545
type SystemProcessInformation struct {
4646
NextEntryOffset uint64

v3/process/process_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var (
4040
processorArchitecture uint
4141
)
4242

43-
const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION | windows.PROCESS_QUERY_INFORMATION // WinXP doesn't know PROCESS_QUERY_LIMITED_INFORMATION
43+
const processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION
4444

4545
type systemProcessorInformation struct {
4646
ProcessorArchitecture uint16

0 commit comments

Comments
 (0)