-
Notifications
You must be signed in to change notification settings - Fork 5
/
dll.go
19 lines (16 loc) · 838 Bytes
/
dll.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main
import "syscall"
var (
modkernel32 = syscall.NewLazyDLL("kernel32.dll")
procGetFileSize = modkernel32.NewProc("GetFileSize")
procIsBadReadPtr = modkernel32.NewProc("IsBadReadPtr")
procVirtualAlloc = modkernel32.NewProc("VirtualAlloc")
procVirtualFree = modkernel32.NewProc("VirtualFree")
procResumeThread = modkernel32.NewProc("ResumeThread")
procVirtualAllocEx = modkernel32.NewProc("VirtualAllocEx")
procWriteProcessMemory = modkernel32.NewProc("WriteProcessMemory")
procWow64GetThreadContext = modkernel32.NewProc("Wow64GetThreadContext")
procWow64SetThreadContext = modkernel32.NewProc("Wow64SetThreadContext")
procGetThreadContext = modkernel32.NewProc("GetThreadContext")
procSetThreadContext = modkernel32.NewProc("SetThreadContext")
)