cookie CmGetInfo

Description

CmGetInfo returns the effective representations of opened entries of a CmContainer, i.e. the actual properties of entries.

This in contrast to returning the native representations, i.e. programmed entries of a CmContainer, such as the CmGetBoxContents... functions.

tmr_02

Triple Mode Redundancy-related information (TMR)

 

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmGetInfo(HCMSysEntry hcmse, CMULONG flCtrl, void *pvDest, CMUINT cbDest)

Parameter

hcmse contains the handle opened by CmAccess / CmAccess2.

flCtrl The following flags can be set:

nav_open CM_GEI_ACT_ERROR_INFO fills a hmtoggle_plus1 CMACTERRORINFO structure specified in pvDest with additional error information regarding -CmActLicense.

nav_open CM_GEI_ACT_LICENSE_INFO fills a hmtoggle_plus1 CMACTLICENSEINFO structure specified in pvDest. It contains some information about the CmActLicense.

nav_open CM_GEI_ACT_LICENSE_INFO2 fills a hmtoggle_plus1 CMACTLICENSEINFO2 structure specified in pvDest. It contains some information about the CmActLicense.

nav_open CM_GEI_BORROWCLIENT fills a hmtoggle_plus1 CMBORROWCLIENT structure specified in pvDest. It contains the borrowing information about a borrowed client license.
Please note that borrowing in this context does not involve a license transfer. Rather it refers to borrowing using Firm Codes smaller than 6,000,000 and especially prepared CmContainer.

nav_open CM_GEI_BORROWDATA fills a hmtoggle_plus1 CMBORROWDATA structure specified in pvDest. It contains the borrowing information that is needed for the borrow process on client side.
Please note that borrowing in this context does not involve a license transfer. Rather it refers to borrowing using Firm Codes smaller than 6,000,000 and especially prepared CmContainer.

nav_open CM_GEI_BORROWITEMS fills an array of hmtoggle_plus1 CMBORROWITEM structures specified in pvDest. It contains the borrowing information about a borrowing server license.
Please note that borrowing in this context does not involve a license transfer. Rather it refers to borrowing using Firm Codes smaller than 6,000,000 and especially prepared CmContainer.

nav_open CM_GEI_BOXCONTROL fills a hmtoggle_plus1 CMBOXCONTROL structure specified in pvDest.

nav_open CM_GEI_BOXINFO fills a hmtoggle_plus1 CMBOXINFO structure specified in pvDest.

nav_open CM_GEI_BOXSECURITY fills a hmtoggle_plus1 CMBOXSECURITYstructure specified in pvDest.

nav_open CM_GEI_BOXTIME fills a hmtoggle_plus1 CMBOXTIME structure specified in pvDest.

nav_open CM_GEI_CLOUD_LICENSE_INFO fills a hmtoggle_plus1 CMCLOUDLICENSEINFO structure specified in pvDest. It contains some information about the CmCloudContainer license.

nav_open CM_GEI_COMMUNICATION fills the hmtoggle_plus1 CMCOMMUNICATION structure specified in pvDest.

nav_open CM_GEI_CREDENTIAL fills the hmtoggle_plus1 CMCREDENTIAL structure specified in pvDest.

nav_open CM_GEI_ENTRYINFO fills a hmtoggle_plus1 CMBOXENTRY structure specified in pvDest.

nav_open CM_GEI_ENTRYINFO2 fills a hmtoggle_plus1 CMBOXENTRY2 structure specified in pvDest.

nav_open CM_GEI_ENTRYDATA fills a hmtoggle_plus1 CMENTRYDATA structure specified in pvDest. If more than one item is available, an array with matching or larger size must be passed.

nav_open CM_GEI_INTERNALENTRYINFO fills as many hmtoggle_plus1 CMINTERNALENTRYINFO structures as specified in pvDest that are necessary to store the information of all Product Items of same Product Code of a Firm Code.

nav_open CM_GEI_MEMINFO fills a hmtoggle_plus1 CMMEMINFO structure specified in pvDest.

