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.
This commit is contained in:
Max Altgelt 2021-08-19 15:41:50 +02:00
parent f86a042980
commit d07af877ef
No known key found for this signature in database
GPG Key ID: 52C16AF8F6B69C5A
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ var (
processorArchitecture uint 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 { type SystemProcessInformation struct {
NextEntryOffset uint64 NextEntryOffset uint64

View File

@ -40,7 +40,7 @@ var (
processorArchitecture uint 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 { type systemProcessorInformation struct {
ProcessorArchitecture uint16 ProcessorArchitecture uint16