github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/runtime/defs_windows.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Windows architecture-independent definitions. 6 7 package runtime 8 9 const ( 10 _PROT_NONE = 0 11 _PROT_READ = 1 12 _PROT_WRITE = 2 13 _PROT_EXEC = 4 14 15 _MAP_ANON = 1 16 _MAP_PRIVATE = 2 17 18 _DUPLICATE_SAME_ACCESS = 0x2 19 _THREAD_PRIORITY_HIGHEST = 0x2 20 21 _SIGINT = 0x2 22 _SIGTERM = 0xF 23 _CTRL_C_EVENT = 0x0 24 _CTRL_BREAK_EVENT = 0x1 25 _CTRL_CLOSE_EVENT = 0x2 26 _CTRL_LOGOFF_EVENT = 0x5 27 _CTRL_SHUTDOWN_EVENT = 0x6 28 29 _EXCEPTION_ACCESS_VIOLATION = 0xc0000005 30 _EXCEPTION_IN_PAGE_ERROR = 0xc0000006 31 _EXCEPTION_BREAKPOINT = 0x80000003 32 _EXCEPTION_ILLEGAL_INSTRUCTION = 0xc000001d 33 _EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d 34 _EXCEPTION_FLT_DIVIDE_BY_ZERO = 0xc000008e 35 _EXCEPTION_FLT_INEXACT_RESULT = 0xc000008f 36 _EXCEPTION_FLT_OVERFLOW = 0xc0000091 37 _EXCEPTION_FLT_UNDERFLOW = 0xc0000093 38 _EXCEPTION_INT_DIVIDE_BY_ZERO = 0xc0000094 39 _EXCEPTION_INT_OVERFLOW = 0xc0000095 40 41 _INFINITE = 0xffffffff 42 _WAIT_TIMEOUT = 0x102 43 44 _EXCEPTION_CONTINUE_EXECUTION = -0x1 45 _EXCEPTION_CONTINUE_SEARCH = 0x0 46 ) 47 48 type systeminfo struct { 49 anon0 [4]byte 50 dwpagesize uint32 51 lpminimumapplicationaddress *byte 52 lpmaximumapplicationaddress *byte 53 dwactiveprocessormask uintptr 54 dwnumberofprocessors uint32 55 dwprocessortype uint32 56 dwallocationgranularity uint32 57 wprocessorlevel uint16 58 wprocessorrevision uint16 59 } 60 61 type exceptionpointers struct { 62 record *exceptionrecord 63 context *context 64 } 65 66 type exceptionrecord struct { 67 exceptioncode uint32 68 exceptionflags uint32 69 exceptionrecord *exceptionrecord 70 exceptionaddress uintptr 71 numberparameters uint32 72 exceptioninformation [15]uintptr 73 } 74 75 type overlapped struct { 76 internal uintptr 77 internalhigh uintptr 78 anon0 [8]byte 79 hevent *byte 80 } 81 82 type memoryBasicInformation struct { 83 baseAddress uintptr 84 allocationBase uintptr 85 allocationProtect uint32 86 regionSize uintptr 87 state uint32 88 protect uint32 89 type_ uint32 90 }