nav_open CM_GEI_MEMINFO2 fills the hmtoggle_plus1 CMMEMINFO2 structure specified in pvDest.

nav_open CM_GEI_NETINFO_CLUSTER fills an array of hmtoggle_plus1 CMNETINFOCLUSTER structures specified in pvDest.

nav_open CM_GEI_NETINFO_USER fills an array of hmtoggle_plus1 CMNETINFOUSER structures specifies in pvDest.

nav_open CM_GEI_NETINFO_USER_EXT fills an array of hmtoggle_plus1 CMNETINFOUSER_EXT structures specified in pvDest.

nav_open CM_GEI_NAMEDUSER fills a hmtoggle_plus1 CMNAMEDUSER structure specified in pvDest.

nav_open CM_GEI_PITEXT refers to the Product Item text of a CMENTRYDATA structure specified in pvDest. If the text is not set, the error CMERROR_NO_DATA_AVAILABLE (209) is returned.

nav_open CM_GEI_RESET_TIME holds the Reset Time (currently only CmDongle) as transferred as 8 byte buffer.

The Reset Time is the cumulated time of the difference between the Box Time and the Certified Time for cases in which the Certified Time has been smaller than the Box Time and a time reset has been performed. Sampe call, e.g. C++:

uint64_t resetTime{};

int res = CmGetInfo(hcmse, CM_GEI_RESET_TIME, &resetTime, sizeof(resetTime));

nav_open CM_GEI_SYSTEM fills a hmtoggle_plus1 CMSYSTEM structure specified in pvDest.

nav_open CM_GEI_SYSTEMSTATUS fills a hmtoggle_plus1 CMSYSTEMSTATUS structure specified in pvDest.

nav_open CM_GEI_SIGNEDLIST fills byte buffer with a signed list of an entry passed in pvDest.

nav_open CM_GEI_SIGNEDTIME fills a hmtoggle_plus1 CMSIGNEDTIME structure specified in pvDest. The signed time is returned in UTC.

nav_open CM_GEI_USELOCALTIME all members of the CMTIME structure are returned in the local time format.

nav_open CM_GEI_VERSION fills a hmtoggle_plus1 CMVERSION structure specified in pvDest.

nav_open CM_GEI_SECURITYVERSION fills the hmtoggle_plus1 CMSECURITYVERSION structure specified in pvDest.

nav_open CM_GEI_ENABLEBLOCKITEMS fills a hmtoggle_plus1 CMENABLING_ENABLEBLOCKITEM_LIST structure specified in pvDest. If more than one item is available, an array with matching or larger size must be passed.

nav_open CM_GEI_ENABLELOOKUPITEMS_FI fills a hmtoggle_plus1 CMENABLING_ENABLELOOKUPENTRY structure specified in pvDest. The Enable Lookup Items are stored in the FirmItem area of the access handle. If more than one item is available, an array with matching or larger size must be passed.

nav_open CM_GEI_ENABLELOOKUPITEMS_PI fills a CMENABLING_ENABLELOOKUPENTRY structure specified in pvDest. The Enable Lookup Items are stored in the ProductItem area of the access handle. If more than one item is available, an array with matching or larger size must be passed.

nav_open CM_GEI_ENABLEINFO fills an array of hmtoggle_plus1 CMENABLING_CONTEXT structures with enabling information matching to the used handle hcmse.

nav_open CM_GEI_CHIPINFO fills a hmtoggle_plus1 CMCHIPINFO structure specified in pvDest.

nav_open CM_GEI_USBCHIPINFO fills a hmtoggle_plus1 CMUSBCHIPINFO structure specified in pvDest.

nav_open CM_GEI_BOXSTATUS fills a 32 bit value with following status flags.

nav_open CM_BOXSTATUS_LOWMEMORY specifies that the CmDongle has too low memory to replace damaged memory during normal usage.

nav_open CM_BOXSTATUS_REPLUG specifies that the CmDongle has initiated a Plug Out/In event for itself to force the operating system to remount the flash drive.

