예제 #1
0
        internal override void ScanAOB(AOBScanner scanner)
        {
            IntPtr result  = scanner.Scan(AOB);
            IntPtr temp    = result + AddressOffset;
            uint   address = Kernel32.ReadUInt32(Hook.Handle, temp);

            AOBResult = (IntPtr)((ulong)(result + InstructionSize) + address);
        }
        internal override bool ScanAOB(AOBScanner scanner)
        {
            IntPtr result = scanner.Scan(AOB);

            if (result == IntPtr.Zero)
            {
                AOBResult = result;
                return(false);
            }

            uint address = Kernel32.ReadUInt32(Hook.Handle, result + AddressOffset);

            AOBResult = (IntPtr)((ulong)(result + InstructionSize) + address);
            return(true);
        }
 internal override bool ScanAOB(AOBScanner scanner)
 {
     AOBResult = scanner.Scan(AOB);
     return(AOBResult != IntPtr.Zero);
 }