injector

package
v0.0.0-...-2d6c13f Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCreateSnapshot ...
	ErrCreateSnapshot        = errors.New("create snapshot error")
	ErrWxInstallPathNotFound = errors.New("找不到微信安装路径")
)
View Source
var (
	ErrWxProcessNotFound = errors.New("微信进程不存在")
)

Functions

func GetWxInstallPath

func GetWxInstallPath() (string, error)

func InjectByCmd

func InjectByCmd(injectorExePath string, pid int, dllname string) error

func InjectByProcess

func InjectByProcess(injectorExePath string, version api.ApiVersion, process *Process, dllPath string, httpPort int) error

func InjectWx

func InjectWx(injectorExePath string, version api.ApiVersion, dllPath string, httpPort int) error

Types

type Process

type Process struct {
	ProcessID int
	Name      string
	ExePath   string
}

Process ...

func FindProcessListByName

func FindProcessListByName(name string) ([]*Process, error)

FindProcessListByName get process information by name

func StartWxProcess

func StartWxProcess() (*Process, error)

Jump to

Keyboard shortcuts

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