nav_open CM_BOXSTATUS_HASFLASH specifies that the CmDongle contains an additional flash disc besides the CodeMeter chip.

nav_open CM_BOXSTATUS_ISCMACT specifies that this is a CmActLicense.

nav_open CM_BOXSTATUS_ISCMCLOUD specifies that this is a CmCloudContainer.

nav_open CM_BOXSTATUS_REMOVABLE specifies the configuration of the CmDongle. This can be either be a fixed disk device or a removable disk device. The configuration of the CmDongle can be altered with CmConfigDisk on Windows.

nav_open CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED specifies that the hardware (CmStick/T) has a working battery powered clock inside.

nav_open CM_BOXSTATUS_USES_HID_COMMUNICATION specifies that the CmDongle is configured as Human Interface Device (HID).

nav_open CM_BOXSTATUS_STATE_FUM specifies that the CmDongle is in Field Update Mode (FUM). In this intermediate state an update of the Firmware version needs to be executed.

nav_open CM_BOXSTATUS_STATE_LOCKED specifies that the CmContainer is locked. This cannot be repaired. This CmContainer needs to be replaced.

nav_open CM_CLOUDSTATUS_DISCONNECTED specifies that the internet connection to the CmCloudContainer has been lost.

Enabling status:

nav_open CM_BOXSTATUS_ENABLED specifies that the CmContainer is enabled.

nav_open CM_BOXSTATUS_DISABLED specifies that the CmContainer is disabled.

nav_open CM_BOXSTATUS_TEMPENABLED specifies that the CmContainer is temporarily enabled.

nav_open CM_BOXSTATUS_MASK specifies all flags for the enabling status.

CmActLicense status:

nav_open CM_ACTSTATUS_FILE specifies that a file is the base of this CmActLicense.

nav_open CM_ACTSTATUS_LOADED specifies that the CmActLicense is loaded and can be used. Used during the license creation on licensors side.

nav_open CM_ACTSTATUS_ACTIVATE_BY_FILE specifies that the CmActLicense has to be activated by a file transmission of a Remote Update File.

nav_open CM_ACTSTATUS_ACTIVE specifies that the CmActLicense currently is valid and active.

nav_open CM_ACTSTATUS_INVALID specifies that there occurred a problem with the security checks of the CmActLicense. The license cannot be used.

nav_open CM_ACTSTATUS_BROKEN specifies that the binding requirements are no longer fulfilled. The license cannot be used.

nav_open CM_BOXSTATUS_CMACT_MASK specifies all flags for CmActLicense.
 

License Transfer

nav_open CM_GEI_LTHISTORY fills a hmtoggle_plus1 CMLTHISTORY structure specified in pvDest.

nav_open CM_GEI_LTTRANSFEROPTIONS fills a hmtoggle_plus1 CMLTTRANSFEROPTIONS structure specified in pvDest.

nav_open CM_GEI_LISTALLPI serves to faster return an array of Product Items and Module Items contents using internal lists and fills a hmtoggle_plus1 CMPIENTRYBASE structure specified in pvDest.

pvDest contains pointer to a structure dependant to the flag set in flCtrl.

cbDest contains the length of pvDest in bytes.  

Return

The return value contains the real number of bytes returned in pvDest. If an error occurred, the return value is 0. If pvDest does not contain enough memory, the number of needed bytes will be returned. In this case, the return value is larger than the cbDest parameter and error code CMERROR_BUFFER_OVERFLOW is set.

Notes

This function does not really scan all available or desired ports for connected CmContainers because of CodeMeter License Servers Plug&Play mechanism and the implementation of storing all CmContainers and their content in internal lists. The function call checks the internal lists only and returns the matching data.

Since CodeMeter 3.30 CMNETINFOCLUSTER and CMNETINFOUSER is also filled when CodeMeter is not running as a network server. In older versions the error CMERROR_NO_NETWORK_SERVER is set, if CodeMeter License Server is not running as a server.

The following flags (and the corresponding functionality) are only available since CodeMeter Version 4.0:

•CM_GEI_ACT_...

•CM_GEI_BORROW...

information_weiss_klein26

Please note that borrowing in this context does not involve a license transfer. Rather it refers to borrowing using Firm Codes smaller than 6,000,000 and especially prepared CmContainer.

•CM_ACTSTATUS..., CM_BOXSTATUS_CMACT_MASK

The following flags (and the corresponding functionality) are only available since CodeMeter Version 4.30:

•CM_GEI_ACT_LICENSE_INFO2

•CM_GEI_ENTRYINFO2

•CM_GEI_ENABLEINFO

The following flags (and the corresponding functionality) are only available since CodeMeter Version 6.00:

•CM_GEI_LTHISTORY

•CM_GEI_LTTRANSFEROPTIONS

The following flag (and the corresponding functionality) is only available since CodeMeter Version 6.30:

•CM_GEI_NAMEDUSER

•CM_GEI_LISTALLPI and CMPIENTRYBASE structure

The following flag (and the corresponding functionality) is only available since CodeMeter Version 7.00.

•CM_GEI_CLOUD_LICENSE_INFO

The followings NAMEDUSER structure flags (and the corresponding functionality) is only available since CodeMeter Version 7.21.

•CM_NMU_FLAG_NAME_LIST

•CM_NMU_FLAG_SINGLE_ALLOCATION

Syntax

public object CmGetInfo(HCMSysEntry hcmse, CmGetInfoOption Ctrl)

Parameter

hcmse contains the handle opened by CmAccess / CmAccess2.

CmGetInfoOption has the following flags

nav_open IndexMask identifies the index field of a Extended Protected Data.

nav_open BoxControl contains an array of the class hmtoggle_plus1 CmBoxControl.

nav_open BoxInfo contains an array of the class hmtoggle_plus1 CmBoxInfo.

nav_open BoxSecurity fills the class hmtoggle_plus1 CmBoxSecurity.

nav_open BoxTime fills the class hmtoggle_plus1 CmBoxTime.

nav_open Communication fills the class hmtoggle_plus1 CmCommunication.

nav_open EntryData fills a hmtoggle_plus1 CmEntryData class. If more than one item is available, an array with matching or larger size must be passed.

nav_open EntryInfo2 fills a hmtoggle_plus1 CmBoxEntry2 class.

nav_open InternalEntryInfo fills as many hmtoggle_plus1 CmInternalEntryInfo classes that are necessary to store the information of all Product Items of same Product Code of a Firm Code.

nav_open MemInfo fills the hmtoggle_plus1 CmMemInfo class.

nav_open SignedList fills byte buffer with a signed list of an entry transferred.

nav_open SignedTime fills a hmtoggle_plus1 CmSignedTime class. The signed time is returned in UTC.

nav_open System fills a hmtoggle_plus1 CmSystem class.

nav_open SystemStatus fills a hmtoggle_plus1 CmSystemStatus class.

nav_open Version fills a hmtoggle_plus1 CmVersion class.

nav_open EnableBlockItems fills hmtoggle_plus1 CmEnablingEnableBlockItemList structure specified in Dest. If more than one item is available, an array with matching or larger size must be passed.

nav_open EnableLookupItemsFi fills hmtoggle_plus1 CmEnablingEnableLookupEntry class specified in Dest. The Enable Lookup Items are stored in the FirmItem area of the access handle. If more than one item is available, an array with matching or larger size must be passed.

nav_open EnableLookupItemsPi fills the CmEnablingEnableLookupEntry class. The Enable Lookup Items are stored in the Product Item area of the access handle. If more than one item is available, an array with matching or larger size must be passed.

nav_open ChipInfo fills a hmtoggle_plus1 CmChipInfo class.

nav_open BoxStatus fills a hmtoggle_plus1 CmBoxStatus class.

nav_open UsbChipInfo fills a hmtoggle_plus1 CmUsbChipInfo class.

