test keybindings and close handler for process

This commit is contained in:
Héctor Giménez
2024-04-19 21:04:29 +09:00
parent c7aeb01089
commit 4ec129fa3b
5 changed files with 254 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ func NewProcessForPID(pid uint32) (Process, error) {
}, nil
}
func (p Process) Close() error {
return windows.CloseHandle(p.handler)
}
func getGameModule() (ModuleInfo, error) {
processes := make([]uint32, 2048)
length := uint32(0)