// Thủ tục DeInject hook public int DeInject() { var result = HookGame.UnmapDll(WindowHwnd); _isInjected = false; return(result); }
// Thủ tục Inject hook public int Inject() { var result = HookGame.InjectDll(WindowHwnd); if (result == 1) { _isInjected = true; this.HookMsg = HookGame.GetMsg(); } return(result); }