|
RT_LICENSE_INFO is a structure that specifies data for the function RtGetLicenses.
Syntax
typedef struct _RT_LICENSE_INFO { int size; int structureVersion; char featureName [RT_MAX_FEATURE_NAME_LENGTH]; unsigned int majorVersion; RT_FEATURE_LICENSE_STATUS status; int isFeatureInstalled; RT_LICENSE_EXPIRATION_DATE expirationDate; RT_LICENSE_ISSUE_DATE issueDate; char dongleSerialNumber[DONGLE_ID_MAX_LENGTH]; RT_LICENSE_OPTIONS options; } RT_LICENSE_INFO, * PRT_LICENSE_INFO;
Fields
size
The size of the structure.
structureVersion
The version of the structure.
featureName
The name of the licensed feature.
majorVersion
The major version of the licensed feature.
RT-TCP/IP Stack Version | majorVersion Value |
---|---|
RTX 2016 (includes Service Packs) | 12 |
Currently installed version |
0 |
status
The license status. Possible status return codes are listed in the table below:
Status Code | Description |
---|---|
RT_FEATURE_STATUS_NOT_FOUND |
License entry not found |
RT_FEATURE_STATUS_FORMAT_ERROR |
The license entry is found but is in an invalid format |
RT_FEATURE_STATUS_VALID |
The license entry is found and is valid |
RT_FEATURE_STATUS_INVALID |
The license entry is found but is invalid |
RT_FEATURE_STATUS_EVAL |
The license entry found is an Evaluation license |
RT_FEATURE_STATUS_EVAL_EXPIRED | The license entry found is an expired Evaluation license |
RT_FEATURE_STATUS_EVAL_INVALID_HOST_ID | The license entry found is an Evaluation dongle-based license for which the Host ID is not present on the system |
RT_FEATURE_STATUS_INVALID_HOST_ID | The license entry found is a Retail dongle-based license for which the Host ID is not present on the system |
isFeatureInstalled
Specifies whether the feature is installed.
Value | Description |
---|---|
0 |
Feature is not installed |
1 |
Feature is installed |
expirationDate
The expiration date of the license.
issueDate
The issue date of the license.
dongleSerialNumber
The serial number of the dongle the license is node-locked against.
options
License-specific options.
Requirements
Minimum Supported Version | RTX 2016 |
Header | Licensing.h |