示例#1
0
        public override bool writeBytes(Process process, ulong address, byte[] bytesToWrite)
        {
            IntPtr bytesWritten = IntPtr.Zero;

            setBackupBytes(process, address, bytesToWrite);
            MemoryScanner.WriteProcessMemory(process.Handle, (IntPtr)address, bytesToWrite, bytesToWrite.Length, out bytesWritten);
            if (bytesWritten == IntPtr.Zero)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }