CmGetLicenseInfo
Description
CmGetLicenseInfo returns all available licenses stored in a license file (CmLicensor/CmFirm.wbc) on licensor site.
|
Triple Mode Redundancy-related information (TMR)
|
Syntax
int CMAPIENTRY CmGetLicenseInfo(HCMSysEntry hcmse, CMLICENSEINFO *pcmLicenseInfo, CMUINT cbNumberOfLicenses)
Parameter
hcmse contains the handle opened by by CmAccess / CmAccess2 (must be Subsystem Access).
pcmLicenseInfo contains a pointer to the first element of an array of
CMLICENSEINFO elements.
|
CMLICENSEINFO contains data of a complete license. Syntax
Parameter mflCtrl specifies the properties of the license. This is expressed by the following flags:
mulFirmCode contains the Firm Code of the license. midOem contains the OEM ID. The default value is 0. mulFsbFirmCode contains the Firm Code which is used for the FSB Firm Item. The default value is 0 which specifies that the Firm Code of the FSB is not seeked, any is accepted. mulFsbProductCode contains the Product Code which is used to access the FSB. Usuall, this is identical with mulFirmCode of the base class, but for special FSB operations (for example Box Key) this may be different. mulReserve reserved for future purposes. mszDescription contains the description text of the license as a zero-terminated, UTF-8-encoded string. mszFirmItemText contains the text which is set by default into a created Firm Item as a zero-terminated, UTF-8-encoded string.
|
cbNumberOfLicenses contains the number of elements stored in the array in pcmLicenseInfo.
Return
The return value always contains the real number of licenses returned in pcmLicenseInfo. If the array in pcmLicenseInfo does not contain not enough elements, the number of available licenses will be returned. In this case, the return value is larger than the cbNumberOfLicenses parameter and error code CMERROR_BUFFER_OVERFLOW is set.
Syntax
public CmLicenseInfo[] CmGetLicenseInfo(HCMSysEntry hcmse) |
Parameter
hcmse contains the handle opened by CmAccess / CmAccess2 (must be Subsystem Access).
Return
CmLicenseInfo returns an array of
CmLicenseInfo.
|
CmLicenseInfo contains data of a complete license. Syntax
Parameter Ctrl specifies the properties of the license. This is expressed by the following CmLicenseInfo.Option flags:
FirmCode contains the Firm Code of the license. OemId contains the OEM ID. The default value is 0. FirmCode contains the Firm Code which is used for the FSB Firm Item. The default value is 0 which specifies that the Firm Code of the FSB is not seeked, any is accepted. ProductCode contains the Product Code which is used to access the FSB. Usuall, this is identical with mulFirmCode of the base class, but for special FSB operations (for example Box Key) this may be different. Description contains the description text of the license as a zero-terminated, UTF-8-encoded string. FirmItemText contains the text which is set by default into a created Firm Item as a zero-terminated, UTF-8-encoded string.
|
Syntax
import cmapi
handle.CmGetLicenseInfo() -> List[CMLICENSEINFO]
Parameter
handle is the handle opened by by CmAccess2 (must be Subsystem Access).
Return
A list of
cmapi.CMLICENSEINFO objects.
|
CMLICENSEINFO contains data of a complete license. Syntax
Parameter mflCtrl specifies the properties of the license. This is expressed by the following flags:
mulFirmCode contains the Firm Code of the license. midOem contains the OEM ID. The default value is 0. mulFsbFirmCode contains the Firm Code which is used for the FSB Firm Item. The default value is 0 which specifies that the Firm Code of the FSB is not seeked, any is accepted. mulFsbProductCode contains the Product Code which is used to access the FSB. Usuall, this is identical with mulFirmCode of the base class, but for special FSB operations (for example Box Key) this may be different. mulReserve reserved for future purposes. mszDescription contains the description text of the license as a zero-terminated, UTF-8-encoded string. UTF-8-encoded string. To assign this field a valid value, DO NOT set it directly, call instead the set_mszDescription() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszDescription(). mszFirmItemText contains the text which is set by default into a created Firm Item as a zero-terminated, UTF-8-encoded string. To assign this field a valid value, DO NOT set it directly, call instead the set_mszFirmItemText() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszFirmItemText().
|