Black Lives Matter. Support the Equal Justice Initiative.

Source file src/runtime/defs_windows.go

Documentation: runtime

     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_BREAKPOINT           = 0x80000003
    31  	_EXCEPTION_ILLEGAL_INSTRUCTION  = 0xc000001d
    32  	_EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d
    33  	_EXCEPTION_FLT_DIVIDE_BY_ZERO   = 0xc000008e
    34  	_EXCEPTION_FLT_INEXACT_RESULT   = 0xc000008f
    35  	_EXCEPTION_FLT_OVERFLOW         = 0xc0000091
    36  	_EXCEPTION_FLT_UNDERFLOW        = 0xc0000093
    37  	_EXCEPTION_INT_DIVIDE_BY_ZERO   = 0xc0000094
    38  	_EXCEPTION_INT_OVERFLOW         = 0xc0000095
    39  
    40  	_INFINITE     = 0xffffffff
    41  	_WAIT_TIMEOUT = 0x102
    42  
    43  	_EXCEPTION_CONTINUE_EXECUTION = -0x1
    44  	_EXCEPTION_CONTINUE_SEARCH    = 0x0
    45  )
    46  
    47  type systeminfo struct {
    48  	anon0                       [4]byte
    49  	dwpagesize                  uint32
    50  	lpminimumapplicationaddress *byte
    51  	lpmaximumapplicationaddress *byte
    52  	dwactiveprocessormask       uintptr
    53  	dwnumberofprocessors        uint32
    54  	dwprocessortype             uint32
    55  	dwallocationgranularity     uint32
    56  	wprocessorlevel             uint16
    57  	wprocessorrevision          uint16
    58  }
    59  
    60  type exceptionrecord struct {
    61  	exceptioncode        uint32
    62  	exceptionflags       uint32
    63  	exceptionrecord      *exceptionrecord
    64  	exceptionaddress     *byte
    65  	numberparameters     uint32
    66  	exceptioninformation [15]uintptr
    67  }
    68  
    69  type overlapped struct {
    70  	internal     uintptr
    71  	internalhigh uintptr
    72  	anon0        [8]byte
    73  	hevent       *byte
    74  }
    75  
    76  type memoryBasicInformation struct {
    77  	baseAddress       uintptr
    78  	allocationBase    uintptr
    79  	allocationProtect uint32
    80  	regionSize        uintptr
    81  	state             uint32
    82  	protect           uint32
    83  	type_             uint32
    84  }
    85  

View as plain text