cookie CmGetLicenseInfo

Description

CmGetLicenseInfo returns all available licenses stored in a license file (CmLicensor/CmFirm.wbc) on licensor site.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

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 hmtoggle_plus1 CMLICENSEINFO elements.

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 hmtoggle_plus1 CmLicenseInfo.

 

 

Syntax

import cmapi
 
handle.CmGetLicenseInfo() -> List[CMLICENSEINFO]

Parameter

handle is the handle opened by by CmAccess2 (must be Subsystem Access).

Return

A list of hmtoggle_plus1 cmapi.CMLICENSEINFO objects.