Example #1
0
        //public static IntPtr DATInfo     = new IntPtr(0x00A35300);


        public static void FindAddresses(GWCAMemory cli)
        {
            IntPtr tmp;

            cli.InitScanner(new IntPtr(0x00401000), 0x0049A000);

            tmp = cli.ScanForPtr(new byte[] { 0x33, 0xD2, 0x8B, 0xCE, 0x57, 0x6A, 0x0C }, 0x0D, true);
            if (tmp != IntPtr.Zero)
            {
                WinTitle = tmp;
            }

            tmp = cli.ScanForPtr(new byte[] { 0x6A, 0x14, 0x8D, 0x96, 0xBC });
            if (tmp != IntPtr.Zero)
            {
                EmailAddPtr = new IntPtr(tmp.ToInt32() - 0x9);
                CharnamePtr = new IntPtr(tmp.ToInt32() + 0x9);
            }

            cli.FreeScanner();
            scanned = true;
        }