Ejemplo n.º 1
0
        public static void Install()
        {
            // Get bases for modules that we need.
            Offsets.Bases.dwBaseClient = (int)LocalProcessInfo.GetModuleBase("client_panorama.dll");

            Offsets.Bases.dwBaseEngine = (int)LocalProcessInfo.GetModuleBase("engine.dll");

            Settings.InitializeSettings();
            Menu.MenuHelperThread.StartMenuClock();

            try
            {
                IntPtr clientMode = (IntPtr)Offsets.Bases.dwBaseClient + Offsets.signatures.dwClientMode;

                clientModeVMT = new Vmt32Table(clientMode);

                cmHook = new CreateMoveHook(clientModeVMT);
                cmHook.Hook();
            }
            catch (Exception ex)
            {
                WinAPI.MessageBoxW(WinAPI.NULL, "Error installing hooks: " + ex.Message, "Failed initialization", 0);
                return;
            }
        }
Ejemplo n.º 2
0
 public CreateMoveHook(VmtTable vmt) : base(vmt, (int)Indices.CLIENTMODE_CREATE_MOVE)
 {
 }