github.com/tailscale/wireguard-go@v0.0.20201119-0.20210522003738-46b531feb08a/tun/wintun/memmod/syscall_windows_32.go (about) 1 // +build windows,386 windows,arm 2 3 /* SPDX-License-Identifier: MIT 4 * 5 * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved. 6 */ 7 8 package memmod 9 10 // Optional header format 11 type IMAGE_OPTIONAL_HEADER struct { 12 Magic uint16 13 MajorLinkerVersion uint8 14 MinorLinkerVersion uint8 15 SizeOfCode uint32 16 SizeOfInitializedData uint32 17 SizeOfUninitializedData uint32 18 AddressOfEntryPoint uint32 19 BaseOfCode uint32 20 BaseOfData uint32 21 ImageBase uintptr 22 SectionAlignment uint32 23 FileAlignment uint32 24 MajorOperatingSystemVersion uint16 25 MinorOperatingSystemVersion uint16 26 MajorImageVersion uint16 27 MinorImageVersion uint16 28 MajorSubsystemVersion uint16 29 MinorSubsystemVersion uint16 30 Win32VersionValue uint32 31 SizeOfImage uint32 32 SizeOfHeaders uint32 33 CheckSum uint32 34 Subsystem uint16 35 DllCharacteristics uint16 36 SizeOfStackReserve uintptr 37 SizeOfStackCommit uintptr 38 SizeOfHeapReserve uintptr 39 SizeOfHeapCommit uintptr 40 LoaderFlags uint32 41 NumberOfRvaAndSizes uint32 42 DataDirectory [IMAGE_NUMBEROF_DIRECTORY_ENTRIES]IMAGE_DATA_DIRECTORY 43 } 44 45 const IMAGE_ORDINAL_FLAG uintptr = 0x80000000