mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: update TOKEN_ALL_ACCESS according to WinNT.h
TOKEN_ALL_ACCESS was changed at some stage by Microsoft. Updates #25775 Change-Id: I3e18914207a0020b2ebfb99f4e57aa55f9de813b Reviewed-on: https://go-review.googlesource.com/117635 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
parent
b3562658fd
commit
b74f7321e5
3 changed files with 11 additions and 1 deletions
|
|
@ -377,9 +377,11 @@ pkg syscall (windows-386), type CertContext struct, CertInfo uintptr
|
||||||
pkg syscall (windows-386), type CertRevocationInfo struct, CrlInfo uintptr
|
pkg syscall (windows-386), type CertRevocationInfo struct, CrlInfo uintptr
|
||||||
pkg syscall (windows-386), type CertRevocationInfo struct, OidSpecificInfo uintptr
|
pkg syscall (windows-386), type CertRevocationInfo struct, OidSpecificInfo uintptr
|
||||||
pkg syscall (windows-386), type CertSimpleChain struct, TrustListInfo uintptr
|
pkg syscall (windows-386), type CertSimpleChain struct, TrustListInfo uintptr
|
||||||
|
pkg syscall (windows-386), const TOKEN_ALL_ACCESS = 983295
|
||||||
pkg syscall (windows-amd64), type CertChainPolicyPara struct, ExtraPolicyPara uintptr
|
pkg syscall (windows-amd64), type CertChainPolicyPara struct, ExtraPolicyPara uintptr
|
||||||
pkg syscall (windows-amd64), type CertChainPolicyStatus struct, ExtraPolicyStatus uintptr
|
pkg syscall (windows-amd64), type CertChainPolicyStatus struct, ExtraPolicyStatus uintptr
|
||||||
pkg syscall (windows-amd64), type CertContext struct, CertInfo uintptr
|
pkg syscall (windows-amd64), type CertContext struct, CertInfo uintptr
|
||||||
pkg syscall (windows-amd64), type CertRevocationInfo struct, CrlInfo uintptr
|
pkg syscall (windows-amd64), type CertRevocationInfo struct, CrlInfo uintptr
|
||||||
pkg syscall (windows-amd64), type CertRevocationInfo struct, OidSpecificInfo uintptr
|
pkg syscall (windows-amd64), type CertRevocationInfo struct, OidSpecificInfo uintptr
|
||||||
pkg syscall (windows-amd64), type CertSimpleChain struct, TrustListInfo uintptr
|
pkg syscall (windows-amd64), type CertSimpleChain struct, TrustListInfo uintptr
|
||||||
|
pkg syscall (windows-amd64), const TOKEN_ALL_ACCESS = 983295
|
||||||
|
|
|
||||||
|
|
@ -221,6 +221,7 @@ const (
|
||||||
TOKEN_ADJUST_PRIVILEGES
|
TOKEN_ADJUST_PRIVILEGES
|
||||||
TOKEN_ADJUST_GROUPS
|
TOKEN_ADJUST_GROUPS
|
||||||
TOKEN_ADJUST_DEFAULT
|
TOKEN_ADJUST_DEFAULT
|
||||||
|
TOKEN_ADJUST_SESSIONID
|
||||||
|
|
||||||
TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED |
|
TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED |
|
||||||
TOKEN_ASSIGN_PRIMARY |
|
TOKEN_ASSIGN_PRIMARY |
|
||||||
|
|
@ -230,7 +231,8 @@ const (
|
||||||
TOKEN_QUERY_SOURCE |
|
TOKEN_QUERY_SOURCE |
|
||||||
TOKEN_ADJUST_PRIVILEGES |
|
TOKEN_ADJUST_PRIVILEGES |
|
||||||
TOKEN_ADJUST_GROUPS |
|
TOKEN_ADJUST_GROUPS |
|
||||||
TOKEN_ADJUST_DEFAULT
|
TOKEN_ADJUST_DEFAULT |
|
||||||
|
TOKEN_ADJUST_SESSIONID
|
||||||
TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY
|
TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY
|
||||||
TOKEN_WRITE = STANDARD_RIGHTS_WRITE |
|
TOKEN_WRITE = STANDARD_RIGHTS_WRITE |
|
||||||
TOKEN_ADJUST_PRIVILEGES |
|
TOKEN_ADJUST_PRIVILEGES |
|
||||||
|
|
|
||||||
|
|
@ -70,3 +70,9 @@ func ExampleLoadLibrary() {
|
||||||
build := uint16(r >> 16)
|
build := uint16(r >> 16)
|
||||||
print("windows version ", major, ".", minor, " (Build ", build, ")\n")
|
print("windows version ", major, ".", minor, " (Build ", build, ")\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestTOKEN_ALL_ACCESS(t *testing.T) {
|
||||||
|
if syscall.TOKEN_ALL_ACCESS != 0xF01FF {
|
||||||
|
t.Errorf("TOKEN_ALL_ACCESS = %x, want 0xF01FF", syscall.TOKEN_ALL_ACCESS)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue