github.com/iDigitalFlame/xmt@v0.5.4/device/winapi/mem_helper_x86.go (about)

     1  //go:build windows && cgo && freemem && (386 || arm || mips || mipsle)
     2  // +build windows
     3  // +build cgo
     4  // +build freemem
     5  // +build 386 arm mips mipsle
     6  
     7  // Copyright (C) 2020 - 2023 iDigitalFlame
     8  //
     9  // This program is free software: you can redistribute it and/or modify
    10  // it under the terms of the GNU General Public License as published by
    11  // the Free Software Foundation, either version 3 of the License, or
    12  // any later version.
    13  //
    14  // This program is distributed in the hope that it will be useful,
    15  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    16  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17  // GNU General Public License for more details.
    18  //
    19  // You should have received a copy of the GNU General Public License
    20  // along with this program.  If not, see <https://www.gnu.org/licenses/>.
    21  //
    22  
    23  package winapi
    24  
    25  type memoryBasicInfo struct {
    26  	// DO NOT REORDER
    27  	BaseAddress       uint32
    28  	AllocationBase    uint32
    29  	AllocationProtect uint32
    30  	RegionSize        uint32
    31  	State             uint32
    32  	Protect           uint32
    33  	Type              uint32
    34  }