|
The function RtGetLicenses retrieves information about all licenses available on the system.
Syntax
BOOL RtGetLicenses( PRT_LICENSE_INFO result, PDWORD length );
Parameters
result
A pointer to an array of RT_LICENSE_INFO structures that will be filled in. When NULL, the length parameter returns the number of array entries the customer needed to provide in the result parameter. Note that the caller must allocate enough array entries for the result parameter or the call will return FALSE with a status RT_GETLICENSES_RESULTS_BUFFER_TOO_SMALL.
length
A pointer to the number of license info array entries provided in the results parameter. If the length of the array is less than the required length, this value will be updated with the number of array elements required to hold all of the license information.
Return Values
Returns TRUE if successful. Returns FALSE if unsuccessful. Call GetLastError to get extended error information if the call fails. Possible error codes are listed in the topic Licensing Error Codes.
Remarks
If the dongleSerialNumber string in the returned RT_LICENSE_INFO structure is empty, the product is licensed to the system, not to a dongle.
Requirements
Minimum Supported Version | RTX 2016 |
Header | Rtapi.h |
Library | Rtx_Rtss.lib |