nav_open NetInfoCluster fills an array of hmtoggle_plus1 CmNetInfoCluster classes.

nav_open NetInfoUser fills an array of a hmtoggle_plus1 CmNetInfoUser class.

nav_open Credential fills the class hmtoggle_plus1 CmCredential.

nav_open SecurityVersion fills an array of hmtoggle_plus1 CmSecurityVersion class.

nav_open NetInfoUserExt fills an array of hmtoggle_plus1 CmNetInfoUserExt class.

nav_open MemInfo2 fills the hmtoggle_plus1 CmMemInfo2 class.

nav_open CmActLicenseInfo fills a hmtoggle_plus1 CmActLicenseInfo class. It contains some information on the CmActLicense.

nav_open CmCloudLicenseInfo fills a hmtoggle_plus1 CmCloudLicenseInfo class. It contains some information on the CmCloudContainer license.

nav_open CmActErrorInfo fills a hmtoggle_plus1 CmActErrorInfo class with additional error information regarding CmActLicense.

nav_open CmActVersion fills a hmtoggle_plus1 CmVersion class. If CmActLicense is deactivated in the profiling, all values are 0.

nav_open CmBorrowClient fills hmtoggle_plus1 CmBorrowClient class. It contains the borrowing information about a borrowed client license.

nav_open CmBorrowData fills hmtoggle_plus1 CmBorrowData class. It contains the borrowing information that is needed for the borrow process on client side.

nav_open CmBorrowItems fills an array of hmtoggle_plus1 CmBorrowItem classes. It contains the borrowing information about a borrowing server license.

nav_open EnableInfo fills an array of hmtoggle_plus1 CmEnablingContext structures with enabling information matching to the used handle hcmse.

nav_open CmActLicenseInfo2 fills a hmtoggle_plus1 CmActLicenseInfo2 structure specified in pvDest. It contains some information about the CmActLicense.

nav_open LtHistory fills the hmtoggle_plus1 CmLtHistory class. It contains license transfer history information.

nav_open LtTransferOptions fills a hmtoggle_plus1 CmLtTransferOptions class. It contains the options of a license transfer.

nav_open NamedUser fills a hmtoggle_plus1 CmNamedUser class. It contains information on the PIO Named User.

nav_open PiText refers to the Product Item text as string. If no Product Item text is set, the return is empty.

nav_open ListAllPi serves to faster return an array of Product Items and Module Items contents using internal lists and fills a hmtoggle_plus1 CmPiEntryBase class.

nav_open CmdMask allows to use a bit mask for setting the previous command options.

nav_open UseLocalTime all members of the hmtoggle_plus1 CmTime class are returned in the local time format.

Return

Returns depending on the input parameter different data structures. Or null, if an error occurred.

Notes

This function does not really scan all available or desired ports for connected CmContainers because of CodeMeter License Servers Plug&Play mechanism and the implementation of storing all CmContainers and their content in internal lists. The function call checks the internal lists only and returns the matching data.

Since CodeMeter 3.30 CmNetInfoCluster and CmNetInfouser is also filled, if CodeMeter is not running as a network server. In older versions the error CMERROR_NO_NETWORK_SERVER is set, if CodeMeter License Server is not running as a server.

The following flags (and the corresponding functionality) are only available since CodeMeter Version 4.0:

•Act...

•Borrow...

information_weiss_klein26

Please note that borrowing in this context does not involve a license transfer. Rather it refers to borrowing using Firm Codes smaller than 6,000,000 and especially prepared CmContainer.

•ActStatus..., Boxstatus_CmActMask

The following flags (and the corresponding functionality) are only available since CodeMeter Version 4.30:

•CmActLicenseInfo2

•EntryInfo2

•EnableInfo

•CmBoxStatus_BatteryPoweredClockUsed

The following flag (and the corresponding functionality) is only available since CodeMeter Version 5.00:

•CmBoxStatus_UsesHidCommunication

The following flags (and the corresponding functionality) are only available since CodeMeter Version 6.00:

•LtHistory

