---
title: KVMLGetVersion
description: "获取VML产品版本信息："
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/220RC3/accel/kunpengaccel_kml_16_0323.html
sourcePath: /source/zh/kunpengboostkithistory/220RC3/accel/kunpengaccel_kml_16_0323.html
indexId: c299c45f41c7e107a09fd8be631aec99550b33c0c8006c5613befd03d5439c7476
---
# KVMLGetVersion

获取VML产品版本信息：

int KVMLGetVersion(KVMLVersion *ver)

#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| ver | 产品信息结构体。 | 非空 | 输出 |


#### 返回值

- 成功：返回1。
- 失败：返回0。


#### 示例

```
#include <stdio.h>
#include "kvml.h"
int main()
{
KVMLVersion* ver = (KVMLVersion*)malloc(sizeof(KVMLVersion));
int status = KVMLGetVersion(ver);
printf("Component           : %s\n", ver.component);
printf("Version             : %s\n", ver.version);
printf("Support Package Name: %s\n", ver.supportPackage);
printf("Compile Time        : %s\n", ver.compileTime);
return 0；
}
```

运行结果：

```
Component           : boostkit-kml-vml
Version             : 1.3.0
Support Package Name: BoostKit-kml-vml_1.3.0
Compile Time        : 2021/08/31-12:00
```

以上版本号和编译时间以实际运行结果为准，上述结果仅供参考。
