根据指定的窗口句柄,来获取对应窗口句柄进程下的指定模块的基址 @param hwnd 指定搜索的窗口句柄或者进程ID. 默认是窗口句柄. 如果要指定为进程ID,需要调用SetMemoryHwndAsProcessId @param module 模块名 @return 模块的基址
(int hwnd,String module)
| 1037 | * @return 模块的基址 |
| 1038 | */ |
| 1039 | public int GetModuleBaseAddr(int hwnd,String module){ |
| 1040 | return Dispatch.call(dm, "GetModuleBaseAddr",hwnd,module).getInt(); |
| 1041 | } |
| 1042 | |
| 1043 | /** |
| 1044 | * 把整数转换成二进制形式 |