•LtTransferOptions

The following flag (and the corresponding functionality) is only available since CodeMeter Version 6.30:

•NamedUser

•ListAllPi

The following flag (and the corresponding functionality) is only available since CodeMeter Version 7.00:

•CloudLicenseInfo

The followings NamedUser flags (and the corresponding functionality) is only available since CodeMeter Version 7.21.

•NameList

•SingleAllocation

 

 

Syntax

import cmapi
 
handle.CmGetInfo(flCtrl: int) -> GetInfoResult
throws CodeMeterApiFailedException()

Parameter

handle is the handle opened by CmAccess2.

flCtrl The following flags can be set:

nav_open cmapi.CM_GEI_BORROWDATA fills a hmtoggle_plus1 cmapi.CMBORROWDATA class specified in GetInfoResult.borrowdata(). It contains the borrowing information that is needed for the borrow process on client side.
Please note that borrowing in this context does not involve a license transfer. Rather it refers to borrowing using Firm Codes smaller than 6,000,000 and especially prepared CmContainer.

nav_open cmapi.CM_GEI_BOXINFO fills a hmtoggle_plus1 cmapi.CMBOXINFO class specified in GetInfoResult.boxinfo().

nav_open cmapi.CM_GEI_BOXTIME fills a hmtoggle_plus1 CMBOXTIME class specified in GetResultInfo.boxtime().

nav_open cmapi.CM_GEI_CLOUD_LICENSE_INFO fills a hmtoggle_plus1 cmapi.CMCLOUDLICENSEINFO class specified in GetInfoResult.cloudlicenseinfo(). It contains some information about the CmCloudContainer license.

nav_open cmapi.CM_GEI_COMMUNICATION fills the hmtoggle_plus1 cmapi.CMCOMMUNICATION class specified in GetResultInfo.communication().

nav_open cmapi.CM_GEI_CREDENTIAL fills the hmtoggle_plus1 cmapi.CMCREDENTIAL class specified in GetInfoResult.credential().

nav_open cmapi.CM_GEI_ENTRYINFO fills a hmtoggle_plus1 cmapi.CMBOXENTRY class specified in GetInfoResult.entryinfo().

nav_open cmapi.CM_GEI_ENTRYINFO2 fills a hmtoggle_plus1 cmapi.CMBOXENTRY2 class specified in GetInfoResult.entryinfo2().

nav_open cmapi.CM_GEI_ENTRYDATA fills a hmtoggle_plus1 cmapi.CMENTRYDATA class specified in GetInfoResult.entrydata().

nav_open cmapi.CM_GEI_INTERNALENTRYINFO fills as many hmtoggle_plus1 cmapi.CMINTERNALENTRYINFO classes as specified in GetInfoResult.internal_entryinfo() that are necessary to store the information of all Product Items of same Product Code of a Firm Code.

nav_open cmapi.CM_GEI_MEMINFO fills a hmtoggle_plus1 cmapi.CMMEMINFO class specified in GetInfoResult.meminfo().

nav_open cmapi.CM_GEI_MEMINFO2 fills the hmtoggle_plus1 cmapi.CMMEMINFO2 class specified in GetInfoResult.meminfo2().

nav_open cmapi.CM_GEI_NETINFO_CLUSTER fills an array of hmtoggle_plus1 cmapi.CMNETINFOCLUSTER class specified in GetInfoResult.netinfocluster().

nav_open cmapi.CM_GEI_NETINFO_USER fills a list of hmtoggle_plus1 cmapi.CMNETINFOUSER classes specifies in GetInfoResult.netinfouser().

nav_open cmapi.CM_GEI_NETINFO_USER_EXT fills a list of hmtoggle_plus1 cmapi.CMNETINFOUSER_EXT classes specified in GetInfoResult.netinfouser_ext().

nav_open cmapi.CM_GEI_NAMEDUSER fills a hmtoggle_plus1 CMNAMEDUSER structure specified in GetInfoResult.nameduser().

