搜索字符串 - FindString
函数简介
搜索指定范围内的字符串。
接口名称
FindString
DLL调用
long FindString(long instance, long hwnd, string addr_range, string string_value, int type)
参数说明
参数名 | 类型 | 说明 |
---|---|---|
instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
hwnd | 长整数型 | 窗口句柄 |
addr_range | 字符串 | 地址范围 |
string_value | 字符串 | 要搜索的字符串 |
type | 整数型 | 类型(0:Ascii,1:Unicode,2:UTF8) |
示例
// 示例代码待补充
返回值
返回二进制字符串的指针,格式: "addr1|addr2|...|addrn"
注意事项
- 返回的字符串指针需调用FreeStringPtr释放内存