Skip to content

写入指定地址的整数 - WriteIntAddr

函数简介

写入指定地址的整数。

接口名称

WriteIntAddr

DLL调用

int WriteIntAddr(long instance, long hwnd, long addr, int type, long value);

参数说明

参数名类型说明
instance长整数型OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。
hwnd长整数型窗口句柄。
addr长整数型地址。
type整数型整数类型(0:32位有符号,1:16位有符号,2:8位有符号,3:64位,4:32位无符号,5:16位无符号,6:8位无符号)。
value长整数型要写入的整数值。

示例

SDK 调用

cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
ola.WriteIntAddr(hwnd, addr, value);
csharp
using OLAPlug;

var ola = new OLAPlugServer();
ola.WriteIntAddr(hwnd, addr, value);
python
from OLAPlugServer import OLAPlugServer

ola = OLAPlugServer()
ola.WriteIntAddr(hwnd, addr, value)
java
import com.olaplug.OLAPlugServer;

OLAPlugServer ola = new OLAPlugServer();
ola.WriteIntAddr(hwnd, addr, value);
cpp
var ola = com("OlaPlug.OlaSoft")
ola.WriteIntAddr(hwnd, addr, value);
vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ola.WriteIntAddr(hwnd, addr, value);
text
.局部变量 ola, OLAPlug
ola.创建 ()
ola.WriteIntAddr(hwnd, addr, value)
aardio
import OLAPlugServer;
var ola = OLAPlugServer();
ola.WriteIntAddr(hwnd, addr, value);
text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
ola.WriteIntAddr(hwnd, addr, value);
cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
ola.WriteIntAddr(hwnd, addr, value);

原生 DLL 调用

cpp
long instance = CreateCOLAPlugInterFace();
WriteIntAddr(instance, hwnd, addr, value);
csharp
long instance = CreateCOLAPlugInterFace();
WriteIntAddr(instance, hwnd, addr, value);
python
from ctypes import CDLL, c_int, c_int64, create_string_buffer

ola = CDLL("OLAPlug_x64.dll")
ola.CreateCOLAPlugInterFace.restype = c_int64
instance = ola.CreateCOLAPlugInterFace()
WriteIntAddr(instance, hwnd, addr, value)

返回值

返回值说明
1成功。
0失败。