github.com/reiver/go@v0.0.0-20150109200633-1d0c7792f172/src/runtime/defs_windows_amd64.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 = 0x100001
    24  	_CONTEXT_FULL    = 0x10000b
    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       uint64
    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  	pad_cgo_0            [4]byte
    63  	exceptioninformation [15]uint64
    64  }
    65  
    66  type m128a struct {
    67  	low  uint64
    68  	high int64
    69  }
    70  
    71  type context struct {
    72  	p1home               uint64
    73  	p2home               uint64
    74  	p3home               uint64
    75  	p4home               uint64
    76  	p5home               uint64
    77  	p6home               uint64
    78  	contextflags         uint32
    79  	mxcsr                uint32
    80  	segcs                uint16
    81  	segds                uint16
    82  	seges                uint16
    83  	segfs                uint16
    84  	seggs                uint16
    85  	segss                uint16
    86  	eflags               uint32
    87  	dr0                  uint64
    88  	dr1                  uint64
    89  	dr2                  uint64
    90  	dr3                  uint64
    91  	dr6                  uint64
    92  	dr7                  uint64
    93  	rax                  uint64
    94  	rcx                  uint64
    95  	rdx                  uint64
    96  	rbx                  uint64
    97  	rsp                  uint64
    98  	rbp                  uint64
    99  	rsi                  uint64
   100  	rdi                  uint64
   101  	r8                   uint64
   102  	r9                   uint64
   103  	r10                  uint64
   104  	r11                  uint64
   105  	r12                  uint64
   106  	r13                  uint64
   107  	r14                  uint64
   108  	r15                  uint64
   109  	rip                  uint64
   110  	anon0                [512]byte
   111  	vectorregister       [26]m128a
   112  	vectorcontrol        uint64
   113  	debugcontrol         uint64
   114  	lastbranchtorip      uint64
   115  	lastbranchfromrip    uint64
   116  	lastexceptiontorip   uint64
   117  	lastexceptionfromrip uint64
   118  }
   119  
   120  type overlapped struct {
   121  	internal     uint64
   122  	internalhigh uint64
   123  	anon0        [8]byte
   124  	hevent       *byte
   125  }