github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/defs_windows_386.h (about) 1 // Created by cgo -cdefs - DO NOT EDIT 2 // cgo -cdefs defs_windows.go 3 4 5 enum { 6 PROT_NONE = 0, 7 PROT_READ = 1, 8 PROT_WRITE = 2, 9 PROT_EXEC = 4, 10 11 MAP_ANON = 1, 12 MAP_PRIVATE = 2, 13 14 DUPLICATE_SAME_ACCESS = 0x2, 15 THREAD_PRIORITY_HIGHEST = 0x2, 16 17 SIGINT = 0x2, 18 CTRL_C_EVENT = 0x0, 19 CTRL_BREAK_EVENT = 0x1, 20 21 CONTEXT_CONTROL = 0x10001, 22 CONTEXT_FULL = 0x10007, 23 24 EXCEPTION_ACCESS_VIOLATION = 0xc0000005, 25 EXCEPTION_BREAKPOINT = 0x80000003, 26 EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d, 27 EXCEPTION_FLT_DIVIDE_BY_ZERO = 0xc000008e, 28 EXCEPTION_FLT_INEXACT_RESULT = 0xc000008f, 29 EXCEPTION_FLT_OVERFLOW = 0xc0000091, 30 EXCEPTION_FLT_UNDERFLOW = 0xc0000093, 31 EXCEPTION_INT_DIVIDE_BY_ZERO = 0xc0000094, 32 EXCEPTION_INT_OVERFLOW = 0xc0000095, 33 34 INFINITE = 0xffffffff, 35 WAIT_TIMEOUT = 0x102, 36 37 EXCEPTION_CONTINUE_EXECUTION = -0x1, 38 EXCEPTION_CONTINUE_SEARCH = 0x0, 39 }; 40 41 typedef struct SystemInfo SystemInfo; 42 typedef struct ExceptionRecord ExceptionRecord; 43 typedef struct FloatingSaveArea FloatingSaveArea; 44 typedef struct M128a M128a; 45 typedef struct Context Context; 46 typedef struct Overlapped Overlapped; 47 48 #pragma pack on 49 50 struct SystemInfo { 51 byte anon0[4]; 52 uint32 dwPageSize; 53 byte *lpMinimumApplicationAddress; 54 byte *lpMaximumApplicationAddress; 55 uint32 dwActiveProcessorMask; 56 uint32 dwNumberOfProcessors; 57 uint32 dwProcessorType; 58 uint32 dwAllocationGranularity; 59 uint16 wProcessorLevel; 60 uint16 wProcessorRevision; 61 }; 62 struct ExceptionRecord { 63 uint32 ExceptionCode; 64 uint32 ExceptionFlags; 65 ExceptionRecord *ExceptionRecord; 66 byte *ExceptionAddress; 67 uint32 NumberParameters; 68 uint32 ExceptionInformation[15]; 69 }; 70 struct FloatingSaveArea { 71 uint32 ControlWord; 72 uint32 StatusWord; 73 uint32 TagWord; 74 uint32 ErrorOffset; 75 uint32 ErrorSelector; 76 uint32 DataOffset; 77 uint32 DataSelector; 78 uint8 RegisterArea[80]; 79 uint32 Cr0NpxState; 80 }; 81 struct Context { 82 uint32 ContextFlags; 83 uint32 Dr0; 84 uint32 Dr1; 85 uint32 Dr2; 86 uint32 Dr3; 87 uint32 Dr6; 88 uint32 Dr7; 89 FloatingSaveArea FloatSave; 90 uint32 SegGs; 91 uint32 SegFs; 92 uint32 SegEs; 93 uint32 SegDs; 94 uint32 Edi; 95 uint32 Esi; 96 uint32 Ebx; 97 uint32 Edx; 98 uint32 Ecx; 99 uint32 Eax; 100 uint32 Ebp; 101 uint32 Eip; 102 uint32 SegCs; 103 uint32 EFlags; 104 uint32 Esp; 105 uint32 SegSs; 106 uint8 ExtendedRegisters[512]; 107 }; 108 struct Overlapped { 109 uint32 Internal; 110 uint32 InternalHigh; 111 byte anon0[8]; 112 byte *hEvent; 113 }; 114 115 116 #pragma pack off