예제 #1
0
        // Thủ tục DeInject hook
        public int DeInject()
        {
            var result = HookGame.UnmapDll(WindowHwnd);

            _isInjected = false;
            return(result);
        }
예제 #2
0
        // Thủ tục Inject hook
        public int Inject()
        {
            var result = HookGame.InjectDll(WindowHwnd);

            if (result == 1)
            {
                _isInjected  = true;
                this.HookMsg = HookGame.GetMsg();
            }
            return(result);
        }