内存修改大家一定不陌生,这项技术可以用于做程序外挂、游戏xx(这个我不太支持……),在VB中怎么实现呢?其实只要调用声明一个WriteProcessMemory的API再调用就可以了。 API的声明: Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Long, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long 调用API代码 WriteProcessMemory [程序句柄], &H [内存的地址],[要注入的数值], ByVal nSize As Long, lpNumberOfBytesWritten As Long [内存的地址]其实就是基址+偏移量(不明白的菜鸟到百度百科去搜),[要注入的数值]不解释。 大家直接把[]和里面的东西全部改成自己需要的就搞定,这句代码xx可以做个游戏修改器,呵呵 |