Skip to content

读取指定地址的双精度浮点数 - ReadDoubleAddr

函数简介

读取指定地址的双精度浮点数。

接口名称

ReadDoubleAddr

DLL调用

double ReadDoubleAddr(long instance, long hwnd, long addr);

参数说明

参数名类型说明
instance长整数型OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。
hwnd长整数型窗口句柄。
addr长整数型地址。

示例

SDK 调用

cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
// hwnd 为进程/窗口句柄,addr 为目标地址
int val = ola.ReadDoubleAddr(hwnd, addr);
csharp
using OLAPlug;

var ola = new OLAPlugServer();
// hwnd 为进程/窗口句柄,addr 为目标地址
int val = ola.ReadDoubleAddr(hwnd, addr);
python
from OLAPlugServer import OLAPlugServer

ola = OLAPlugServer()
# hwnd 为进程/窗口句柄,addr 为目标地址
val = ola.ReadDoubleAddr(hwnd, addr)
java
import com.olaplug.OLAPlugServer;

OLAPlugServer ola = new OLAPlugServer();
// hwnd 为进程/窗口句柄,addr 为目标地址
int val = ola.ReadDoubleAddr(hwnd, addr);
cpp
var ola = com("OlaPlug.OlaSoft")
// hwnd 为进程/窗口句柄,addr 为目标地址
var val = ola.ReadDoubleAddr(hwnd, addr)
vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
' hwnd 为进程/窗口句柄,addr 为目标地址
val = ola.ReadDoubleAddr(hwnd, addr)
text
.局部变量 ola, OLAPlug
ola.创建 ()
' hwnd 为进程/窗口句柄,addr 为目标地址
val = ola.ReadDoubleAddr(hwnd, addr)
aardio
import OLAPlugServer;
var ola = OLAPlugServer();
// hwnd 为进程/窗口句柄,addr 为目标地址
var val = ola.ReadDoubleAddr(hwnd, addr);
text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
// hwnd 为进程/窗口句柄,addr 为目标地址
整数 val = ola.ReadDoubleAddr(hwnd, addr)
cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
// hwnd 为进程/窗口句柄,addr 为目标地址
int val = ola.ReadDoubleAddr(hwnd, addr);

原生 DLL 调用

cpp
long instance = CreateCOLAPlugInterFace();
ReadDoubleAddr(instance, hwnd, addr);
csharp
long instance = CreateCOLAPlugInterFace();
ReadDoubleAddr(instance, hwnd, addr);
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()
ReadDoubleAddr(instance, hwnd, addr)

返回值

返回值说明
(返回值)读取到的双精度浮点数。