using System; using System.Runtime.InteropServices; using GuildWarsInterface.Native; namespace Mod.Patches { /// /// modifies the client to disable keyboard client side movement /// public static class KeyboardMoveDeactivation { private static readonly IntPtr _location = (IntPtr)0x007D4490; public static void Apply() { uint dwOldProtection; Kernel32.VirtualProtect(_location, 3, 0x40, out dwOldProtection); Marshal.Copy(ASM.RETN_10, 0, _location, 3); Kernel32.VirtualProtect(_location, 3, dwOldProtection, out dwOldProtection); } } }