nav_open cmapi.CM_GEI_PITEXT refers to the Product Item text of a CMENTRYDATA structure specified in GetInfoResult.entrydata(). If the text is not set, the error cmapi.CMERROR_NO_DATA_AVAILABLE (209) is returned.

nav_open cmapi.CM_GEI_SYSTEM fills a hmtoggle_plus1 cmapi.CMSYSTEM class specified in GetInfoResult.system().

nav_open cmapi.CM_GEI_SYSTEMSTATUS fills a hmtoggle_plus1 cmapi.CMSYSTEMSTATUS class specified in GetInfoResult.systemstatus().

nav_open cmapi.CM_GEI_USELOCALTIME all members of the cmapi.CMTIME class are returned in the local time format.

nav_open cmapi.CM_GEI_VERSION fills a hmtoggle_plus1 cmapi.CMVERSION structure specified in GetInfoResult.version().

nav_open cmapi.CM_GEI_CHIPINFO fills a hmtoggle_plus1 cmapi.CMCHIPINFO structure specified in GetInfoResult.chipinfo().

nav_open cmapi.CM_GEI_USBCHIPINFO fills a hmtoggle_plus1 cmapi.CMUSBCHIPINFO structure specified in GetInfoResult.usbchipinfo().

nav_open cmapi.CM_GEI_BOXSTATUS fills a 32 bit value with following status flags.

nav_open cmapi.CM_BOXSTATUS_LOWMEMORY specifies that the CmDongle has too low memory to replace damaged memory during normal usage.

nav_open cmapi.CM_BOXSTATUS_REPLUG specifies that the CmDongle has initiated a Plug Out/In event for itself to force the operating system to remount the flash drive.

nav_open cmapi.CM_BOXSTATUS_HASFLASH specifies that the CmDongle contains an additional flash disc besides the CodeMeter chip.

nav_open cmapi.CM_BOXSTATUS_ISCMACT specifies that this is a CmActLicense.

nav_open cmapi.CM_BOXSTATUS_ISCMCLOUD specifies that this is a CmCloudContainer.

nav_open cmapi.CM_BOXSTATUS_REMOVABLE specifies the configuration of the CmDongle. This can be either be a fixed disk device or a removable disk device. The configuration of the CmDongle can be altered with CmConfigDisk on Windows.

nav_open cmapi.CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED specifies that the hardware (CmStick/T) has a working battery powered clock inside.

nav_open cmapi.CM_BOXSTATUS_USES_HID_COMMUNICATION specifies that the CmDongle is configured as Human Interface Device (HID).

nav_open cmapi.CM_BOXSTATUS_STATE_FUM specifies that the CmDongle is in Field Update Mode (FUM). In this intermediate state an update of the Firmware version needs to be executed.

nav_open cmapi.CM_BOXSTATUS_STATE_LOCKED specifies that the CmContainer is locked. This cannot be repaired. This CmContainer needs to be replaced.

nav_open cmapi.CM_CLOUDSTATUS_DISCONNECTED specifies that the internet connection to the CmCloudContainer has been lost.

Enabling status:

nav_open cmapi.CM_BOXSTATUS_ENABLED specifies that the CmContainer is enabled.

nav_open cmapi.CM_BOXSTATUS_DISABLED specifies that the CmContainer is disabled.

nav_open cmapi.CM_BOXSTATUS_TEMPENABLED specifies that the CmContainer is temporarily enabled.

nav_open cmapi.CM_BOXSTATUS_MASK specifies all flags for the enabling status.

CmActLicense status:

nav_open cmapi.CM_ACTSTATUS_FILE specifies that a file is the base of this CmActLicense.

nav_open cmapi.CM_ACTSTATUS_LOADED specifies that the CmActLicense is loaded and can be used. Used during the license creation on licensors side.

nav_open cmapi.CM_ACTSTATUS_ACTIVATE_BY_CODE specifies that the CmActLicense can be activated by entering a code (phone activation).

