获取远程API地址 - GetRemoteApiAddress
函数简介
获取远程API地址。
接口名称
GetRemoteApiAddress
DLL调用
long GetRemoteApiAddress(long instance, long hwnd, string module_name, string fun_name);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 窗口句柄 |
| module_name | 字符串 | 模块名 |
| fun_name | 字符串 | 函数名 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// hwnd 为目标窗口句柄
// 获取目标进程中 MessageBoxA 的地址
long apiAddr = GetRemoteApiAddress(instance, hwnd, "user32.dll", "MessageBoxA");
printf("远程API地址: 0x%lX\n", apiAddr);
Python
# 待补充
返回值
成功返回远程API地址,失败返回0。
