写入指定地址的字符串 - WriteString
函数简介
写入指定地址的字符串,支持多种字符串类型和CE数据格式。
接口名称
WriteString
DLL调用
int WriteString(long instance, long hwnd, string addr, int type, string value)
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 窗口句柄 |
| addr | 字符串 | 地址,支持CE数据格式 |
| type | 整数型 | 字符串类型(0:Ascii,1:Unicode,2:UTF8) |
| value | 字符串 | 要写入的字符串 |
示例
// 示例代码待补充
返回值
成功返回1,失败返回0