nav_open cmapi.CM_ACTSTATUS_ACTIVATE_BY_FILE specifies that the CmActLicense has to be activated by a file transmission of a Remote Update File.

nav_open cmapi.CM_ACTSTATUS_ACTIVE specifies that the CmActLicense currently is valid and active.

nav_open cmapi.CM_ACTSTATUS_PROGRAMMABLE specifies that this license can be programmed now. Used during the license creation on licensors side.

nav_open cmapi.CM_ACTSTATUS_INVALID specifies that there occurred a problem with the security checks of the CmActLicense. The license cannot be used.

nav_open cmapi.CM_ACTSTATUS_BROKEN specifies that the binding requirements are no longer fulfilled. The license cannot be used.

nav_open cmapi.CM_ACTSTATUS_PSN_REQUIRED specifies that the licensee has to set a Product Serial Number (PSN) at the time of creating a remote context file.

nav_open cmapi.CM_ACTSTATUS_VM_DETECTED specifies that the license is invalid since it is running in a virtual environment which is not permitted.

nav_open cmapi.CM_ACTSTATUS_BLACKLISTED specifies that the CmActLicense is blacklisted by CodeMeter Timeserver and can no longer be used.

nav_open cmapi.CM_BOXSTATUS_CMACT_MASK specifies all flags for CmActLicense.
 

nav_open cmapi.CM_GEI_LISTALLPI serves to faster return an array of Product Items and Module Items contents using internal lists and fills a hmtoggle_plus1 cmapi.CMPIENTRYBASE class specified in GetInfoResult.pientrybase().

 

Return

The return is a GetInfoResult object. Usually, a call to CmGetInfo() looks like result = handle.CmGetInfo(flag). Then, depending on the flag, the true resulting object is obtained calling result.function(). For example, for cmapi.CM_GEI_VERSION, the resulting cmapi.CMVERSION object is retrieved from result.version(). Errors are handled through the thrown exception.

Notes

This function does not really scan all available or desired ports for connected CmContainers because of CodeMeter License Servers Plug&Play mechanism and the implementation of storing all CmContainers and their content in internal lists. The function call checks the internal lists only and returns the matching data.

Since CodeMeter 3.30 cmapi.CMNETINFOCLUSTER and cmapi.CMNETINFOUSER is also filled when CodeMeter is not running as a network server. In older versions the error cmapi.CMERROR_NO_NETWORK_SERVER is set, if CodeMeter License Server is not running as a server.

The following flags (and the corresponding functionality) are only available since CodeMeter Version 4.0:

•cmapi.CM_GEI_ACT_...

•cmapi.CM_GEI_BORROW...

information_weiss_klein26

Please note that borrowing in this context does not involve a license transfer. Rather it refers to borrowing using Firm Codes smaller than 6,000,000 and especially prepared CmContainer.

•cmapi.CM_ACTSTATUS..., cmapi.CM_BOXSTATUS_CMACT_MASK

The following flags (and the corresponding functionality) are only available since CodeMeter Version 4.30:

•cmapi.CM_GEI_ACT_LICENSE_INFO2

•cmapi.CM_GEI_ENTRYINFO2

•cmapi.CM_GEI_ENABLEINFO

The following flags (and the corresponding functionality) are only available since CodeMeter Version 6.00:

•cmapi.CM_GEI_LTHISTORY

•cmapi.CM_GEI_LTTRANSFEROPTIONS

The following flag (and the corresponding functionality) is only available since CodeMeter Version 6.30:

•cmapi.CM_GEI_NAMEDUSER

•cmapi.CM_GEI_LISTALLPI and cmapi.CMPIENTRYBASE structure

The following flag (and the corresponding functionality) is only available since CodeMeter Version 7.00.

•cmapi.CM_GEI_CLOUD_LICENSE_INFO

The followings NAMEDUSER structure flags (and the corresponding functionality) is only available since CodeMeter Version 7.21.

•cmapi.CM_NMU_FLAG_NAME_LIST

•cmapi.CM_NMU_FLAG_SINGLE_ALLOCATION