github.com/reiver/go@v0.0.0-20150109200633-1d0c7792f172/src/runtime/defs_windows_386.go (about) 1 // created by cgo -cdefs and then converted to Go 2 // cgo -cdefs defs_windows.go 3 4 package runtime 5 6 const ( 7 _PROT_NONE = 0 8 _PROT_READ = 1 9 _PROT_WRITE = 2 10 _PROT_EXEC = 4 11 12 _MAP_ANON = 1 13 _MAP_PRIVATE = 2 14 15 _DUPLICATE_SAME_ACCESS = 0x2 16 _THREAD_PRIORITY_HIGHEST = 0x2 17 18 _SIGPROF = 0 // dummy value for badsignal 19 _SIGINT = 0x2 20 _CTRL_C_EVENT = 0x0 21 _CTRL_BREAK_EVENT = 0x1 22 23 _CONTEXT_CONTROL = 0x10001 24 _CONTEXT_FULL = 0x10007 25 26 _EXCEPTION_ACCESS_VIOLATION = 0xc0000005 27 _EXCEPTION_BREAKPOINT = 0x80000003 28 _EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d 29 _EXCEPTION_FLT_DIVIDE_BY_ZERO = 0xc000008e 30 _EXCEPTION_FLT_INEXACT_RESULT = 0xc000008f 31 _EXCEPTION_FLT_OVERFLOW = 0xc0000091 32 _EXCEPTION_FLT_UNDERFLOW = 0xc0000093 33 _EXCEPTION_INT_DIVIDE_BY_ZERO = 0xc0000094 34 _EXCEPTION_INT_OVERFLOW = 0xc0000095 35 36 _INFINITE = 0xffffffff 37 _WAIT_TIMEOUT = 0x102 38 39 _EXCEPTION_CONTINUE_EXECUTION = -0x1 40 _EXCEPTION_CONTINUE_SEARCH = 0x0 41 ) 42 43 type systeminfo struct { 44 anon0 [4]byte 45 dwpagesize uint32 46 lpminimumapplicationaddress *byte 47 lpmaximumapplicationaddress *byte 48 dwactiveprocessormask uint32 49 dwnumberofprocessors uint32 50 dwprocessortype uint32 51 dwallocationgranularity uint32 52 wprocessorlevel uint16 53 wprocessorrevision uint16 54 } 55 56 type exceptionrecord struct { 57 exceptioncode uint32 58 exceptionflags uint32 59 exceptionrecord *exceptionrecord 60 exceptionaddress *byte 61 numberparameters uint32 62 exceptioninformation [15]uint32 63 } 64 65 type floatingsavearea struct { 66 controlword uint32 67 statusword uint32 68 tagword uint32 69 erroroffset uint32 70 errorselector uint32 71 dataoffset uint32 72 dataselector uint32 73 registerarea [80]uint8 74 cr0npxstate uint32 75 } 76 77 type context struct { 78 contextflags uint32 79 dr0 uint32 80 dr1 uint32 81 dr2 uint32 82 dr3 uint32 83 dr6 uint32 84 dr7 uint32 85 floatsave floatingsavearea 86 seggs uint32 87 segfs uint32 88 seges uint32 89 segds uint32 90 edi uint32 91 esi uint32 92 ebx uint32 93 edx uint32 94 ecx uint32 95 eax uint32 96 ebp uint32 97 eip uint32 98 segcs uint32 99 eflags uint32 100 esp uint32 101 segss uint32 102 extendedregisters [512]uint8 103 } 104 105 type overlapped struct { 106 internal uint32 107 internalhigh uint32 108 anon0 [8]byte 109 hevent *byte 110 }