MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / WriteData

Method WriteData

src/pkgDm/Dm2Java.java:1166–1168  ·  view source on GitHub ↗

对指定地址写入二进制数据 @param hwnd 指定搜索的窗口句柄或者进程ID. 默认是窗口句柄. 如果要指定为进程ID,需要调用SetMemoryHwndAsProcessId. @param addr 用字符串来描述地址,类似于CE的地址描述,数值必须是16进制,里面可以用[ ] + -这些符号来描述一个地址。+表示地址加,-表示地址减;模块名必须用<>符号来圈起来 例如: 1. "4DA678" 最简单的方式,用绝对数值来表示地址 2. "<360SE.exe>+DA678" 相对简单的方式,只是这里用模块名来决定模块基址

(int hwnd,String addr,String data)

Source from the content-addressed store, hash-verified

1164 * @return 0 : 失败 ;1 : 成功
1165 */
1166 public int WriteData(int hwnd,String addr,String data){
1167 return Dispatch.call(dm, "WriteData",hwnd,addr,data).getInt();
1168 }
1169
1170 /**
1171 * 对指定地址写入双精度浮点数

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected