获取插件信息 - GetPlugInfo
函数简介
获取插件信息。
接口名称
GetPlugInfo
DLL调用
OLA_STRING_RETURN GetPlugInfo(int32_t type);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| type | 整数型 | 信息类型:1-精简版信息, 2-完整版信息 |
信息类型说明
| 类型值 | 说明 |
|---|---|
| 1 | 精简版信息 |
| 2 | 完整版信息 |
示例
int64_t instance = CreateCOLAPlugInterFace();
long infoPtr = GetPlugInfo(2); // 获取完整版信息
if (infoPtr != 0) {
// 使用字符串指针
// ...
// 释放内存
FreeStringPtr(infoPtr);
}
DestroyCOLAPlugInterFace(instance);
返回值
字符串指针地址,包含插件信息。
注意:
DLL调用返回字符串指针地址,需要调用 FreeStringPtr 接口释放内存。
