⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mem.cs

📁 EBot source for the popular MMORPG World of Warcraft
💻 CS
字号:
namespace WoWBot
{
    using System;
    using System.Diagnostics;
    using System.Runtime.InteropServices;

    public class mem
    {
        [DllImport("kernel32.dll", EntryPoint="ReadProcessMemory")]
        private static extern bool a(IntPtr b, int b, byte[] b, int b, byte b);
        public static bool Peek(int prochandle, int address, byte[] data)
        {
            return a((IntPtr) prochandle, address, data, data.Length, 0);
        }

        public static bool Poke(Process proc, int address, byte[] data)
        {
            return WriteProcessMemory(proc.Handle, address, data, data.Length, 0);
        }

        [DllImport("kernel32.dll")]
        public static extern bool WriteProcessMemory(IntPtr hProcess, int lpBaseAddress, byte[] lpBuffer, int nSize, byte lpNumberOfBytesWritten);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -