我要评分
获取效率
正确性
完整性
易理解

GetProductVersion

Obtain information about the installed HMPP, including the software name, software version, product version, and product build time.

The function interface declaration is as follows:

HmppResult HMPP_GetProductVersion(HmppProVersion *packageInfo);

Return Value

  • Success: HMPP_STS_NO_ERR
  • Failure: An error code is returned.

Error Codes

Error Code

Description

HMPP_STS_NULL_PTR_ERR

The HmppProVersion pointer is NULL.

Example

void  HMPP_GetProductVersion_Example()
{
    HmppProVersion versionGet;
    HmppResult result = HMPP_GetProductVersion(&versionGet);
    HmppProVersion *version = &versionGet;
    if (result == HMPP_STS_NO_ERR) {
        printf("ComponentName: %s\n", version->componentName);
        printf("PackageVersion: %s\n", version->packageVersion);
        printf("SupportName: %s\n", version->supportName);
        printf("BuildDate: %s\n", version->buildDate);
    }
}

Output:

ComponentName: boostkit-hmpp
PackageVersion: 1.3.0
SupportName: BoostKit-hmpp_1.3.0
BuildDate: 2021.09.16