Documentation
¶
Index ¶
- Constants
- func OpenProcess(pid uint32) (windows.Handle, error)
- func ReadProcessMemory(hProcess windows.Handle, address uintptr, size uintptr) ([]byte, error)
- type MEMORY_BASIC_INFORMATION
- type MemoryRegion
- type ProcessManager
- func (pm *ProcessManager) FindMainWeChatPid() uint32
- func (pm *ProcessManager) FindWeChatPath() string
- func (pm *ProcessManager) GetProcessId(name string) (uint32, error)
- func (pm *ProcessManager) GetWeChatVersion(wechatDir string) string
- func (pm *ProcessManager) IsProcessRunning(name string) bool
- func (pm *ProcessManager) KillProcess(name string) error
- func (pm *ProcessManager) LaunchWeChat(path string) error
- func (pm *ProcessManager) WaitForWeChatWindow(timeoutSeconds int) bool
Constants ¶
View Source
const ( MEM_COMMIT = 0x1000 MEM_PRIVATE = 0x20000 )
View Source
const ( CREATE_NEW_CONSOLE = 0x00000010 CREATE_NEW_PROCESS_GROUP = 0x00000200 )
Variables ¶
This section is empty.
Functions ¶
func OpenProcess ¶
OpenProcess opens an existing local process object.
Types ¶
type MEMORY_BASIC_INFORMATION ¶
type MEMORY_BASIC_INFORMATION struct {
BaseAddress uintptr
AllocationBase uintptr
AllocationProtect uint32
RegionSize uintptr
State uint32
Protect uint32
Type uint32
}
MEMORY_BASIC_INFORMATION structure for VirtualQueryEx
type MemoryRegion ¶
MemoryRegion represents a continuous memory block
func GetMemoryRegions ¶
func GetMemoryRegions(hProcess windows.Handle) ([]MemoryRegion, error)
GetMemoryRegions returns a list of committed private memory regions for the process.
type ProcessManager ¶
type ProcessManager struct {
}
func NewProcessManager ¶
func NewProcessManager() *ProcessManager
func (*ProcessManager) FindMainWeChatPid ¶
func (pm *ProcessManager) FindMainWeChatPid() uint32
func (*ProcessManager) FindWeChatPath ¶
func (pm *ProcessManager) FindWeChatPath() string
func (*ProcessManager) GetProcessId ¶
func (pm *ProcessManager) GetProcessId(name string) (uint32, error)
func (*ProcessManager) GetWeChatVersion ¶
func (pm *ProcessManager) GetWeChatVersion(wechatDir string) string
func (*ProcessManager) IsProcessRunning ¶
func (pm *ProcessManager) IsProcessRunning(name string) bool
func (*ProcessManager) KillProcess ¶
func (pm *ProcessManager) KillProcess(name string) error
func (*ProcessManager) LaunchWeChat ¶
func (pm *ProcessManager) LaunchWeChat(path string) error
func (*ProcessManager) WaitForWeChatWindow ¶
func (pm *ProcessManager) WaitForWeChatWindow(timeoutSeconds int) bool
Click to show internal directories.
Click to hide internal directories.