github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/runtime/defs_windows_386.h (about) 1 // c:\Users\Hector\Code\go\bin\godefs.exe defs.c 2 3 // MACHINE GENERATED - DO NOT EDIT. 4 5 // Constants 6 enum { 7 PROT_NONE = 0, 8 PROT_READ = 0x1, 9 PROT_WRITE = 0x2, 10 PROT_EXEC = 0x4, 11 MAP_ANON = 0x1, 12 MAP_PRIVATE = 0x2, 13 DUPLICATE_SAME_ACCESS = 0x2, 14 THREAD_PRIORITY_HIGHEST = 0x2, 15 SIGINT = 0x2, 16 CTRL_C_EVENT = 0, 17 CTRL_BREAK_EVENT = 0x1, 18 CONTEXT_CONTROL = 0x10001, 19 CONTEXT_FULL = 0x10007, 20 EXCEPTION_ACCESS_VIOLATION = 0xc0000005, 21 EXCEPTION_BREAKPOINT = 0x80000003, 22 EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d, 23 EXCEPTION_FLT_DIVIDE_BY_ZERO = 0xc000008e, 24 EXCEPTION_FLT_INEXACT_RESULT = 0xc000008f, 25 EXCEPTION_FLT_OVERFLOW = 0xc0000091, 26 EXCEPTION_FLT_UNDERFLOW = 0xc0000093, 27 EXCEPTION_INT_DIVIDE_BY_ZERO = 0xc0000094, 28 EXCEPTION_INT_OVERFLOW = 0xc0000095, 29 }; 30 31 // Types 32 #pragma pack on 33 34 typedef struct SystemInfo SystemInfo; 35 struct SystemInfo { 36 byte Pad_godefs_0[4]; 37 uint32 dwPageSize; 38 void *lpMinimumApplicationAddress; 39 void *lpMaximumApplicationAddress; 40 uint32 dwActiveProcessorMask; 41 uint32 dwNumberOfProcessors; 42 uint32 dwProcessorType; 43 uint32 dwAllocationGranularity; 44 uint16 wProcessorLevel; 45 uint16 wProcessorRevision; 46 }; 47 48 typedef struct ExceptionRecord ExceptionRecord; 49 struct ExceptionRecord { 50 uint32 ExceptionCode; 51 uint32 ExceptionFlags; 52 ExceptionRecord *ExceptionRecord; 53 void *ExceptionAddress; 54 uint32 NumberParameters; 55 uint32 ExceptionInformation[15]; 56 }; 57 58 typedef struct FloatingSaveArea FloatingSaveArea; 59 struct FloatingSaveArea { 60 uint32 ControlWord; 61 uint32 StatusWord; 62 uint32 TagWord; 63 uint32 ErrorOffset; 64 uint32 ErrorSelector; 65 uint32 DataOffset; 66 uint32 DataSelector; 67 uint8 RegisterArea[80]; 68 uint32 Cr0NpxState; 69 }; 70 71 typedef struct Context Context; 72 struct Context { 73 uint32 ContextFlags; 74 uint32 Dr0; 75 uint32 Dr1; 76 uint32 Dr2; 77 uint32 Dr3; 78 uint32 Dr6; 79 uint32 Dr7; 80 FloatingSaveArea FloatSave; 81 uint32 SegGs; 82 uint32 SegFs; 83 uint32 SegEs; 84 uint32 SegDs; 85 uint32 Edi; 86 uint32 Esi; 87 uint32 Ebx; 88 uint32 Edx; 89 uint32 Ecx; 90 uint32 Eax; 91 uint32 Ebp; 92 uint32 Eip; 93 uint32 SegCs; 94 uint32 EFlags; 95 uint32 Esp; 96 uint32 SegSs; 97 uint8 ExtendedRegisters[512]; 98 }; 99 #pragma pack off