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("Component Name: %s\n", version->componentName);
printf("Component Version: %s\n", version->packageVersion);
}
}
Output:
Component Name: boostkit-hmpp Component Version: 1.3.0
Parent topic: Basic Functions