예제 #1
0
        public InputMultiplexer(ControlInterface.HostControl source, ICollection <IntPtr> sinks)
        {
            BroadcastKeys = new List <Keys>();

            this.source = source;
            this.Sinks  = sinks;

            source.WindowMessageDispatched += MessageDispatcher;
        }
예제 #2
0
        public WardenBuster(ControlInterface.HostControl hc, CommandHandler commandHandler)
        {
            this.hc             = hc;
            this.commandHandler = commandHandler;

            memory = new Memory(Process.GetCurrentProcess());

            /* our host module is EasyHook32.dll */
            ProcessModule thisModule = Process.GetCurrentProcess().GetModule("EasyHook32.dll");

            thisModuleBase = (uint)thisModule.BaseAddress.ToInt32();
            thisModuleEnd  = (uint)thisModule.BaseAddress.ToInt32() + (uint)thisModule.ModuleMemorySize;

            PatchInvalidPtrCheck();

            PatchVirtualQuery();
            PatchVirtualProtect();
        }