memorygo

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2020 License: MIT Imports: 7 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

MemoryGo

MemoryGo is an Go package for reading and writing process memory inspired by the memoryjs NPM package

DEPENDENCIES

https://sourceforge.net/projects/tdm-gcc/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProcessByName

func FindProcessByName(procName string) (uint32, error)

FindProcessByName returns processID

func GetModule

func GetModule(moduleName string, processID uint32) (baseAdd uint32, err error)

GetModule returns specified module base address

func GetProcessHandle

func GetProcessHandle(processID uint32) w32.HANDLE

GetProcessHandle returns the process handle

func GetProcessName

func GetProcessName(processID uint32) string

GetProcessName returns name of process given the processID

func ListProcesses

func ListProcesses() []uint32

ListProcesses lists all processes running

func WriteMemory

func WriteMemory(handle w32.HANDLE, offset uint32, value interface{})

WriteMemory function which accepts uint32 or float32 as the value you want to write

Types

type RW

type RW struct {
	Value byte
}

RW read write struct with some helper functions to convert values to other types

func ReadMemory

func ReadMemory(handle w32.HANDLE, offset uint32) RW

ReadMemory reads value from memory to a RW struct so you can easily convert to other types

func (*RW) ToFloat32

func (rw *RW) ToFloat32() float32

ToFloat32 converts value from Read() to float32 type

func (*RW) ToUint32

func (rw *RW) ToUint32() uint32

ToUint32 converts value from Read() to uint32 type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址