Documentation ¶
Index ¶
- Constants
- func AdjustTokenPrivileges(tokenHandle HANDLE, disableAllPrivileges BOOL, newState *w32.TOKEN_PRIVILEGES, ...) bool
- func ByteToFloat32(data []byte) float32
- func ByteToFloats32(data []byte) []float32
- func ByteToInt(data []byte) int
- func ByteToIntPtr(data []byte) uintptr
- func ByteToInts(data []byte) []int
- func CloseHandle(hObject HANDLE) bool
- func EnumProcessModules(hProcess HANDLE, cb uintptr, lpcbNeeded uintptr) (uintptr, []uint16, error)
- func Float32ToByte(f float32) []byte
- func Floats32ToByte(f []float32) []byte
- func GetAsyncKeyState(vKey int) uint16
- func GetLastError() uint32
- func IntToByte(i int) []byte
- func IntsToByte(i []int) []byte
- func Module32First(hSnapshot HANDLE, me *MODULEENTRY32) bool
- func Module32Next(hSnapshot HANDLE, me *MODULEENTRY32) bool
- func OffsetAddr(hProcess HANDLE, baseAddr uintptr, offAddrs []uintptr) uintptr
- func OpenProcessToken(processHandle HANDLE, desiredAccess uint32, tokenHandle *HANDLE) bool
- func Process32First(hSnapshot HANDLE, pe *PROCESSENTRY32) bool
- func Process32Next(hSnapshot HANDLE, pe *PROCESSENTRY32) bool
- func ReadProcessMemory(hProcess HANDLE, lpBaseAddress LPCVOID, lpBuffer unsafe.Pointer, nSize uint) error
- func WriteProcessMemory(hProcess HANDLE, lpBaseAddress uintptr, data []byte) error
- type BOOL
- type HANDLE
- type HMODULE
- type LPCVOID
- type MODULEENTRY32
- type Module
- type PROCESSENTRY32
- type Process
- func (p *Process) OpenProcess()
- func (p Process) ReadBytes(address uintptr, size uint) ([]byte, error)
- func (p Process) ReadFloat32(address uintptr) (float32, error)
- func (p Process) ReadFloats32(address uintptr, howMuchFloats int) ([]float32, error)
- func (p Process) ReadInt(address uintptr) (int, error)
- func (p Process) ReadIntPtr(address uintptr) (uintptr, error)
- func (p Process) ReadInts(address uintptr, howMuchInts int) ([]int, error)
- func (p Process) WriteBytes(address uintptr, data []byte) error
- func (p Process) WriteFloat32(address uintptr, float float32) error
- func (p Process) WriteFloats32(address uintptr, floats []float32) error
- func (p Process) WriteInt(address uintptr, integer int) error
- func (p Process) WriteInts(address uintptr, integers []int) error
Constants ¶
View Source
const ( MAX_MODULE_NAME32 = 255 MAX_PATH = 260 TH32CS_SNAPHEAPLIST = 0x00000001 TH32CS_SNAPPROCESS = 0x00000002 TH32CS_SNAPTHREAD = 0x00000004 TH32CS_SNAPMODULE = 0x00000008 TH32CS_SNAPMODULE32 = 0x00000010 TH32CS_INHERIT = 0x80000000 TH32CS_SNAPALL = TH32CS_SNAPHEAPLIST | TH32CS_SNAPMODULE | TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD STANDARD_RIGHTS_REQUIRED = 0x000F0000 SYNCHRONIZE = 0x00100000 PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xffff )
Variables ¶
This section is empty.
Functions ¶
func AdjustTokenPrivileges ¶
func AdjustTokenPrivileges(tokenHandle HANDLE, disableAllPrivileges BOOL, newState *w32.TOKEN_PRIVILEGES, bufferLength uint32, previousState *w32.TOKEN_PRIVILEGES, returnLength *uint32) bool
func ByteToFloat32 ¶
func ByteToFloats32 ¶
func ByteToIntPtr ¶
func ByteToInts ¶
func CloseHandle ¶
func EnumProcessModules ¶
func Float32ToByte ¶
func Floats32ToByte ¶
func GetAsyncKeyState ¶
func GetLastError ¶
func GetLastError() uint32
func IntsToByte ¶
func Module32First ¶
func Module32First(hSnapshot HANDLE, me *MODULEENTRY32) bool
func Module32Next ¶
func Module32Next(hSnapshot HANDLE, me *MODULEENTRY32) bool
func OpenProcessToken ¶
func Process32First ¶
func Process32First(hSnapshot HANDLE, pe *PROCESSENTRY32) bool
func Process32Next ¶
func Process32Next(hSnapshot HANDLE, pe *PROCESSENTRY32) bool
func ReadProcessMemory ¶
Types ¶
type MODULEENTRY32 ¶
type PROCESSENTRY32 ¶
type Process ¶
type Process struct { Name string Id uint32 BaseSize uint32 BaseAddress uintptr Handle HANDLE Modules map[string]Module }
func GetProcess ¶
func GetProcessByName ¶
func (*Process) OpenProcess ¶
func (p *Process) OpenProcess()
func (Process) ReadFloats32 ¶
func (Process) WriteFloats32 ¶
Click to show internal directories.
Click to hide internal directories.