go/src/runtime/syscall_windows_test.go
Line 815 in 01e072d
| | _PROCESS_ALL_ACCESS=syscall.STANDARD_RIGHTS_REQUIRED|syscall.SYNCHRONIZE|0xfff |
From winnt.h we can see that if we are running on a version of Windows greater than Vista, 0xFFFF
should be or-ed with the STANDARD_RIGHTS_REQUIRED
and SYNCHRONIZE
flags.
- winnt.h#L11279*
#if (NTDDI_VERSION >= NTDDI_VISTA)
#define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | \
0xFFFF)
#else
#define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | \
0xFFF)
#endif
1条答案
按热度按时间5t7ly7z51#
https://golang.org/cl/153717提到了这个问题:
runtime: PROCESS_ALL_ACCESS didn't check for 0XFFFF