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.
|
Triple Mode Redundancy-related information (TMR)
|
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:
CM_GEI_ACT_ERROR_INFO fills a
CMACTERRORINFO structure specified in pvDest with additional error information regarding -CmActLicense.
|
CMACTERRORINFO receives additional information for CmActLicense errors. Syntax
Parameter mulErrorCode contains the error code that has occurred. mulReserved is reserved for future purposes. mszAdditionalInfo contains an additional error text to explain the occurred error more briefly.
|
CM_GEI_ACT_LICENSE_INFO fills a
CMACTLICENSEINFO structure specified in pvDest. It contains some information about the CmActLicense.
|
CMACTLICENSEINFO specifies the data that is used for creating or reading a CmActLicense. Syntax
Parameter musBoxMask contains the box mask of the CmActLicense. musReserved1 is reserved for future purposes. mulSerialNumber contains the serial number of the CmActLicense. mulFirmCode contains the Firm Code of the CmActLicense. mulStatus specifies the status of the CmActLicense by the following flags:
mflLicenseOptions specifies optional license options:
mulReserved2 is reserved for future purposes. mulReserved3 is reserved for future purposes. mszProductName contains the name of the CmActLicense (Firm Item Text of Implicit Firm Item). mszProductNameExt is currently not used. mszVendorName is currently not used. mszVendorPhone is currently not used. mszVendorEMail is currently not used. mszVendorWebPortal is currently not used. mszVendorWebService is currently not used. mszVendorRegExpression is currently not used. mulProductMinorId contains the Product Minor Id. mulReserved4 is reserved for future purposes. mszProductMajorId contains the Product Major ID which is 4 bytes long. mbReserved1 is reserved for future purposes. musNumberOfProductDescriptions contains the number of Product Descriptions in maProductDescriptions. maProductDescriptions is an array of CMACTPRODUCTDESCRIPTION structures which holds all Product Items of this CmActLicense. mszProductSerialNumber contains the serial number in case of binding scheme "SERIAL".
|
CM_GEI_ACT_LICENSE_INFO2 fills a
CMACTLICENSEINFO2 structure specified in pvDest. It contains some information about the CmActLicense.
|
CMACTLICENSEINFO2 specifies the data that is used for creating or reading a CmActLicense. Syntax
Parameter musBoxMask contains the box mask of the CmActLicense. musReserved1 is reserved for future purposes. mulSerialNumber contains the serial number of the CmActLicense. mulFirmCode contains the Firm Code of the CmActLicense. mulStatus specifies the status of the CmActLicense by the following flags:
mflLicenseOptions specifies optional license options:
mszProductName contains the name of the CmActLicense (Firm Item Text of Implicit Firm Item). mszPluginName contains the name of the plugin in case of using activation scheme "Binding Extension". mabNameHash contains the second part of the name of the inventory file in case of using activation scheme "SmartBind". mulTelephoneId contains the Telephone Id, formerly known as Product Minor Id. mszCmActId contains the CmActID, formerly known as Product Major ID. The length is 4 bytes. mbReserved2 is reserved for future purposes. musNumberOfProductDescriptions contains the number of Product Descriptions in maProductDescriptions. maProductDescriptions is an array of mszProductSerialNumber contains the serial number in case of binding scheme "SERIAL". mabDeviceId contains the ID of the device to which the license is bound. mabReserved3 is reserved for future purposes.
Return On success, CmGetInfo(CM_GEI_ACT_LICENSE_INFO2)` returns sizeof(CMACTLICENSEINFO2). On failure, 0 is returned, and the last CmError is set accordingly, unless the error is CMERROR_BUFFER_OVERFLOW. In this case, the required buffer size is returned, too (sizeof(CMACTLICENSEINFO2)).
Error Codes CMERROR_INVALID_HANDLE if hcmse == NULL CMERROR_FUNCTION_NOT_IMPLEMENTED if CMACT/CMACT_LT is not enabled CMERROR_WRONG_BOX_TYPE if box is dongle or type of box cannot be detected/is unkown CMERROR_WRONG_HANDLE_TYPE if the handle is not of type ACCESS_TYPE_BOX | ACCESS_TYPE_FIRMITEM | ACCESS_TYPE_ENTRY CMERROR_INVALID_PARAMETER if wrong parameter passed to CmGetInfo(CM_GEI_ACT_LICENSE_INFO2) CMERROR_BUFFER_OVERFLOW if (cbDest < minSize) || (NULL == pvDest)
|
CM_GEI_BORROWCLIENT fills a
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.
|
CMBORROWCLIENT contains the data of a borrowing client. Syntax
Parameter mulStatus contains the current status of the enabling block:
midEnableBlock contains the index of the enabling block used for the borrowing operation. midCps contains the used copy protection system on server side:
mulFirmCode contains Firm Code of the borrowed license on the server side. mulProductCode contains the Product Code of the borrow license on the server side. mabUpdateProgSeq holds the programming sequence for programming some additional data into the CmDongle. mabServerID contains the id of the borrow server. mabReserved1 is reserved for future purposes. musReserved is reserved for future purposes. musServerBoxMask contains the box mask of the license container on the server side. mulServerBoxSerial contains the serial number of the license container on the server side. mszServerName contains the DNS name of the borrowing server. mabReserved2 is reserved for future purposes.
|
CM_GEI_BORROWDATA fills a
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.
|
CMBORROWDATA stores all needed parameters needed for borrowing a license. It is used within CmAccess2() and can be filled with CmGetInfo. Syntax
Parameter mulStatus contains the current status of the enabling block:
midEnableBlock contains the index of the enabling block used for the borrowing operation. midCps contains the used copy protection system on client side:
mulFirmCode contains Firm Code of the borrow license on the client side. mulProductCode contains the Product Code of the borrow license on the client side. mulFeatureMap contains the Feature Map of the borrow license on the client side. musReserved is reserved for future purposes. musBoxMask contains the box mask of the license container on the client side. mulBoxSerial contains the serial number of the license container on the client side. mabSerialPublicKey contains the Public Serial Key of the license container on the client side. mabServerID contains the id of the borrow server. mszClientName contains the DNS name of the borrowing client. mabTrailingValidationBlock contains the trading validation block that allows a validation of the contents of this structure. mulClientRequestTime contains the system time of the client. mulMaintenancePeriodStart contains the start date of the Maintenance Period of the Product Item, if available. mulMaintenancePeriodEnd contains the end date of the Maintenance Period of the Product Item, if available
|
CM_GEI_BORROWITEMS fills an array of
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.
|
CMBORROWITEM contains the borrowing data of a borrowing server license. Syntax
Parameter midCps contains the used copy protection system on client side:
musReserved is reserved for future purposes. mulFirmCode contains Firm Code of the borrow license on the client side. mulProductCode contains the Product Code of the borrow license on the client side. mulFeatureMap contains the maximum Feature Map of the borrow license on the client side. The Feature Map requested by the client can be a subset of this Feature Map. mcLicenseQuantity contains the maximum number of licenses that can be borrowed from this server license. mulCheckoutDuration contains the maximum period (in minutes) the client is allowed to borrow this license from the server. mabServerID contains the id of the borrow server.
|
CM_GEI_BOXCONTROL fills a
CMBOXCONTROL structure specified in pvDest.
|
The CmDongle controller chip may support some digital output and some digital input lines, generally named as Control Lines. The CmDongle architecture supports following lines store in the CMBOXCONTROL structure: •Up to 16 Indicator Control Lines are controlled (powered) by the chip. They may be set to 0 or 1, for example to supply a LED (Light Emitting Diode). •Up to 16 Switcher Control Lines are read by the chip. Their read value may be 0 or 1, for example controlled by a switcher or button. Syntax
Parameter musIndicatorFlags contains the current setting of the indicator control lines. musSwitchFlags contains the current setting of the switcher control lines. mulReserve is reserved for future purposes.
|
CM_GEI_BOXINFO fills a
CMBOXINFO structure specified in pvDest.
|
This structure contains information on a CmContainer. Syntax
Parameter mbMajorVersion contains the major version of the CmContainer. mbMinorVersion contains the minor version of the CmContainer. musBoxMask contains the box mask of the CmContainer. mulSerialNumber contains the serial number of the CmContainer. musBoxKeyId contains the ID of the used BoxKey of the CmContainer. musUserKeyId contains the ID of the used UserKey of the CmContainer. mabBoxPublicKey[CM_PUBLIC_KEY_LEN] contains the public Box Key of the CmContainer. mabSerialPublicKey[CM_PUBLIC_KEY_LEN] contains the public Serial Key of the CmContainer. mulReserve is reserved for future purposes. Notes The length of the mabBoxPublicKey and mabSerialPublicKey is 64 byte long. The used public key are currently 224 bits = 28 bytes long. In Elliptic Curve Cryptography the public key is a 2 dimensional point, so the x-value is stored in the first 28 bytes (0..27) and the y-value is store in byte 32..59.
|
CM_GEI_BOXSECURITY fills a
CMBOXSECURITYstructure specified in pvDest.
|
CMBOXSECURITY contains security relevant data stored inside the CmContainer. Syntax
Parameter midOem contains OEM ID of the CmContainer. mulFsbFirmCode contains the Firm Code of the Firm-Security-Box (FSB) for this CmContainer. mulCtsbFirmCode contains the Firm Code of the Certified-Time-Security-Box (CTSB) for this CmContainer. mulReserve is reserved for future purposes.
|
CM_GEI_BOXTIME fills a
CMBOXTIME structure specified in pvDest.
|
CMBOXTIME returns the three values of time clocks: Certified, Box and System Time. Syntax
Parameter mcmCertifiedTime contains the Certified Time(see
mcmBoxTime contains the Box Time (see CMTIME). mcmSystemTime contains the System Time (see CMTIME).
|
CM_GEI_CLOUD_LICENSE_INFO fills a
CMCLOUDLICENSEINFO structure specified in pvDest. It contains some information about the CmCloudContainer license.
|
CMCLOUDLICENSEINFO specifies the data that is used for reading a CmCloudContainer license. Syntax
Parameter musBoxMask contains the box mask of the CmCloudContainer. musReserved1 is reserved for future purposes. mulSerialNumber contains the serial number of the CmCloudContainer. mulExtendedSerial contains the extended serial number for CmCloudContainer. mulFirmCode contains the Firm Code of the CmCloudContainer. mulStatus specifies the status of the CmCloudContainer by the following flags (relevant values of CM_GEI_BOXSTATUS for CmCloud):
mszUrl contains the URL to the CmCloudContainer. The maximum length is 1023 bytes since mszUrl is not always completely filled and zero terminated. mszCmActId contains the CmActID, formerly known as Product Major ID. The length is 4 bytes. mbReserved2 is reserved for future purposes.
Return On success, CmGetInfo(CM_GEI_CLOUD_LICENSE_INFO)` returns sizeof(CM_GEI_CLOUD_LICENSE_INFO). On failure, 0 is returned, and the last CmError is set accordingly, unless the error is CMERROR_BUFFER_OVERFLOW. In this case, the required buffer size is returned, too (sizeof(CM_GEI_CLOUD_LICENSE_INFO)).
Error Codes CMERROR_INVALID_HANDLE if hcmse == NULL CMERROR_WRONG_BOX_TYPE if box is CmDongle or CmActLicense or type of box cannot be detected/is unkown CMERROR_WRONG_HANDLE_TYPE if the handle is not of type ACCESS_TYPE_BOX | ACCESS_TYPE_FIRMITEM | ACCESS_TYPE_ENTRY CMERROR_INVALID_PARAMETER if wrong parameter passed to CmGetInfo(CM_GEI_CLOUD_LICENSE_INFO) CMERROR_BUFFER_OVERFLOW if (cbDest < minSize) || (NULL == pvDest)
|
CM_GEI_COMMUNICATION fills the
CMCOMMUNICATION structure specified in pvDest.
|
CMCOMMUNICATION returns communication relevant settings of CodeMeter License Server when performing a Subsystem Access. Syntax
Parameter mulServerFeatures may contain the following bits set and informs on the network server access features:
musApiCommunicationMode contains the communication access mode settings.The following flags are available, if the default setting is not set (see table below):
mabReserved is reserved for future purposes. mszDomainName contains the domain name of the computer to which CodeMeter License Server performs communication accesses. mszIpV4Address contains an IPv4 address of the computer to which CodeMeter License Server performs communication accesses. mszIpV6Address contains an IPv6 address of the computer to which CodeMeter License Server performs communication accesses. mszComputerName contains the name of the computer to which CodeMeter License Server performs communication accesses. Note The structure is available since CodeMeter Version 5.20.
|
CM_GEI_CREDENTIAL fills the
CMCREDENTIAL structure specified in pvDest.
|
CMCREDENTIAL holds parameters that can be used for a CmAccess2() call to refine the license allocation and the assignment to the CodeMeter License Server, for example, via an arbitrary user name. Syntax
Parameter mulPID contains the process ID that is set by the CodeMeter library (read only). mulSession is always zero on the user site. mulCleanupTime this parameter overwrites the CleanupTime profiling value for license releasing in minutes. mulMaxLifeTime defines the maximum lifetime (in minutes) of the license that is allocated. mulCreationTime holds the creation time of the license that was accessed in seconds since 01.01.2000. mulAccessCtrl holds the type of access (since 4.20): The first group of flags hold information about local or Lan access:
The second group defines the access type:
mulExpirationTime the expiration time of a borrowed entry or the regular expiration time otherwise. mulUserDefinedID contains the user defined ID. mszUserDefinedText contains a user defined text (UTF-8 encoded). mszUsername holds an arbitrary user name (read only).
mulOtherBorrowFirmCode contains the Firm Code of the borrow partner. mulOtherBorrowProductCode contains the Product Code of the borrow partner. mulOtherBorrowFeatureMap contains the Feature Map of the borrow partner. mulOtherBorrowSerial contains the serial number of the borrow partner. musOtherBorrowMask contains the serial mask of the borrow partner. mbLibType contains information on the WibuCm client library type set by the client library itself. The following types exist:
mbCompatibilitySession contains for StationShare compatibility reasons additionally the transferred value for accesses by CodeMeter versions up to 7.10 (see the knowledgebase overview license (access) options). mulCurrentCmInstanceUid actual unique ID used to discriminate client computers for StationShare accesses (see the knowledgebase overview license (access) options). mulPreviousCmInstanceUid unique ID used to discriminate the previous access by client computers for StationShare accesses (see the knowledgebase overview license (access) options). mszDomainName contains the domain name (read only). mulLibVersion contains information on the version (Major, Minor, Build) of mbLibType set by the client library itself.
|
CM_GEI_ENTRYINFO fills a
CMBOXENTRY structure specified in pvDest.
|
CMBOXENTRY contains data of one entry. An entry is containing one Firm Item and one Product Item. In this structure all static data are stored. The dynamic data must read out of the CmContainer explicitly. Syntax
Parameter mflFiCtrl specifies the type of the Firm Item. The following flags can be set:
mulFirmCode contains the Firm Code of the Firm Item. musFirmAccessCounter contains the Firm Access Counter of the Firm Item. musReserve1 is reserved for future purposes. mulFirmUpdateCounter contains the Firm Update Counter of the Firm Item. mulFirmPreciseTime contains the FirmPreciseTime of the Firm Item. mausFirmItemText[CM_MAX_STRING_LEN] contains the Firm Item Text of the Firm Item. mflSetPios specifies all available PIO's at this Product Item. The following flags can be set:
mulProductCode contains the Product Code of the Product Item. mulFeatureMap contains the Feature Map of the Product Item. mulUnitCounter contains the Unit Counter of the Product Item, if available. mcmExpirationTime contains the Expiration Time of the Product Item, if available (see
mcmActivationTime contains the Activation Time of the Product Item, if available (see CMTIME). mfbDependencyPC contains the dependency flags of the Product Code. mfbDependencyFM contains the dependency flags of the Feature Map. mfbDependencyUC contains the dependency flags of the Unit Counter. mfbDependencyET contains the dependency flags of the Expiration Time. mfbDependencyAT contains the dependency flags of the Activation Time. mbReserve is reserved for future purposes. musProductItemRef holds the Product Item Reference. Notes The dynamic data can be read out with GetInfo()/CM_GEI_ENTRYDATA. The dependency parameters (mfbDependencyXX) can be have one or more of the following flags: •CM_GF_DATA specifies that the parameter depends on the contents of the data of the Firm Item. •CM_GF_FUC specifies that the parameter depends on the Firm Update Counter of the Firm Item. •CM_GF_SERIAL specifies that the parameter depends on the Serial Number of the CmContainer. On Windows the mausFirmItemText array can be simply converted via CmConvertString() into the specified character set.
|
CM_GEI_ENTRYINFO2 fills a
CMBOXENTRY2 structure specified in pvDest.
|
CMBOXENTRY2 contains data of one entry. An entry is containing one Firm Item and one Product Item. In this structure all static data are stored. The dynamic data must read out of the CmContainer explicitly. Syntax
Parameter mflFiCtrl specifies the type of the Firm Item. The following flags can be set:
mulFirmCode contains the Firm Code of the Firm Item. musFirmAccessCounter contains the Firm Access Counter of the Firm Item. musReserve1 is reserved for future purposes. mulFirmUpdateCounter contains the Firm Update Counter of the Firm Item. mulFirmPreciseTime contains the FirmPreciseTime of the Firm Item. mausFirmItemText[CM_MAX_STRING_LEN] contains the Firm Item Text of the Firm Item. mabReserve1 is reserved for future purposes. mflSetNativePios specifies in the context of used Module Items the native representation of the PIOs as programmed. mflSetEffectivePios specifies in the context of used Module Items the effective representation, i.e including eventually inherited PIOs. mflSetPios specifies all available PIO's at this Product Item. The following flags can be set:
mulProductCode contains the Product Code of the Product Item. mulFeatureMap contains the Feature Map of the Product Item. mcmMaintenancePeriodStart contains the start date of the Maintenance Period of the Product Item, if available. mcmMaintenancePeriodEnd contains the end date of the Maintenance Period of the Product Item, if available. mulUnitCounter contains the Unit Counter of the Product Item, if available. mcmExpirationTime contains the Expiration Time of the Product Item, if available (see
mcmActivationTime contains the Activation Time of the Product Item, if available (see CMTIME). mulUsagePeriodLifeTime contains the period length of the Usage Period in seconds, if available. mcmUsagePeriodStartTime contains the start time of the Usage Period, if available (see CMTIME). mulLicenseQuantity contains the License Quantity of the Product Item, if available. mulLingerTime contains the Linger Time of the Product Item, if available. mulMinimumRuntimeVersion contains the Minimum Runtime Version of the Product Item, if available. Available since CodeMeter Version 5.20. If the current Runtime Version does not match the Minimum Runtime Version set, the error CMERROR_RUNTIME_VERSION_TOO_OLD displays. mflLicenseQuantityFlags contains the flags for license access options, i.e. local accesses (see the knowledgebase overview license (access) options).
mulLicenseTag contains information in the context of Triple Mode Redundancy feature if available. mflTransferStatus contains the flag of the transfer status. The following flags exist:
mabProductItemId contains an unique identifier for the Product Item. mabReserve2 is reserved for future purposes. musMaxEncryptionRate contains the Maximum Encryption Rate. mfbDependencyPC contains the dependency flags of the Product Code. mfbDependencyFM contains the dependency flags of the Feature Map. mfbDependencyUC contains the dependency flags of the Unit Counter. mfbDependencyET contains the dependency flags of the Expiration Time. mfbDependencyAT contains the dependency flags of the Activation Time. mfbDependencyUP contains the dependency flags of the Usage Period. mfbDependencyLQ contains the dependency flags of the License Quantity. mfbDependencyLT contains the dependency flags of the Linger Time. mfbDependencyMV contains the dependency flags of the Minimum Runtime Version.
mabReserve3 is reserved for future purposes. musModuleRef contains the Product Item Reference of the super-ordinated Product Item of a Module Item. All items of a module then have the same ModulRef if available. musProductItemRef holds the Product Item Reference. musTransferBoxMask holds the box mask of the source in the case of a transferred license if available. mulTransferSerialNumber holds the serial number of the source in the case of a transferred license if available. mcmTransferBorrowExpirationTime holds the time at which a borrowed license (license transfer) expires if available. mabTransferId[10] holds the Id of the transfer (corresponds to the Id in the history item of the sender) if available. mabReserve4 is reserved for future purposes. Notes The dynamic data can be read out with GetInfo()/CM_GEI_ENTRYDATA. The dependency parameters (mfbDependencyXX) can be have one or more of the following flags: •CM_GF_DATA specifies that the parameter depends on the contents of the data of the Firm Item. •CM_GF_FUC specifies that the parameter depends on the Firm Update Counter of the Firm Item. •CM_GF_SERIAL specifies that the parameter depends on the Serial Number of the CmContainer. On Windows the mausFirmItemText array can be simply converted via CmConvertString() into the specified character set. CMBOXENTRY2 is supported since CodeMeter Version 4.30. The member mulLingerTime is available since CodeMeter Version 4.40. The member mulMinimumRuntimeVersion is available since CodeMeter Version 5.20. The following flags of the mflSetPio are available since CodeMeter Version 6.00: •CM_BE_MODULE_ITEM •CM_BE_BORROWEXPIRATIONTIME •CM_BE_HISTORY •CM_BE_TRANSFEROPTIONS •CM_BE_RETURNINFO •CM_BE_ACCEPTSPULL The flags CM_GF_TRANSFERBASED and CM_GF_FI_ALLOWED_TO_PULL of mflFiCtrl are available since CodeMeter Version 6.00. The members musModuleRef, musTransferBoxMask, mulTransferSerialNumber, mcmTransferBorrowExpirationTime, mabTransferId, mflLicenseQuantityFlags are available since CodeMeter Version 6.00. The member musMaxEncryptionRate is available since CodeMeter Version 6.50. For mflTransferStatus the flags CM_TRANSFER_STATUS_ENABLED, CM_TRANSFER_STATUS_DISABLED, CM_TRANSFER_STATUS_RETURNED, CM_TRANSFER_STATUS_EXPIRED: are available since CodeMeter Version 6.30. For mflSetPio the flag CM_BE_NAMEDUSER is available since CodeMeter Version 6.30. For mflSetPio the flags CM_BE_ACCESS_PASSWORD and CM_BE_MAX_ENCRYPTION_RATE is available since CodeMeter Version 6.50. |
CM_GEI_ENTRYDATA fills a
CMENTRYDATA structure specified in pvDest. If more than one item is available, an array with matching or larger size must be passed.
|
CMENTRYDATA contains a dynamic added data of a Product Item with all its properties. Syntax
Parameter mflCtrl specifies the type of the dynamic added entry. It can contain one of the following flags:
For the three entry types Extended Protected Data, Hidden Data and Secret Data the index of this data type is or'ed in the upper two bytes. See remarks for a sample. mflDependency contains the dependency of the dynamic added entry. It can be have one or more of the following flags:
mulReserve is reserved for future purposes. mcbData contains the length of mabData, for text entries (CM_GF_TEXT) the number of characters, for all other types the number of stored bytes. mabData[2 * CM_MAX_STRING_LEN] contains the data of the dynamic added entry with the length stored in mcbData. For text entries (CM_GF_TEXT) the byte array contains an UCS2-LE encoded null-terminated string. Notes To check the mflCtrl you can use the CM_GF_PIO_MASK to retrieve only the data type flag, e.g. mflCtrl & CM_GF_PIO_MASK. To retrieve the index of Extended Protected Data, Hidden Data or Secret Data you need to extract the upper two bytes of mflCtrl, e.g. by mflCtrl >> 16. For an easier conversion of mabData it may be helpful to use CmConvertString().
|
CM_GEI_INTERNALENTRYINFO fills as many
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.
|
CMINTERNALENTRYINFO stores internal data of an entry. Syntax
Parameter musFirmItemReference contains the Firm Item Reference in the CmContainer of the Firm Item. musProductItemReference contains the Product Item Reference in the CmContainer of the Product Item. mulFirmItemType specifies the type of the Firm Item. The following flags can be set:
mulFirmUpdateCounter contains the Firm Update Counter of the Firm Item. mulReserve is reserved for future purposes.
|
CM_GEI_MEMINFO fills a
CMMEMINFO structure specified in pvDest.
|
CMMEMINFO stores the number of free memory blocks inside a CmDongle. Syntax
Parameter mcFree4ByteBlock contains the number of free 4 byte blocks. mcFree8ByteBlock contains the number of free 8 byte blocks. mcFree16ByteBlock contains the number of free 16 byte blocks. mcFree32ByteBlock contains the number of free 32 byte blocks. mcFree64ByteBlock contains the number of free 64 byte blocks. mcFree128ByteBlock contains the number of free 128 byte blocks. mcFree256ByteBlock contains the number of free 256 byte blocks. mcFree512ByteBlock contains the number of free 512 byte blocks.
|
CM_GEI_MEMINFO2 fills the
CMMEMINFO2 structure specified in pvDest.
|
CMMEMINFO2 stores the number of free memory blocks inside a CmDongle. Syntax
Parameter mcFree4ByteBlock contains the number of free 4 byte blocks. mcFree8ByteBlock contains the number of free 8 byte blocks. mcFree16ByteBlock contains the number of free 16 byte blocks. mcFree32ByteBlock contains the number of free 32 byte blocks. mcFree64ByteBlock contains the number of free 64 byte blocks. mcFree128ByteBlock contains the number of free 128 byte blocks. mcFree256ByteBlock contains the number of free 256 byte blocks. mcFree512ByteBlock contains the number of free 512 byte blocks. mulReserved1 is reserved for future purposes. mulReserved2 is reserved for future purposes. mulReserved3 is reserved for future purposes. mulReserved4 is reserved for future purposes. mulTotalBytesFree holds the total number of free bytes. mulCapacity holds the total memory size.
|
CM_GEI_NETINFO_CLUSTER fills an array of
CMNETINFOCLUSTER structures specified in pvDest.
|
CMNETINFOCLUSTER stores the information about the licenses in a network including the current allocation status. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter mulSerial contains the serial number of the CmContainer. musMask contains the box mask of the CmContainer. musProductItemRef Product Item Reference of the the Product Item. mulFirmCode contains the Firm Code. mulProductCode contains the Product Code. mulFeatureMap contains the Feature Code of the Product Item. mulUserLimitLicenses contains the number of licenses allocated via CM_ACCESS_USERLIMIT mode. mulNoUserLimitLicenses contains the number of licenses allocated via CM_ACCESS_NOUSERLIMIT mode. mulExclusiveLicenses contains the number of licenses allocated via CM_ACCESS_EXCLUSIVE mode. mulStationShareLicenses contains the number of licenses allocated via CM_ACCESS_STATIONSHARE mode. mulUsedLicenses contains the number of licenses that are in use. This includes licenses that are allocated with CM_ACCESS_USERLIMIT, CM_ACCESS_EXCLUSIVE and CM_ACCESS_STATIONSHARE mode. mulFreeLicenses contains the number of free licenses. (mulTotalLicenses - mulUsedLicenses) mulTotalLicenses contains the total amount of licenses for a Product Item or a Product Item cluster. mulLicenseQuantity contains the number of licenses that are available for accessing the specific Product Item entry. Includes also information on local licenses (License Quantity =0). ulReserved1 is reserved for future purposes.
|
CM_GEI_NETINFO_USER fills an array of
CMNETINFOUSER structures specifies in pvDest.
|
CMNETINFOUSER stores the information about the licenses in a network that are currently allocated. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter mulSerial contains the serial number of the CmContainer. musMask contains the box mask of the CmContainer. musProductItemRef Product Item Reference of the the Product Item. mulFirmCode contains the Firm Code. mulProductCode contains the Product Code. mulFeatureMap contains the Feature Code of the Product Item. mulID contains the application identifier to the corresponding handle. mulAccessMode contains the access mode to the specified entry. mulCreationTime contains the creation time in UTC. mszClientIP[32] contains the IP address of the client accessing the license.
|
CM_GEI_NETINFO_USER_EXT fills an array of
CMNETINFOUSER_EXT structures specified in pvDest.
|
CMNETINFOUSER_EXT stores the information about the licenses in a network that are currently allocated by an CmAccess2 call. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter musMask contains the box mask of the CmContainer. mflCtrl allows you to see something about the access type:
mulSerial contains the serial number of the CmContainer. musProductItemRef Product Item Reference of the Product Item. mulFirmCode contains the Firm Code. mulProductCode contains the Product Code. mulFeatureMap contains the Feature Code of the Product Item. mulID contains the application identifier to the corresponding handle. mulAccessMode contains the access mode to the specified entry. mulLastAccessTime contains the timestamp of the last access to this handle in UTC since 2000. mulReserved2 is reserved for future purposes. mulReserved3 is reserved for future purposes. mulReserved4 is reserved for future purposes. mszClientAddress[64] contains the IP-address of the server. mcmCredential references the CMCREDENTIAL structure.
|
CM_GEI_NAMEDUSER fills a
CMNAMEDUSER structure specified in pvDest.
|
CMNAMEDUSER stores the information about the PIO Named User. This PIO is used during CmAccess2() to verify the CMACCESS::mcmCredential.msz*** parameters Username, DomainName and UserDefinedText supplied in CmAccess(2) against the credentials stored here. Syntax
Parameter musPioType and mflDependency refer to the same-named parameter of the CMENTRYDATA structure. For internal use only. musIndex identifies the named user entry data. mulReserved is reserved for future purposes. mcbEntryData contains the length of the following data. mabTag[4] always contains the tag "cmnu" (CodeMeter Named User) to uniquely identify the PioType Extended Protected Data. mbVersion refers to the version number of cmnu; currently set to version 2. mbNextIndex currently holds a value of 0. mbfModeFlags contains the
mbReserved2 is reserved for future purposes. mulCrc32 holds the internal value of the CRC32 encryption of byte 1 through 8. mulNameListId contains the NameListId. mabHash[32] holds the hash value used during license creation. mabPlaintext[128] holds, if flag CM_NMU_FLAG_PLAINTEXT has been set, the credentials used with the selected mode. The format is UTF-8. Notes
|
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.
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));
CM_GEI_SYSTEM fills a
CMSYSTEM structure specified in pvDest.
|
CMSYSTEM stores system specific data. Syntax
Parameter midPlatform contains the Platform ID of the OS, the version of the Windows OS,the byte order of the system, and the information, if CodeMeter runs in a virtual machine (VM) environment. To retrieve the Windows version combine this parameter with binary AND of CM_SYSTEM_VERSION_MASK.
To retrieve the Platform ID combine this parameter with binary AND of CM_SYSTEM_PLATFORM_MASK. The Platform ID is one of the following flags:
To retrieve the byte order combine this parameter with binary AND of CM_SYSTEM_ENDIAN_ORDER_MASK. The byte order is one of the following flags:
If CodeMeter runs in a virtual machine environment the following flag is set:
mulSystemKernelVersion contains the kernel version of the OS. mausIpAddress[CM_IP_ADDRESS_LEN] contains the IPv4-address of the computer. In case of IPv6 this field is not filled. Due to IPv6 is coming up this field should no longer be used. mszComputerName[CM_MAX_STRING_LEN] contains the name of the computer. In case of only IPv6 is used and no name can be derived, the IPv6-address is stored here as a string. The value of this field can be easily used as mszServername in structure CMACCESS2.
|
CM_GEI_SYSTEMSTATUS fills a
CMSYSTEMSTATUS structure specified in pvDest.
|
CMSYSTEMSTATUS stores system specific data. Syntax
Parameter mflStatusFlags may contain the following bits set:
mulServerStartTimeInSecondsSince01_01_2000 contains the start time of CodeMeter server in seconds since 01.01.2000, 00:00 (UTC).
|
CM_GEI_SIGNEDLIST fills byte buffer with a signed list of an entry passed in pvDest.
CM_GEI_SIGNEDTIME fills a
CMSIGNEDTIME structure specified in pvDest. The signed time is returned in UTC.
|
CMSIGNEDTIME stores the time values of Certified-, Box- and System Time and a Trailing Validation Block to validate them. The time is returned in UTC. Syntax
Parameter mcmBoxTime contains all time values of the CmContainer (see
mabTrailingValidationBlock contains a 16-byte TVB (Trailing Validation Block). The TVB is a signature calculated out of the Certified-, Box- and System Time for later validation.
|
CM_GEI_USELOCALTIME all members of the CMTIME structure are returned in the local time format.
CM_GEI_VERSION fills a
CMVERSION structure specified in pvDest.
|
CMVERSION stores the complete version of a CodeMeter module. Syntax
Parameter musVersion contains the major version of the CodeMeter module. musSubVersion contains the minor version of the CodeMeter module. musBuild contains the build number of the CodeMeter module. musCount contains the count of the CodeMeter module. musYear contains the year of creation of the CodeMeter module. musMonth contains the month of creation of the CodeMeter module. musDay contains the day of creation of the CodeMeter module. musReserve is reserved for future purposes.
|
CM_GEI_SECURITYVERSION fills the
CMSECURITYVERSION structure specified in pvDest.
|
CMSECURITYVERSION contains the version of the security library that was loaded. Syntax
Parameter musVersion contains the major version of the security library. musSubVersion contains the minor version of the security library. musBuild contains the build number of the security module. musCount contains the count of the security module. musYear contains the year of creation of the security module. musMonth contains the day of creation of the security module. type contains the type of the security module. tba. musReserved1 is reserved for future purposes. musReserved2 is reserved for future purposes. mulReserved2 is reserved for future purposes. mulReserved3 is reserved for future purposes.
|
CM_GEI_ENABLEBLOCKITEMS fills a
CMENABLING_ENABLEBLOCKITEM_LIST structure specified in pvDest. If more than one item is available, an array with matching or larger size must be passed.
Structure CMENABLING_ENABLEBLOCKITEM_LIST CMENABLING_ENABLEBLOCKITEM_LIST contains data of a Enable Block Items (EBI) when they are read out of the CmContainer. Syntax
Parameter musOption specifies the following flags.
mbIndex specifies the EBI Index inside a Firm Item (or IFI). mbType specifies the type of the used enabling. This can be one of the following flags:
mcmSimplePin contains the data when the EBI is using SimplePin enabling (see
mcmTimePin contains the data when the EBI is using TimePin enabling (see structure
Note On Windows the mausText array can be simply casted to a wchar_t array, because on Windows wchar_t is a 16 Bit value. On macOS and Linux the whole array must be converted byte by byte to a wchar_t array because here wchar_t has is 32 Bit long by default.
|
CM_GEI_ENABLELOOKUPITEMS_FI fills a
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.
|
CMENABLING_ENABLELOOKUPENTRY defines a single Enabling Lookup Entry Item (ELI). Syntax
Parameter musOption specifies the following flags.
mbEnableBlockIndex contains the index of the EBI. mbEnableLevel specifies the Enable Level. This can be one of the following flags (see mbDisableLevel). mbDisableLevel specifies the Disable Level. This can be one of the following flags:
mbType specifies the type of the used enabling. This can be one of the following flags:
musStatus specifies the following flags.
Note The members mbType and musStatus are available since CodeMeter Version 4.40.
|
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.
CM_GEI_ENABLEINFO fills an array of
CMENABLING_CONTEXT structures with enabling information matching to the used handle hcmse.
|
CMENABLING_CONTEXT contains enabling data. It can be collected using CmGetInfo with option CM_GEI_ENABLEINFO. It can be used for enabling using CmProgram. Syntax
Parameter mulFirmCode contains the Firm Code the enabling block is attached to. mulProductCode contains the Product Code the enabling block is attached to. In the case of value 0, check mbItemType to see, if it is attached to Product Item with Product Code 0 or to the Firm Item. musOption specifies the following flags.
mbIndex specifies the EBI Index inside a Firm Item (or IFI). mbType specifies the type of the used enabling. This can be one of the following flags:
mulDisableTime contains disable time in seconds since the 1st January 2000 0:00:00 (UTC). mausText contains the text of the Enabling Block Item. Only available for Time Pin and Finger Pin. musFlags specifies the following states:
musFlags specifies the following states: mbItemType specifies the following item types:
mcbEnableAccessCode contains the number of bytes which are defined in the Enable Access Code. This must be a value between 2 and 16. mabEnableAccessCode contains the Enable Access Code. musEnablePassword contains the Enable Password. mbEnableLevel specifies the Enable Level. This can be one of the following flags (see mbDisableLevel). mbDisableLevel specifies the Disable Level. This can be one of the following flags:
Note You may either use mabEnableAccessCode or musEnablePassword for enabling / disabling the item depending on the value of mcbEnableAccessCode. If mcbEnableAccessCode is 0, the text in musEnablePassword is used, otherwise the code of musEnableAccessCode is used. CMENABLING_CONTEXT is supported since CodeMeter Version 4.30.
|
CM_GEI_CHIPINFO fills a
CMCHIPINFO structure specified in pvDest.
|
CMCHIPINFO stores the information about the Chip of the CmDongle. Syntax
Parameter mulFirmwareBuild contains the build number of the currently stored Firmware version. mulFirmwareBuildTop contains the highest build number of the Firmware version ever stored. mulMdfaLba contains the start address of the File I/O communication. mulReserved is reserved for future purposes. musChipType contains the type of the chip. musSiliconRevision contains the revision of the chip mask. midFactory contains the identification of the chip fabric where it was manufactured. musProductYear contains the production year in number of years since 2000. musLotNumber contains the charge number of the produced wafer. midWafer contains the identification of the wafer within the charge. midChipOnWafer contains the identification of the chip within the wafer. musDowngradeCount
|
CM_GEI_USBCHIPINFO fills a
CMUSBCHIPINFO structure specified in pvDest.
|
CMUSBCHIPINFO stores the information about the USB chip of the CmDongle. Syntax
Parameter musFirmWareMajor contains the major version of the USB chip Firmware. musFirmWareMinor contains the minor version of the USB chip Firmware. mulFlashSize contains the size of the flash memory part of the CmDongle. mszNodeDescription contains the description of the current USB node of the connected CmDongle. mszNodes contains a list of found CmDongle partitions. This feature requires a CodeMeter USB chip Firmware version >= 7.3.
|
CM_GEI_BOXSTATUS fills a 32 bit value with following status flags.
CM_BOXSTATUS_LOWMEMORY specifies that the CmDongle has too low memory to replace damaged memory during normal usage.
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.
CM_BOXSTATUS_HASFLASH specifies that the CmDongle contains an additional flash disc besides the CodeMeter chip.
CM_BOXSTATUS_ISCMACT specifies that this is a CmActLicense.
CM_BOXSTATUS_ISCMCLOUD specifies that this is a CmCloudContainer.
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.
CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED specifies that the hardware (CmStick/T) has a working battery powered clock inside.
CM_BOXSTATUS_USES_HID_COMMUNICATION specifies that the CmDongle is configured as Human Interface Device (HID).
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.
CM_BOXSTATUS_STATE_LOCKED specifies that the CmContainer is locked. This cannot be repaired. This CmContainer needs to be replaced.
CM_CLOUDSTATUS_DISCONNECTED specifies that the internet connection to the CmCloudContainer has been lost.
Enabling status:
CM_BOXSTATUS_ENABLED specifies that the CmContainer is enabled.
CM_BOXSTATUS_DISABLED specifies that the CmContainer is disabled.
CM_BOXSTATUS_TEMPENABLED specifies that the CmContainer is temporarily enabled.
CM_BOXSTATUS_MASK specifies all flags for the enabling status.
CmActLicense status:
CM_ACTSTATUS_FILE specifies that a file is the base of this CmActLicense.
CM_ACTSTATUS_LOADED specifies that the CmActLicense is loaded and can be used. Used during the license creation on licensors side.
CM_ACTSTATUS_ACTIVATE_BY_FILE specifies that the CmActLicense has to be activated by a file transmission of a Remote Update File.
CM_ACTSTATUS_ACTIVE specifies that the CmActLicense currently is valid and active.
CM_ACTSTATUS_INVALID specifies that there occurred a problem with the security checks of the CmActLicense. The license cannot be used.
CM_ACTSTATUS_BROKEN specifies that the binding requirements are no longer fulfilled. The license cannot be used.
CM_BOXSTATUS_CMACT_MASK specifies all flags for CmActLicense.
License Transfer
CM_GEI_LTHISTORY fills a
CMLTHISTORY structure specified in pvDest.
|
CMLTHISTORY describes the history of a license transfer. Syntax
Parameter musIndex specifies the sequential number of the license transfer history item. mbStatus specifies the license transfer status. It can contain one of the following flags.
mbTransferType specifies the license transfer type. It can contain one of the following flags.
mulUnitCounter contains the Unit Counter involved in the license transfer. mulLicenseQuantity contains the License Quantity involved in the license transfer. mulReturnedLicenseQuantity contains the returned quantity on the return in a license transfer. mcmTimeStamp contains the creation time of the license transfer history item and is returned as part of a
mcmBorrowExpirationTime contains the Borrow Expiration Time and is returned as part of a CMTIME structure. mabTransferId[10] contains the unique Id of the license transfer history item. mabConfirmedTransferId[10] contains the confirmed unique Id of the license transfer history item. mulSerialNumber contains the serial number of the CmContainer. mulLtUpdateCounter contains the number of the incremented counter for a license transfer. musBoxMask contains the box mask of the CmContainer. mabReserved[20] is reserved for future purposes.
|
CM_GEI_LTTRANSFEROPTIONS fills a
CMLTTRANSFEROPTIONS structure specified in pvDest.
|
CMLTTRANSFEROPTIONS describes the options of a license transfer. Syntax
Parameter mbFlags specifies the transfer otions . It can contain all or any combination of the following flags.
mbTransferType specifies the license transfer type. It can contain one of the following flags.
mcbTargetIds contains the lenghth of the list defined in mabTargetIds. mcbLtkTargetIds contains the lenghth of the list defined in mabLtkTargetIds. mabTargetIds[112] contains the list of transfer targets identified by CmActIds (CmDongle: 1****; CmActLicense: 2****; CmCloud: 3****). mabLtkTargetIds[112] contains the list of license transfer targets identified by CmActIds to where the private key [License Transfer Key, LTK] is also transferred authorizing to further transfer the license. CmActId's are CmDongle: 1****; CmActLicense: 2****; CmCloud: 3****. mulMaxBorrowPeriod contains the maximum borrowing period. musTransferDepth contains the transfer depth of the license transferred. musReserved is reserved for future purposes. mabReserved[80] is reserved for future purposes. |
|
|
CM_GEI_LISTALLPI serves to faster return an array of Product Items and Module Items contents using internal lists and fills a
CMPIENTRYBASE structure specified in pvDest.
|
CMPIENTRYBASE returns all Product Items and Module Items of the Firm Item regardless whether the handle is a Firm Item or Product Item handle. Syntax
Parameter mulProductCode contains the Product Code of the Product Item. mulFeatureMap contains the Feature Map of the Product Item. mflSetEffectivePios specifies in the context of used Module Items the effective representation, i.e including eventually inherited PIOs. mflSetNativePios specifies in the context of used Module Items the native representation of the PIOs as programmed. mulMaintenancePeriodStartSecondsSince01_01_2000 contains the start date of the Maintenance Period of the Product Item in seconds since 01_01_2000, if available. mulMaintenancePeriodEndSecondsSince01_01_2000 contains the end date of the Maintenance Period of the Product Item in seconds since 01_01_2000, if available. mulUnitCounter contains the Unit Counter of the Product Item, if available. mulExpirationTimeSecondsSince01_01_2000 contains the start date of the Expiration Time of the Product Item in seconds since 01_01_2000, if available. mulActivationTimeSecondsSince01_01_2000 contains the end date of the Expiration Time of the Product Item in seconds since 01_01_2000, if available mulUsagePeriodLifeTime contains the period length of the Usage Period in seconds, if available. mulUsagePeriodStartTimeSecondsSince01_01_2000 contains the start date of the Usage Period of the Product Item in seconds since 01_01_2000, if available. mulLicenseQuantity contains the License Quantity of the Product Item, if available. mulMinimumRuntimeVersion contains the Minimum Runtime Version of the Product Item, if available. mflLicenseQuantityFlags contains the flags for license access options, i.e. local accesses (see the knowledgebase overview license (access) options).
mcmNamedUserEntry holds the data of the respective a
musProductItemRef holds the Product Item Reference. musReserved1 is reserved for future purposes. mflTransferStatus contains the flag of the transfer status. The following flags exist:.
|
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...
|
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
IndexMask identifies the index field of a Extended Protected Data.
BoxControl contains an array of the class
CmBoxControl.
|
The CmDongle controller chip may support some digital output and some digital input lines, generally named as Control Lines. The CmDongle architecture supports following lines store in the CmBoxControl class: •Up to 16 Indicator Control Lines are controlled (powered) by the chip. They may be set to 0 or 1, for example to supply a LED (Light Emitting Diode). •Up to 16 Switcher Control Lines are read by the chip. Their read value may be 0 or 1, for example controlled by a switcher or button. Syntax
Parameter IndicatorFlags contains the current setting of the indicator control lines. SwitchFlags contains the current setting of the switcher control lines.
|
BoxInfo contains an array of the class
CmBoxInfo.
|
CmBoxInfo contains information on a CmContainer. Syntax
Parameter MajorVersion contains the major version of the CmContainer. MinorVersion contains the minor version of the CmContainer. BoxMask contains the box mask of the CmContainer. SerialNumber contains the serial number of the CmContainer. BoxKeyId contains the ID of the used BoxKey of the CmContainer. UserKeyId contains the ID of the used UserKey of the CmContainer. BoxPublicKey contains the public Box Key of the CmContainer. SerialPublicKey contains the public Serial Key of the CmContainer. Notes The length of the BoxPublicKey and SerialPublicKey is 64 byte long. The used public key are currently 224 bits = 28 bytes long. In Elliptic Curve Cryptography the public key is a 2 dimensional point, so the x-value is stored in the first 28 bytes (0..27) and the y-value is store in byte 32..59.
|
BoxSecurity fills the class
CmBoxSecurity.
|
CmBoxSecurity contains security relevant data stored inside the CmContainer. Syntax
Parameter OemId contains OEM ID of the CmContainer. FsbFirmCode contains the Firm Code of the Firm-Security-Box (FSB) for this CmContainer. CtsbFirmCode contains the Firm Code of the Certified-Time-Security-Box (CTSB) for this CmContainer.
|
BoxTime fills the class
CmBoxTime.
|
CmBoxTime returns the three values of time clocks: Certified, Box and System Time. Syntax
Parameter CertifiedTime contains the Certified Time (see class
BoxTime contains the Box Time (see CmTime). SystemTime contains the System Time (see CmTime). |
|||
Communication fills the class
CmCommunication.
|
CmCommunication contains communication parameter for a Subsystem Access. Syntax
Parameter The enum ServerFeatureFlags has the following flags:
The enum CommunicationModeFlags has the following flags, if the default setting is not set (see table below):
DomainName contains the domain name of the computer to which CodeMeter License Server performs communication accesses. IpV4Address contains an IPv4 address of the computer to which CodeMeter License Server performs communication accesses. IpV6Address contains an IPv6 address of the computer to which CodeMeter License Server performs communication accesses. ComputerName contains the name of the computer to which CodeMeter License Server performs communication accesses. Note This class is available since CodeMeter Version 5.20.
|
EntryData fills a
CmEntryData class. If more than one item is available, an array with matching or larger size must be passed.
|
CmEntryData contains a dynamic added data of a Product Item with all its properties. Syntax
Parameter Ctrl specifies the type of the dynamic added entry. It can contain one of the following enum GlobalOption.EntryData flags:
For the three entry types Extended Protected Data, Hidden Data and Secret Data the index of this data type is or'ed in the upper two bytes. Dependency contains the dependency of the dynamic added entry from the enum GlobalProductCodeOption. It can be have one or more of the following flags
DataLen contains the Firm Code of the Certified-Time-Security-Box (CTSB) for this CmContainer. Data contains the data of the dynamic added entry.
|
EntryInfo2 fills a
CmBoxEntry2 class.
|
CmBoxEntry2 contains data of one entry. An entry is containing one Firm Item and one Product Item. In this structure all static data are stored. The dynamic data must read out of the CmContainer explicitly. Syntax
Parameter FiCtrl specifies the type of the Firm Item. The following flags using the global enum GlobalActionOption can be set:
FirmCode contains the Firm Code of the Firm Item. FirmAccessCounter contains the Firm Access Counter of the Firm Item. FirmUpdateCounter contains the Firm Update Counter of the Firm Item. FirmPreciseTime contains the FirmPreciseTime of the Firm Item. FirmItemText contains the Firm Item Text of the Firm Item. LicenseTransferUpdateCounter contains the Update Counter of the License Transfer. SetNativePios specifies in the context of used Module Items the native representation of the PIOs as programmed. SetEffectivePios specifies in the context of used Module Items the effective representation, i.e including eventually inherited PIOs. SetPios specifies all available PIO's at this Product Item. The following flags of the global enum GlobalEntryOption2 can be set:
ProductCode contains the Product Code of the Product Item. FeatureMap contains the Feature Map of the Product Item. MaintenancePeriodStart contains the start date of the Maintenance Period of the Product Item, if available (see class
MaintenancePeriodEnd contains the end date of the Maintenance Period of the Product Item, if available (see CmTime). UnitCounter contains the Unit Counter of the Product Item, if available. ExpirationTime contains the Expiration Time of the Product Item, if available (see CmTime) ActivationTime contains the Activation Time of the Product Item, if available (see CmTime). UsagePeriodLifeTime contains the period length of the Usage Period in seconds, if available UsagePeriodStartTime contains the start time of the Usage Period, if available (see CmTime). LicenseQuantity contains the License Quantity of the Product Item, if available. LingerTime contains the Linger Time of the Product Item, if available. MinimumRuntimeVersion contains the minimum runtime version of the Product Item, if available. Available since CodeMeter Version 5.20. If the current Runtime Version does not match the Minimum Runtime Version set, the error CMERROR_RUNTIME_VERSION_TOO_OLD displays. LicenseQuantityFlag contains the flags for license access options, i.e. local accesses (see the knowledgebase overview license (access) options).
TransferStatus contains the flag of the transfer status. The following flags exist:
ProductItemId contains an unique identifier for the Product Item. DependencyPC contains the dependency flags of the Product Code. DependencyFM contains the dependency flags of the Feature Map. DependencyMP contains the dependency flags of the Maintenance Period. DependencyUC contains the dependency flags of the Unit Counter. DependencyET contains the dependency flags of the Expiration Time. DependencyAT contains the dependency flags of the Activation Time. DependencyUP contains the dependency flags of the Usage Period. DependencyLQ contains the dependency flags of the License Quantity. DependencyLT contains the dependency flags of the Linger Time. DependencyMV contains the dependency flags of the Minimum Runtime Version. ModuleRef contains the Product Item Reference of the super-ordinated Product Item of a Module Item. All items of a module then have the same ModulRef if available. ProductItemRef holds the Product Item Reference. FiAllowedToPull specifies the license transfer can be actively performed. PioModuleItem specifies that the Product Item contains a Module Item. PioHistory specifies that the Product Item is part of a license transfer process and holds history data. PioAccessPassword specifies that the Product Item contains a password (valid only for Universal Firm Codes). PioReturnInfo specifies that the Product Item contains a license return information. PioTransferOptions specifies that the Product Item contains license transfer options. PioAcceptsPull specifies that the Product Item can be pulled. PioStatus specified that the Product Item contains a license transfer status. PioMaxEncryptionRate specifies that the Product Item contains a Maximum Encryption Rate information (valid only for Universal Firm Codes). TransferBoxMask holds the box mask of the source CmContainer in the case of a transferred license if available. TransferSerialNumber holds the serial number of the source CmContainer in the case of a transferred license if available. TransferBorrowExpirationTime holds the time at which a borrowed license (license transfer) expires if available. TransferId holds the Id of the transfer (corresponds to the Id in the history item of the sender) if available.
Notes The dynamic data can be read out withGetInfo/CmGetInfoOption.EntryData of the GlobalProductCodeOptions. The dependency parameters (DependencyXX) can be have one or more of the following flags: •Data specifies that the parameter depends on the contents of the data of the Firm Item. •Fuc specifies that the parameter depends on the Firm Update Counter of the Firm Item. •Serial specifies that the parameter depends on the Serial Number of the CmContainer. CmBoxEntry2 is supported since CodeMeter Version 4.30. The member LingerTime is available since CodeMeter Version 4.40. The member MinimumRuntimeVersion is available since CodeMeter Version 5.20. The member LicenseQuantityFlag is available since the introducing Universal Firm Codes (Version 6.00). For TransferStatus the flags Enabled, Disabled, Returned, Expired are available since CodeMeter Version 6.30. The member NamedUser is available since CodeMeter Version 6.30. The parameter PioMaxEncryptionRate and PioAccessPassword are available since CodeMeter Version 6.50 and require Universal Firm Codes.
|
|||||||
|
InternalEntryInfo fills as many
CmInternalEntryInfo classes that are necessary to store the information of all Product Items of same Product Code of a Firm Code.
|
CmInternalEntryInfo stores internal data of an entry. Syntax
Parameter FirmItemReference contains the Firm Item Reference in the CmContainer of the Firm Item. ProductItemReference contains the Product Item Reference in the CmContainer of the Product Item. FirmItemType specifies the type of the Firm Item. The following flags using the global enum GlobalActionOption can be set:
FirmUpdateCounter contains the Firm Update Counter of the Firm Item.
|
MemInfo fills the
CmMemInfo class.
|
MemInfo stores the number of free memory blocks inside a CmDongle. Syntax
Parameter Free4ByteBlock contains the number of free 4 byte blocks. Free8ByteBlock contains the number of free 8 byte blocks. Free16ByteBlock contains the number of free 16 byte blocks. Free32ByteBlock contains the number of free 32 byte blocks. Free64ByteBlock contains the number of free 64 byte blocks. Free128ByteBlock contains the number of free 128 byte blocks. Free256ByteBlock contains the number of free 256 byte blocks. Free512ByteBlock contains the number of free 512 byte blocks.
|
SignedList fills byte buffer with a signed list of an entry transferred.
SignedTime fills a
CmSignedTime class. The signed time is returned in UTC.
|
CmSignedTime stores the time values of Certified-, Box- and System Time and a Trailing Validation Block to validate them. The time is returned in UTC. Syntax
Parameter BoxTime contains all time values of the CmContainer (see class
TrailingValidationBlock contains a 16-byte TVB (Trailing Validation Block). The TVB is a signature calculated out of the Certified-, Box- and System Time for later validation.
|
System fills a
CmSystem class.
|
CmSystem stores system specific data. Syntax
Parameter IpAddr contains the IPv4-address of the computer. In case of IPv6 this field is not filled. Due to IPv6 is coming up this field should no longer be used. Platform contains the Platform ID of the OS, the version and the byte order of the system.
SystemKernelVersion specifies the type of the Firm Item. ComputerName contains the name of the computer. In case of only IPv6 is used and no name can be derived, the IPv6-address is stored here as a string. The value of this field can be easily used as Servername in CmAccess2.
|
SystemStatus fills a
CmSystemStatus class.
|
CmSystemStatus stores internal data of an entry. Syntax
Parameter None no internal data of an entry is specified. RunningAsService specifies that CodeMeter runs as Windows service or, in the case of other operating systems, with respective privileges. CmActEnabled specifies CmActLicense licenses are activated in the profiling and can be used. MSDEnabled specifies that CmDongles are activated in the profiling as Mass Storage Devices (MSD) in the profiling and can be used. HIDEnabled specifies that CmDongles are activated in the profiling as Human Interface Devices (HID) in the profiling and can be used. CmActAvailable specifies that CmActLicense can be used (it is activated and CodeMeter runs as service).
|
Version fills a
CmVersion class.
|
CmVersion receives the major and minor version of the requested CodeMeter modules. The itemized values are the Version and Subversion. Syntax
Parameter Version contains the major version of the CodeMeter module. Subversion contains the minor version of the CodeMeter module. Build contains the build number of the CodeMeter module. Count contains the count of the CodeMeter module. Year contains the year of creation of the CodeMeter module. Month contains the month of creation of the CodeMeter module. Day contains the day of creation of the CodeMeter module.
|
EnableBlockItems fills
CmEnablingEnableBlockItemList structure specified in Dest. If more than one item is available, an array with matching or larger size must be passed.
Class CmEnablingEnableBlockItemList CmEnablingEnableBlockItemList contains data of a Enable Block Items (EBI) when they are read out of the CmContainer. Syntax
Parameter CmEnablingEnableBlockItemList.OptionList
Index specifies the EBI Index inside a Firm Item (or IFI). CmEnablingEnableBlockItemList.TypeList specifies the type of the used enabling. This can be one of the following flags:
SimplePinList contains the data when the EBI is using SimplePin enabling (see class
TimePinList contains the data when the EBI is using TimePin enabling (see class
|
EnableLookupItemsFi fills
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.
Class CmEnablingEnableLookupEntry CmEnablingEnableLookupEntry defines a single Enabling Lookup Entry Item (ELI). Syntax
Parameter CmEnablingEnableLookupEntry.OptionList specifies the following flags.
EnableBlockIndex contains the index of the EBI. EnableLevel Enabled specifies the Enable Level. This can be one of the following flags.
DisableLevel specifies the Disable Level. This can be one of the following flags as described for EnableLevel: TypeList Type specifies the type of the used enabling. This can be one of the following flags:
OptionList Option specifies the following flags.
Note TypeList Type and OptionList Option are available since CodeMeter Version 4.40.
|
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.
ChipInfo fills a
CmChipInfo class.
|
CmChipInfo stores the information about the Chip of the CmDongle. Syntax
Parameter FirmwareBuild contains the build number of the currently stored Firmware version. FirmwareBuildTop contains the highest build number of the Firmware version ever stored. MdfaLba contains the start address of the File I/O communication. ChipType contains the type of the chip. SiliconRevision contains the revision of the chip mask. Factory contains the identification of the chip fabric where it was manufactured. ProductYear contains the production year in number of years since 2000. LotNumber contains the charge number of the produced wafer. Wafer contains the identification of the wafer within the charge. ChipOnWafer contains the identification of the chip within the wafer. DowngradeCount counts the number of hardware downgrades.
|
BoxStatus fills a
CmBoxStatus class.
|
CmBoxStatus stores the information on a CmContainer. Syntax
Parameter CmBoxStatus.Flags specifies the status of the CmActLicense by the following flags:
|
UsbChipInfo fills a
CmUsbChipInfo class.
|
CmUsbChipInfo stores the information about the USB chip of the CmDongle. Syntax
Parameter FirmWareMajor contains the major version of the USB chip Firmware. FirmWareMinor contains the minor version of the USB chip Firmware. FlashSize contains the size of the flash memory part of the CmDongle. NodeDescription contains the description of the current USB node of the connected CmDongle. Nodes contains a list of found CmDongle partitions. This feature requires a CodeMeter USB chip Firmware version >= 7.3.
|
NetInfoCluster fills an array of
CmNetInfoCluster classes.
|
CmNetInfoCluster stores the information about the licenses in a network including the current allocation status. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter Serial contains the serial number of the CmContainer. Mask contains the box mask of the CmContainer. ProductItemRef Product Item Reference of the Product Item. FirmCode contains the Firm Code. ProductCode contains the Product Code. FeatureMap contains the Feature Code of the Product Item. UserLimitLicenses contains the number of licenses allocated via CmAccess.Option UserLimit. NoUserLimitLicenses contains the number of licenses allocated via CmAccess.Option NoUserLimit. ExclusiveLicenses contains the number of licenses allocated via CmAccess.Option Exclusive. StationShareLicenses contains the number of licenses allocated via CmAccess.Option StationShare. UsedLicenses contains the number of licenses that are in use. This includes licenses that are allocated with CmAccess.Option UserLimit, CmAccess.Option Exclusive and CmAccess.Option StationShare mode. FreeLicenses contains the number of free licenses. (TotalLicenses - UsedLicenses) TotalLicenses contains the total amount of licenses for a Product Item or a Product Item cluster. LicenseQuantity contains the number of licenses that are available for accessing the specific Product Item entry.
|
NetInfoUser fills an array of a
CmNetInfoUser class.
|
CmNetInfoUser stores the information about the licenses in a network that are currently allocated. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter Serial contains the serial number of the CmContainer. Mask contains the box mask of the CmContainer. ProductItemRef Product Item Reference of the the Product Item. FirmCode contains the Firm Code. ProductCode contains the Product Code. FeatureMap contains the Feature Code of the Product Item. ID contains the application identifier to the corresponding handle. AccessMode contains the access mode to the specified entry. CreationTime contains the creation time in UTC. ClientIP contains the IP address of the client accessing the license.
|
Credential fills the class
CmCredential.
|
The class CmCredential holds parameters that can be used for a CmAccess2() call to refine the license allocation and the assignment to the CodeMeter License Server, for example via an arbitrary user name. Syntax
Parameter PID contains the process ID that is set by the CodeMeter library (read only). Session is always zero on the user site. CleanupTime this parameter overwrites the CleanupTime profiling value for license releasing in minutes. MaxLifeTime defines the maximum lifetime (in minutes) of the license that is allocated. CreationTime holds the creation time of the license that was accessed in seconds since 01.01.2000. Option AccessCtrl holds the type of access (since CodeMeter Version 4.20): ExpirationTime the expiration time of a borrowed entry or the regular expiration time otherwise. UserDefinedID contains the user defined ID. UserDefinedText contains a user defined text. It may hold up to 127 bytes (UTF-8) of data. Username holds an arbitrary user name (read only). Domain holds the domain name (read only).
OtherBorrowFirmCode contains the Firm Code of the borrow partner. OtherBorrowProductCode contains the Product Code of the borrow partner. OtherBorrowFeatureMap contains the Feature Map of the borrow partner. OtherBorrowSerial contains the serial number of the borrow partner. OtherBorrowMask contains the serial mask of the borrow partner. CurrentCmInstanceUid actual unique ID used to discriminate client computers for station share accesses. PreviousCmInstanceUid unique ID used to discriminate the previous access by client computers for station share accesses.
|
SecurityVersion fills an array of
CmSecurityVersion class.
|
CmSecurityVersion stores the information about the licenses in a network that are currently allocated by a call of CmAccess2. Syntax
Parameter Version contains the major version of the security library. SubVersion contains the minor version of the security library. Build contains the build number of the security module. Count contains the count of the security module. Year contains the year of creation of the security module. Month contains the month of creation of the security module. Day contains the day of creation of the security module. SecurityType tba.
|
NetInfoUserExt fills an array of
CmNetInfoUserExt class.
|
CmNetInfoUserExt stores the information about the licenses in a network that are currently allocated by a call of CmAccess2. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter Credential references the CmCredential class. Mask contains the box mask of the CmContainer. Ctrl allows you to see something about the access type:
Serial contains the serial number of the CmContainer. ProductItemRef Product Item Reference of the Product Item. FirmCode contains the Firm Code. ProductCode contains the Product Code. FeatureMap contains the Feature Code of the Product Item. ID contains the application identifier to the corresponding handle. AccessMode contains the access mode to the specified entry. LastAccessTime contains the timestamp of the last access to this handle in UTC since 2000. mszClientAddress contains the IP-address of the server.
|
MemInfo2 fills the
CmMemInfo2 class.
|
MemInfo2 stores the number of free memory blocks inside a CmDongle. Syntax
Parameter Free4ByteBlock contains the number of free 4 byte blocks. Free8ByteBlock contains the number of free 8 byte blocks. Free16ByteBlock contains the number of free 16 byte blocks. Free32ByteBlock contains the number of free 32 byte blocks. Free64ByteBlock contains the number of free 64 byte blocks. Free128ByteBlock contains the number of free 128 byte blocks. Free256ByteBlock contains the number of free 256 byte blocks. Free512ByteBlock contains the number of free 512 byte blocks. TotalBytesFree contains the number of total free bytes Capacity contains the capapity of memory blocks.
|
CmActLicenseInfo fills a
CmActLicenseInfo class. It contains some information on the CmActLicense.
|
CmActLicenseInfo specifies the data that is used for creating or reading a CmActLicense. Syntax
Parameter BoxMask contains the box mask of the CmActLicense. SerialNumber contains the serial number of the CmActLicense. FirmCode contains the Firm Code of the CmActLicense. Status specifies the status of the CmActLicense by the following flags:
CmActLicenseInfo.LicenseOptionsFlags specifies optional license options:
ProductName contains the name of the CmActLicense (Firm Item Text of Implicit Firm Item). ProductNameExt is currently not used. VendorName is currently not used. VendorPhone is currently not used. VendorEMail is currently not used. VendorWebPortal is currently not used. VendorRegExpression is currently not used. ProductMinorId contains the Product Minor Id. ProductMajorId contains the Product Major ID which is 4 bytes long. ProductDescriptions is an array of
ProductSerialNumber contains the serial number in the case of binding scheme "SERIAL". PluginName contains the name of the plugin in the case of using activation scheme "Binding Extension". ActivationMethod specifies optional activation methods: Invalid Phone Portal Service File
|
CmCloudLicenseInfo fills a
CmCloudLicenseInfo class. It contains some information on the CmCloudContainer license.
|
CmCloudLicenseInfo specifies the data that is used for reading a CmCloudContainer license. Syntax
Parameter BoxMask contains the box mask of the CmCloudContainer. SerialNumber contains the serial number of the CmCloudContainer. ExtendedSerial contains the extended Serial number of CmCloudContainer. FirmCode contains the Firm Code of the CmCloudContainer license. Status specifies the status of the CmCloudContainer by the following flags (BoxStatus for CmCloud):
Url contains the URL to the CmCloudContainer. The length is 1024 bytes. CmActId contains the CmActID, formerly known as ProductMajorId. The length is 4 bytes.
|
CmActErrorInfo fills a
CmActErrorInfo class with additional error information regarding CmActLicense.
|
CmActErrorInfo receives additional information for CmActLicense errors. Syntax
Parameter ErrorCode contains the error code that has occurred. AdditionalInfo contains an additional error text to explain the occurred error more briefly.
|
CmActVersion fills a
CmVersion class. If CmActLicense is deactivated in the profiling, all values are 0.
|
CmVersion receives the major and minor version of the requested CodeMeter modules. The itemized values are the Version and Subversion. Syntax
Parameter Version contains the major version of the CodeMeter module. Subversion contains the minor version of the CodeMeter module. Build contains the build number of the CodeMeter module. Count contains the count of the CodeMeter module. Year contains the year of creation of the CodeMeter module. Month contains the month of creation of the CodeMeter module. Day contains the day of creation of the CodeMeter module.
|
CmBorrowClient fills
CmBorrowClient class. It contains the borrowing information about a borrowed client license.
|
CmBorrowClient contains the data of a borrowing client.
Syntax
Parameter UpdateProgSeq holds the programming sequence for programming some additional data into the CmDongle. ServerID contains the id of the borrow server. ServerName contains the DNS name of the borrowing server. Status contains the current status of the enabling block:
EnableBlock contains the index of the enabling block used for the borrowing operation. CopyProtectionSystemUsed contains the used copy protection system on server side:
FirmCode contains Firm Code of the borrowed license on the server side. ProductCode contains the Product Code of the borrow license on the server side. ServerBoxMask contains the box mask of the license container on the server side. ServerBoxSerial contains the serial number of the license container on the server side.
|
CmBorrowData fills
CmBorrowData class. It contains the borrowing information that is needed for the borrow process on client side.
|
CmBorrowData stores all needed parameters needed for borrowing a license. It is used within CmAccess2() and can be filled with CmGetInfo.
Syntax
Parameter SerialPublicKey contains the Public Serial Key of the license container on the client side. ServerID contains the id of the borrow server. ClientName contains the DNS name of the borrowing client. TrailingValidationBlock contains the trading validation block that allows a validation of the contents of this structure. Status contains the current status of the enabling block:
EnableBlock contains the index of the enabling block used for the borrowing operation. CopyProtectionSystemUsed contains the used copy protection system on server side:
FirmCode contains Firm Code of the borrow license on the client side. ProductCode contains the Product Code of the borrow license on the client side. FeatureMap contains the Feature Map of the borrow license on the client side. BoxMask contains the box mask of the license container on the client side. BoxSerial contains the serial number of the license container on the client side. ClientRequestTime contains the system time of the client. MaintenancePeriodStart contains the start date of the Maintenance Period of the Product Item, if available. MaintenancePeriodEnd contains the end date of the Maintenance Period of the Product Item, if available.
|
CmBorrowItems fills an array of
CmBorrowItem classes. It contains the borrowing information about a borrowing server license.
|
CmBorrowItem contains the borrowing data of a borrowing server license.
Syntax
Parameter ServerID contains the id of the borrow server. CopyProtectionSystemUsed contains the used copy protection system on server side:
FirmCode contains Firm Code of the borrow license on the client side. ProductCode contains the Product Code of the borrow license on the client side. FeatureMap contains the maximum Feature Map of the borrow license on the client side. The Feature Map requested by the client can be a subset of this Feature Map. LicenseQuantity contains the maximum number of licenses that can be borrowed from this server license. CheckoutDuration contains the maximum period (in minutes) the client is allowed to borrow this license from the server. UsedLicenses contains the number of currently used licenses of this borrow item. FreeLicenses contains the number of currently free licenses of this borrow item.
|
EnableInfo fills an array of
CmEnablingContext structures with enabling information matching to the used handle hcmse.
|
CmEnablingContext contains enabling data. It can be collected using CmGetInfo with option EnableInfo. It can be used for enabling using CmProgram. Syntax
Parameter FirmCode contains the Firm Code the enabling block is attached to. ProductCode contains the Product Code the enabling block is attached to. In the case of a value of 0, check mbItemType to see, if it is attached to Product Item with Product Code 0 or to the Firm Item. CmEnablingEnableBlockItem.OptionList specifies the following flags.
Index specifies the EBI Index inside a Firm Item (or IFI). CmEnablingEnableBlockItem.TypeList specifies the type of the used enabling. This can be one of the following flags:
DisableTime contains disable time in seconds since the 1st January 2000 0:00:00 (UTC). CmEnablingEnableLookupEntry.OptionList specifies the following flags.
CmEnableContext.ItemTypeOption specifies the following item types:
EnableAccessCodeLen contains the number of bytes which are defined in the Enable Access Code. This must be a value between 2 and 16. CmEnablingEnableLookupEntry.EnableLevelList Enabled specifies the Enable Level. This can be one of the following flags.
CmEnablingEnableLookupEntry.EnableLevelList specifies the Disable Level. This can be one of the following flags as described for EnableLevel: Text contains the text of the Enabling Block Item. Only available for Time Pin and Finger Pin. EnableAccessCode contains the Enable Access Code. EnablePassword contains the Enable Password.
Note You may either use EnableAccessCode or EnablePassword for enabling / disabling the item depending on the value of EnableAccessCodeLen. If EnableAccessCodeLen is 0, the text in EnablePassword is used, otherwise the code of EnableAccessCode is used. CmEnablingContext is supported since CodeMeter Version 4.30.
|
CmActLicenseInfo2 fills a
CmActLicenseInfo2 structure specified in pvDest. It contains some information about the CmActLicense.
|
CmActLicenseInfo2 specifies the data that is used for creating or reading a CmActLicense. Syntax
Parameter ProductDescriptions is an array of
BoxMask contains the box mask of the CmActLicense. SerialNumber contains the serial number of the CmActLicense. FirmCode contains the Firm Code of the CmActLicense. CmBoxStatus.Flags specifies the status of the CmActLicense by the following flags:
ProductName contains the name of the CmActLicense (Firm Item Text of Implicit Firm Item). PluginName contains the name of the plugin in case of using activation scheme "Binding Extension". TelephoneId contains the Telephone Id, formerly known as Product Minor Id. CmActId contains the CmActID, formerly known as Product Major ID. The length is 4 bytes. ProductSerialNumber contains the serial number in case of binding scheme "SERIAL". NameHash contains the second part of the name of the inventory file in the case of using activation scheme "SmartBind".
|
LtHistory fills the
CmLtHistory class. It contains license transfer history information.
|
CmLtHistory describes the history of a license transfer.. Syntax
Parameter Index specifies the sequential number of the license transfer history item. HistoryStatus specifies the license transfer status. It can contain one of the following flags:
eTransferType specifies the license transfer type. It can contain one of the following flags.
UnitCounter contains the Unit Counter involved in the license transfer. LicenseQuantity contains the License Quantity involved in the license transfer. ReturnedQuantity contains the returned quantity on the return in a license transfer. TimeStamp contains the time stamp of the performed license transfer (see CmTime). BorrowExpirationTime contains the Borrow Expiration Time. TransferId contains the unique Id of the license transfer history item. ConfirmedTransferId contains the confirmed unique Id of the license transfer history item. SerialNumber contains the serial number of the CmContainer. LtUpdateCounter contains the number of the incremented counter for a license transfer. BoxMask contains the box mask of the CmContainer. Reserved is reserved for future purposes
|
LtTransferOptions fills a
CmLtTransferOptions class. It contains the options of a license transfer.
|
CmLtTransferOptions describes the options of a license transfer. Syntax
Parameter TransferFlags specifies the transfer options. It can contain all or any combination of the following flags.
eTransferType specifies the license transfer type. It can contain one of the following flags.
TargetIds contains the list of transfer targets identified by CmActIds (CmDongle: 1****; CmActLicense: 2****; CmCloud: 3****). . LtkTargetIds contains the list of license transfer targets identified by CmActIds to where the private key [License Transfer Key, LTK] is also transferred authorizing to further transfer the license. CmActId's are CmDongle: 1****; CmActLicense: 2****; CmCloud: 3****. MaxBorrowPeriod contains the Maximum Borrowing Period (see CmTime). TransferDepth contains the transfer depth of the license transferred.
|
NamedUser fills a
CmNamedUser class. It contains information on the PIO Named User.
|
CmNamedUser stores the information about the PIO Named User. This PIO is used during CmAccess2() to verify the hashed CmCredential.*** parameters Username, Domain and UserDefinedText supplied in CmAccess(2) against the hash of the credentials stored here. Syntax
Parameter PioType and Dependency refer to the same-named parameter of the public class CmEntryData. For internal use only. Index identifies the Named User entry. EntryData contains the following data. Tag[4] always contains the tag "cmnu" (CodeMeter Named User) to uniquely identify the PioType Extended Protected Data. Version refers to the version number of cmnu; currently set to version 1. NextIndex currently holds a value of 0. ModeFlags contains one of the following flags:
Crc32 holds the internal value of the CRC32 encryption of Tag. NameListId holds the NameListId. Hash[32] holds the hash value generated during license creation. Plaintext[128] holds, if flag Flag_Plaintext has been set, has been set, the credentials used with the selected mode. The format is UTF-8. Notes
|
PiText refers to the Product Item text as string. If no Product Item text is set, the return is empty.
ListAllPi serves to faster return an array of Product Items and Module Items contents using internal lists and fills a
CmPiEntryBase class.
|
CmPiEntryBase returns all Product Items and Module Items of the Firm Item regardless whether the handle is a Firm Item or Product Item handle. Syntax
Parameter ProductCode contains the Product Code of the Product Item. FeatureMap contains the Feature Map of the Product Item. EffectivePios specifies in the context of used Module Items the effective representation, i.e including eventually inherited PIOs. NativePios specifies in the context of used Module Items the native representation of the PIOs as programmed. MaintenancePeriodStartSecondsSince01_01_2000 contains the start date of the Maintenance Period of the Product Item in seconds since 01_01_2000, if available. MaintenancePeriodEndSecondsSince01_01_2000 contains the end date of the Maintenance Period of the Product Item in seconds since 01_01_2000, if available. UnitCounter contains the Unit Counter of the Product Item, if available. ExpirationTimeSecondsSince01_01_2000 contains the start date of the Expiration Time of the Product Item in seconds since 01_01_2000, if available. ActivationTimeSecondsSince01_01_2000 contains the end date of the Expiration Time of the Product Item in seconds since 01_01_2000, if available UsagePeriodLifeTime contains the period length of the Usage Period in seconds, if available. UsagePeriodStartTimeSecondsSince01_01_2000 contains the start date of the Usage Period of the Product Item in seconds since 01_01_2000, if available. LicenseQuantity contains the License Quantity of the Product Item, if available. MinimumRuntimeVersion contains the Minimum Runtime Version of the Product Item, if available. LicenseQuantityFlags contains the flags for license access options, i.e. local accesses.
NamedUserEntry holds the data of the respective a CmNamedUser class. ProductItemRef holds the Product Item Reference. Reserved1 is reserved for future purposes. TransferStatus contains the flag of the transfer status. The following flags exist:.
|
CmdMask allows to use a bit mask for setting the previous command options.
UseLocalTime all members of the
CmTime class are returned in the local time format.
|
The class CmTime sets or gets the time to or from a CmContainer. Syntax
Parameter Year specifies the value of the year (e.g. 2003). Month specifies the value of the month (1..12). Day specifies the value of the day (1..31). Hours specifies the value of the hours (0..23). Minutes specifies the value of the minutes (0..59). Seconds specifies the value of the seconds (0..59). SecondsSince01_01_2000 specifies the time in seconds since 01/01/2000.
|
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...
|
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:
cmapi.CM_GEI_BORROWDATA fills a
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.
|
CMBORROWDATA stores all needed parameters needed for borrowing a license. It is used within CmAccess2() and can be filled with CmGetInfo. Syntax
Parameter mulStatus contains the current status of the enabling block:
midEnableBlock contains the index of the enabling block used for the borrowing operation. midCps contains the used copy protection system on client side:
mulFirmCode contains Firm Code of the borrow license on the client side. mulProductCode contains the Product Code of the borrow license on the client side. mulFeatureMap contains the Feature Map of the borrow license on the client side. musReserved is reserved for future purposes. musBoxMask contains the box mask of the license container on the client side. mulBoxSerial contains the serial number of the license container on the client side. mabSerialPublicKey contains the Public Serial Key of the license container on the client side. mabServerID contains the id of the borrow server. mszClientName contains the DNS name of the borrowing client. To assign this field a valid value, DO NOT set it directly, call instead the set_mszClientName() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszClientName(). mabTrailingValidationBlock contains the trading validation block that allows a validation of the contents of this structure. mulClientRequestTime contains the system time of the client. mulMaintenancePeriodStart contains the start date of the Maintenance Period of the Product Item, if available. mulMaintenancePeriodEnd contains the end date of the Maintenance Period of the Product Item, if available
|
cmapi.CM_GEI_BOXINFO fills a
cmapi.CMBOXINFO class specified in GetInfoResult.boxinfo().
|
This structure contains information on a CmContainer. Syntax
Parameter mbMajorVersion contains the major version of the CmContainer. mbMinorVersion contains the minor version of the CmContainer. musBoxMask contains the box mask of the CmContainer. mulSerialNumber contains the serial number of the CmContainer. musBoxKeyId contains the ID of the used BoxKey of the CmContainer. musUserKeyId contains the ID of the used UserKey of the CmContainer. mabBoxPublicKey[cmapi.CM_PUBLIC_KEY_LEN] contains the public Box Key of the CmContainer. mabSerialPublicKey[cmapi.CM_PUBLIC_KEY_LEN] contains the public Serial Key of the CmContainer. mulReserve is reserved for future purposes. Notes The length of the mabBoxPublicKey and mabSerialPublicKey is 64 byte long. The used public key are currently 224 bits = 28 bytes long. In Elliptic Curve Cryptography the public key is a 2 dimensional point, so the x-value is stored in the first 28 bytes (0..27) and the y-value is store in byte 32..59.
|
cmapi.CM_GEI_BOXTIME fills a
CMBOXTIME class specified in GetResultInfo.boxtime().
|
CMBOXTIME returns the three values of time clocks: Certified, Box and System Time. Syntax
Parameter mcmCertifiedTime contains the Certified Time (see
mcmBoxTime contains the Box Time (see cmapi.CMTIME). mcmSystemTime contains the System Time (see cmapi.CMTIME).
|
cmapi.CM_GEI_CLOUD_LICENSE_INFO fills a
cmapi.CMCLOUDLICENSEINFO class specified in GetInfoResult.cloudlicenseinfo(). It contains some information about the CmCloudContainer license.
Class cmapi.CMCLOUDLICENSEINFO CMCLOUDLICENSEINFO specifies the data that is used for reading a CmCloudContainer license. Syntax
Parameter musBoxMask contains the box mask of the CmCloudContainer. musReserved1 is reserved for future purposes. mulSerialNumber contains the serial number of the CmCloudContainer. mulExtendedSerial contains the extended serial number for CmCloudContainer. mulFirmCode contains the Firm Code of the CmCloudContainer. mulStatus specifies the status of the CmCloudContainer by the following flags (relevant values of cmapi.CM_GEI_BOXSTATUS for CmCloud):
mszUrl contains the URL to the CmCloudContainer. The maximum length is 1023 bytes since mszUrl is not always completely filled and zero terminated. To assign this field a valid value, DO NOT set it directly, call instead the set_mszUrl() with the desired string as parameter. To retrieve the content of this field, DO NOT use it di-rectly, call instead the get_mszUrl(). mszCmActId contains the CmActID, formerly known as Product Major ID. The length is 4 bytes. To assign this field a valid value, DO NOT set it directly, call instead the set_mszCmActId() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszCmActId(). mbReserved2 is reserved for future purposes.
Return The result is a class o type cmapi.CMCLOUDLICENSEINFO retrievable calling CmGetInfo(cmapi.CM_GEI_CLOUD_LICENSE_INFO).cloudlicenseinfo(). On failure, an exception is thrown and the last CmError is set accordingly.
Error Codes cmapi.CMERROR_WRONG_BOX_TYPE if box is CmDongle or CmActLicense or type of box cannot be detected/is unkown cmapi.CMERROR_WRONG_HANDLE_TYPE if the handle is not of type cmapi.ACCESS_TYPE_BOX | cmapi.ACCESS_TYPE_FIRMITEM | cmapi.ACCESS_TYPE_ENTRY cmapi.CMERROR_INVALID_PARAMETER if wrong parameter passed to CmGetInfo(cmapi.CM_GEI_CLOUD_LICENSE_INFO)
|
cmapi.CM_GEI_COMMUNICATION fills the
cmapi.CMCOMMUNICATION class specified in GetResultInfo.communication().
|
CMCOMMUNICATION returns communication relevant settings of CodeMeter License Server when performing a Subsystem Access. Syntax
Parameter mulServerFeatures may contain the following bits set and informs on the network server access features:
musApiCommunicationMode contains the communication access mode settings.The following flags are available, if the default setting is not set (see table below):
mabReserved is reserved for future purposes. mszDomainName contains the domain name of the computer to which CodeMeter License Server performs communication accesses. To assign this field a valid value, DO NOT set it directly, call instead the set_mszDomainName() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszDomainName(). mszIpV4Address contains an IPv4 address of the computer to which CodeMeter License Server performs communication accesses. To assign this field a valid value, DO NOT set it directly, call instead the set_mszIpV4Address() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszIpV4Address(). mszIpV6Address contains an IPv6 address of the computer to which CodeMeter License Server performs communication accesses. To assign this field a valid value, DO NOT set it directly, call instead the set_mszIpV6Address() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszIpV6Address(). mszComputerName contains the name of the computer to which CodeMeter License Server performs communication accesses. To assign this field a valid value, DO NOT set it directly, call instead the set_mszComputerName() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszComputerName(). Note The structure is available since CodeMeter Version 5.20.
|
cmapi.CM_GEI_CREDENTIAL fills the
cmapi.CMCREDENTIAL class specified in GetInfoResult.credential().
|
CMCREDENTIAL holds parameters that can be used for a CmAccess2() call to refine the license allocation and the assignment to the CodeMeter License Server, for example, via an arbitrary user name. Syntax
Parameter mulPID contains the process ID that is set by the CodeMeter library (read only). mulSession is always zero on the user site. mulCleanupTime this parameter overwrites the CleanupTime profiling value for license releasing in minutes. mulMaxLifeTime defines the maximum lifetime (in minutes) of the license that is allocated. mulCreationTime holds the creation time of the license that was accessed in seconds since 01.01.2000. mulAccessCtrl holds the type of access (since 4.20): The first group of flags hold information about local access:
The second group defines the access type:
mulExpirationTime the expiration time of a borrowed entry or the regular expiration time otherwise. mulUserDefinedID contains the user defined ID. mszUserDefinedText contains a user defined text (UTF-8 encoded). To assign this field a valid value, DO NOT set it directly, call instead the set_mszUserDefinedText() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszUserDefinedText(). mszUsername holds an arbitrary user name (read only).
mulOtherBorrowFirmCode contains the Firm Code of the borrow partner. mulOtherBorrowProductCode contains the Product Code of the borrow partner. mulOtherBorrowFeatureMap contains the Feature Map of the borrow partner. mulOtherBorrowSerial contains the serial number of the borrow partner. musOtherBorrowMask contains the serial mask of the borrow partner. mbLibType contains information on the WibuCm client library type set by the client library itself. The following types exist:
mbCompatibilitySession contains for station share compatibility reasons additionally the transferred value for accesses by CodeMeter versions up to 7.10. mulCurrentCmInstanceUid actual unique ID used to discriminate client computers for station share accesses. mulPreviousCmInstanceUid unique ID used to discriminate the previous access by client computers for station share accesses. mszDomainName contains the domain name (read only). mulLibVersion contains information on the version (Major, Minor, Build) of mbLibType set by the client library itself.
|
cmapi.CM_GEI_ENTRYINFO fills a
cmapi.CMBOXENTRY class specified in GetInfoResult.entryinfo().
|
CMBOXENTRY contains data of one entry. An entry is containing one Firm Item and one Product Item. In this structure all static data are stored. The dynamic data must read out of the CmContainer explicitly. Syntax
Parameter mflFiCtrl specifies the type of the Firm Item. The following flags can be set:
mulFirmCode contains the Firm Code of the Firm Item. musFirmAccessCounter contains the Firm Access Counter of the Firm Item. musReserve1 is reserved for future purposes. mulFirmUpdateCounter contains the Firm Update Counter of the Firm Item. mulFirmPreciseTime contains the FirmPreciseTime of the Firm Item. mausFirmItemText[cmapi.CM_MAX_STRING_LEN] contains the Firm Item Text of the Firm Item. To assign this field a valid value, DO NOT set it directly, call instead the set_mausFirmItemText() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mausFirmItemText(). mflSetPios specifies all available PIO's at this Product Item. The following flags can be set:
mulProductCode contains the Product Code of the Product Item. mulFeatureMap contains the Feature Map of the Product Item. mulUnitCounter contains the Unit Counter of the Product Item, if available. mcmExpirationTime contains the Expiration Time of the Product Item, if available (see
mcmActivationTime contains the Activation Time of the Product Item, if available (see cmapi.CMTIME). mfbDependencyPC contains the dependency flags of the Product Code. mfbDependencyFM contains the dependency flags of the Feature Map. mfbDependencyUC contains the dependency flags of the Unit Counter. mfbDependencyET contains the dependency flags of the Expiration Time. mfbDependencyAT contains the dependency flags of the Activation Time. mbReserve is reserved for future purposes. musProductItemRef holds the Product Item Reference. Notes The dynamic data can be read out with GetInfo()/cmapi.CM_GEI_ENTRYDATA. The dependency parameters (mfbDependencyXX) can be have one or more of the following flags: •cmapi.CM_GF_DATA specifies that the parameter depends on the contents of the data of the Firm Item. •cmapi.CM_GF_FUC specifies that the parameter depends on the Firm Update Counter of the Firm Item. •cmapi.CM_GF_SERIAL specifies that the parameter depends on the Serial Number of the CmContainer.
|
cmapi.CM_GEI_ENTRYINFO2 fills a
cmapi.CMBOXENTRY2 class specified in GetInfoResult.entryinfo2().
|
CMBOXENTRY2 contains data of one entry. An entry is containing one Firm Item and one Product Item. In this structure all static data are stored. The dynamic data must read out of the CmContainer explicitly. Syntax
Parameter mflFiCtrl specifies the type of the Firm Item. The following flags can be set:
mulFirmCode contains the Firm Code of the Firm Item. musFirmAccessCounter contains the Firm Access Counter of the Firm Item. musReserve1 is reserved for future purposes. mulFirmUpdateCounter contains the Firm Update Counter of the Firm Item. mulFirmPreciseTime contains the FirmPreciseTime of the Firm Item. mausFirmItemText[cmapi.CM_MAX_STRING_LEN] contains the Firm Item Text of the Firm Item. To assign this field a valid value, DO NOT set it directly, call instead the set_mausFirmItemText() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mausFirmItemText(). mabReserve1 is reserved for future purposes. mflSetNativePios specifies in the context of used Module Items the native representation of the PIOs as programmed. mflSetEffectivePios specifies in the context of used Module Items the effective representation, i.e including eventually inherited PIOs. mflSetPios specifies all available PIO's at this Product Item. The following flags can be set:
mulProductCode contains the Product Code of the Product Item. mulFeatureMap contains the Feature Map of the Product Item. mcmMaintenancePeriodStart contains the start date of the Maintenance Period of the Product Item, if available. mcmMaintenancePeriodEnd contains the end date of the Maintenance Period of the Product Item, if available. mulUnitCounter contains the Unit Counter of the Product Item, if available. mcmExpirationTime contains the Expiration Time of the Product Item, if available (see
mcmActivationTime contains the Activation Time of the Product Item, if available (see cmapi.CMTIME). mulUsagePeriodLifeTime contains the period length of the Usage Period in seconds, if available. mcmUsagePeriodStartTime contains the start time of the Usage Period, if available (see cmapi.CMTIME). mulLicenseQuantity contains the License Quantity of the Product Item, if available. mulLingerTime contains the Linger Time of the Product Item, if available. mulMinimumRuntimeVersion contains the Minimum Runtime Version of the Product Item, if available. Available since CodeMeter Version 5.20. If the current Runtime Version does not match the Minimum Runtime Version set, the error cmapi.CMERROR_RUNTIME_VERSION_TOO_OLD displays. mflLicenseQuantityFlags contains the flags for license access options, i.e. local accesses (see the knowledgebase overview license (access) options).
mulLicenseTag contains information in the context of Triple Mode Redundancy feature if available. mflTransferStatus contains the flag of the transfer status. The following flags exist:
mabProductItemId contains an unique identifier for the Product Item. mabReserve2 is reserved for future purposes. musMaxEncryptionRate contains the Maximum Encryption Rate. mfbDependencyPC contains the dependency flags of the Product Code. mfbDependencyFM contains the dependency flags of the Feature Map. mfbDependencyUC contains the dependency flags of the Unit Counter. mfbDependencyET contains the dependency flags of the Expiration Time. mfbDependencyAT contains the dependency flags of the Activation Time. mfbDependencyUP contains the dependency flags of the Usage Period. mfbDependencyLQ contains the dependency flags of the License Quantity. mfbDependencyLT contains the dependency flags of the Linger Time. mfbDependencyMV contains the dependency flags of the Minimum Runtime Version. mabReserve3 is reserved for future purposes. musModuleRef contains the Product Item Reference of the super-ordinated Product Item of a Module Item. All items of a module then have the same ModuleRef if available. musProductItemRef holds the Product Item Reference. musTransferBoxMask holds the box mask of the source in the case of a transferred license if available. mulTransferSerialNumber holds the serial number of the source in the case of a transferred license if available. mcmTransferBorrowExpirationTime holds the time at which a borrowed license (license transfer) expires if available. mabTransferId[10] holds the Id of the transfer (corresponds to the Id in the history item of the sender) if available. mabReserve4 is reserved for future purposes. Notes The dynamic data can be read out with GetInfo()/cmapi.CM_GEI_ENTRYDATA. The dependency parameters (mfbDependencyXX) can be have one or more of the following flags: •cmapi.CM_GF_DATA specifies that the parameter depends on the contents of the data of the Firm Item. •cmapi.CM_GF_FUC specifies that the parameter depends on the Firm Update Counter of the Firm Item. •cmapi.CM_GF_SERIAL specifies that the parameter depends on the Serial Number of the CmContainer. CMBOXENTRY2 is supported since CodeMeter Version 4.30. The member mulLingerTime is available since CodeMeter Version 4.40. The member mulMinimumRuntimeVersion is available since CodeMeter Version 5.20. The following flags of the mflSetPio are available since CodeMeter Version 6.00: •cmapi.CM_BE_MODULE_ITEM •cmapi.CM_BE_BORROWEXPIRATIONTIME •cmapi.CM_BE_HISTORY •cmapi.CM_BE_TRANSFEROPTIONS •cmapi.CM_BE_RETURNINFO •cmapi.CM_BE_ACCEPTSPULL The flags cmapi.CM_GF_TRANSFERBASED and cmapi.CM_GF_FI_ALLOWED_TO_PULL of mflFiCtrl are available since CodeMeter Version 6.00. The members musModuleRef, musTransferBoxMask, mulTransferSerialNumber, mcmTransferBorrowExpirationTime, mabTransferId, mflLicenseQuantityFlags are available since CodeMeter Version 6.00. The member musMaxEncryptionRate is available since CodeMeter Version 6.50. For mflTransferStatus the flags cmapi.CM_TRANSFER_STATUS_ENABLED, cmapi.CM_TRANSFER_STATUS_DISABLED, cmapi.CM_TRANSFER_STATUS_RETURNED, cmapi.CM_TRANSFER_STATUS_EXPIRED are available since CodeMeter Version 6.30. For mflSetPio the flag cmapi.CM_BE_NAMEDUSER is available since CodeMeter Version 6.30. For mflSetPio the flags cmapi.CM_BE_ACCESS_PASSWORD and cmapi.CM_BE_MAX_ENCRYPTION_RATE is available since CodeMeter Version 6.50. |
cmapi.CM_GEI_ENTRYDATA fills a
cmapi.CMENTRYDATA class specified in GetInfoResult.entrydata().
|
CMENTRYDATA contains a dynamic added data of a Product Item with all its properties. Syntax
Parameter mflCtrl specifies the type of the dynamic added entry. It can contain one of the following flags:
For the three entry types Extended Protected Data, Hidden Data and Secret Data the index of this data type is or'ed in the upper two bytes. See remarks for a sample. mflDependency contains the dependency of the dynamic added entry. It can be have one or more of the following flags:
mulReserve is reserved for future purposes. mcbData contains the length of mabData, for text entries (cmapi.CM_GF_TEXT) the number of characters, for all other types the number of stored bytes. mabData[2 * CM_MAX_STRING_LEN] contains the data of the dynamic added entry with the length stored in mcbData. For text entries (cmapi.CM_GF_TEXT) the byte array contains an UCS2-LE encoded null-terminated string. Notes To check the mflCtrl you can use the cmapi.CM_GF_PIO_MASK to retrieve only the data type flag, e.g. mflCtrl & cmapi.CM_GF_PIO_MASK. To retrieve the index of Extended Protected Data, Hidden Data or Secret Data you need to extract the upper two bytes of mflCtrl.
|
cmapi.CM_GEI_INTERNALENTRYINFO fills as many
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.
|
CMINTERNALENTRYINFO stores internal data of an entry. Syntax
Parameter musFirmItemReference contains the Firm Item Reference in the CmContainer of the Firm Item. musProductItemReference contains the Product Item Reference in the CmContainer of the Product Item. mulFirmItemType specifies the type of the Firm Item. The following flags can be set:
mulFirmUpdateCounter contains the Firm Update Counter of the Firm Item. mulReserve is reserved for future purposes.
|
cmapi.CM_GEI_MEMINFO fills a
cmapi.CMMEMINFO class specified in GetInfoResult.meminfo().
|
CMMEMINFO stores the number of free memory blocks inside a CmDongle. Syntax
Parameter mcFree4ByteBlock contains the number of free 4 byte blocks. mcFree8ByteBlock contains the number of free 8 byte blocks. mcFree16ByteBlock contains the number of free 16 byte blocks. mcFree32ByteBlock contains the number of free 32 byte blocks. mcFree64ByteBlock contains the number of free 64 byte blocks. mcFree128ByteBlock contains the number of free 128 byte blocks. mcFree256ByteBlock contains the number of free 256 byte blocks. mcFree512ByteBlock contains the number of free 512 byte blocks.
|
cmapi.CM_GEI_MEMINFO2 fills the
cmapi.CMMEMINFO2 class specified in GetInfoResult.meminfo2().
|
CMMEMINFO2 stores the number of free memory blocks inside a CmDongle. Syntax
Parameter mcFree4ByteBlock contains the number of free 4 byte blocks. mcFree8ByteBlock contains the number of free 8 byte blocks. mcFree16ByteBlock contains the number of free 16 byte blocks. mcFree32ByteBlock contains the number of free 32 byte blocks. mcFree64ByteBlock contains the number of free 64 byte blocks. mcFree128ByteBlock contains the number of free 128 byte blocks. mcFree256ByteBlock contains the number of free 256 byte blocks. mcFree512ByteBlock contains the number of free 512 byte blocks. mulReserved1 is reserved for future purposes. mulReserved2 is reserved for future purposes. mulReserved3 is reserved for future purposes. mulReserved4 is reserved for future purposes. mulTotalBytesFree holds the total number of free bytes. mulCapacity holds the total memory size.
|
cmapi.CM_GEI_NETINFO_CLUSTER fills an array of
cmapi.CMNETINFOCLUSTER class specified in GetInfoResult.netinfocluster().
|
CMNETINFOCLUSTER stores the information about the licenses in a network including the current allocation status. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter mulSerial contains the serial number of the CmContainer. musMask contains the box mask of the CmContainer. musProductItemRef Product Item Reference of the the Product Item. mulFirmCode contains the Firm Code. mulProductCode contains the Product Code. mulFeatureMap contains the Feature Code of the Product Item. mulUserLimitLicenses contains the number of licenses allocated via cmapi.CM_ACCESS_USERLIMIT mode. mulNoUserLimitLicenses contains the number of licenses allocated via cmapi.CM_ACCESS_NOUSERLIMIT mode. mulExclusiveLicenses contains the number of licenses allocated via cmapi.CM_ACCESS_EXCLUSIVE mode. mulStationShareLicenses contains the number of licenses allocated via cmapi.CM_ACCESS_STATIONSHARE mode. mulUsedLicenses contains the number of licenses that are in use. This includes licenses that are allocated with cmapi.CM_ACCESS_USERLIMIT, cmapi.CM_ACCESS_EXCLUSIVE and cmapi.CM_ACCESS_STATIONSHARE mode. mulFreeLicenses contains the number of free licenses. (mulTotalLicenses - mulUsedLicenses) mulTotalLicenses contains the total amount of licenses for a Product Item or a Product Item cluster. mulLicenseQuantity contains the number of licenses that are available for accessing the specific Product Item entry. Includes also information on local licenses (License Quantity =0). ulReserved1 is reserved for future purposes.
|
cmapi.CM_GEI_NETINFO_USER fills a list of
cmapi.CMNETINFOUSER classes specifies in GetInfoResult.netinfouser().
|
CMNETINFOUSER stores the information about the licenses in a network that are currently allocated. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter mulSerial contains the serial number of the CmContainer. musMask contains the box mask of the CmContainer. musProductItemRef Product Item Reference of the the Product Item. mulFirmCode contains the Firm Code. mulProductCode contains the Product Code. mulFeatureMap contains the Feature Code of the Product Item. mulID contains the application identifier to the corresponding handle. mulAccessMode contains the access mode to the specified entry. mulCreationTime contains the creation time in UTC. mszClientIP[32] contains the IP address of the client accessing the license. To assign this field a valid value, DO NOT set it directly, call instead the set_mszClientIP() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszClientIP().
|
cmapi.CM_GEI_NETINFO_USER_EXT fills a list of
cmapi.CMNETINFOUSER_EXT classes specified in GetInfoResult.netinfouser_ext().
|
CMNETINFOUSER_EXT stores the information about the licenses in a network that are currently allocated by an CmAccess2 call. Also information on local licenses (License Quantity=0) is stored. Syntax
Parameter musMask contains the box mask of the CmContainer. mflCtrl allows you to see something about the access type:
mulSerial contains the serial number of the CmContainer. musProductItemRef Product Item Reference of the Product Item. mulFirmCode contains the Firm Code. mulProductCode contains the Product Code. mulFeatureMap contains the Feature Code of the Product Item. mulID contains the application identifier to the corresponding handle. mulAccessMode contains the access mode to the specified entry. mulLastAccessTime contains the timestamp of the last access to this handle in UTC since 2000. mulReserved2 is reserved for future purposes. mulReserved3 is reserved for future purposes. mulReserved4 is reserved for future purposes. mszClientAddress[64] contains the IP-address of the server. To assign this field a valid value, DO NOT set it directly, call instead the set_mszClientAddress() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszClientAddress(). mcmCredential references the cmapi.CMCREDENTIAL structure.
|
cmapi.CM_GEI_NAMEDUSER fills a
CMNAMEDUSER structure specified in GetInfoResult.nameduser().
|
CMNAMEDUSER stores the information about the PIO Named User. This PIO is used during CmAccess2() to verify the cmapi.CMACCESS::mcmCredential.msz*** parameters Username, DomainName and UserDefinedText supplied in CmAccess(2) against the credentials stored here. Syntax
Parameter musPioType and mflDependency refer to the same-named parameter of the cmapi.CMENTRYDATA structure. For internal use only. musIndex identifies the named user entry data. mulReserved is reserved for future purposes. mcbEntryData contains the length of the following data. mabTag[4] always contains the tag "cmnu" (CodeMeter Named User) to uniquely identify the PioType Extended Protected Data. mbVersion refers to the version number of cmnu; currently set to version 2. mbNextIndex currently holds a value of 0. mbfModeFlags contains the
mbReserved2 is reserved for future purposes. mulCrc32 holds the internal value of the CRC32 encryption of byte 1 through 8. mulNameListId contains the NameListId. mabHash[32] holds the hash value used during license creation. mabPlaintext[128] holds, if flag cmapi.CM_NMU_FLAG_PLAINTEXT has been set, the credentials used with the selected mode. The format is UTF-8. Notes
|
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.
cmapi.CM_GEI_SYSTEM fills a
cmapi.CMSYSTEM class specified in GetInfoResult.system().
|
CMSYSTEM stores system specific data. Syntax
Parameter midPlatform contains the Platform ID of the OS, the version of the Windows OS,the byte order of the system, and the information, if CodeMeter runs in a virtual machine (VM) environment. To retrieve the Windows version combine this parameter with binary AND of CM_SYSTEM_VERSION_MASK.
To retrieve the Platform ID combine this parameter with binary AND of cmapi.CM_SYSTEM_PLATFORM_MASK. The Platform ID is one of the following flags:
To retrieve the byte order combine this parameter with binary AND of cmapi.CM_SYSTEM_ENDIAN_ORDER_MASK. The byte order is one of the following flags:
If CodeMeter runs in a virtual machine environment the following flag is set:
mulSystemKernelVersion contains the kernel version of the OS. mausIpAddress[cmapi.CM_IP_ADDRESS_LEN] contains the IPv4-address of the computer. In case of IPv6 this field is not filled. Due to IPv6 is coming up this field should no longer be used. To assign this field a valid value, DO NOT set it directly, call instead the set_mausIpAddress() with the desired bytearray as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mausIpAddress(). mszComputerName[cmapi.CM_MAX_STRING_LEN] contains the name of the computer. In case of only IPv6 is used and no name can be derived, the IPv6-address is stored here as a string. The value of this field can be easily used as mszServername in structure cmapi.CMACCESS2. To assign this field a valid value, DO NOT set it directly, call instead the set_mszComputerName() with the desired string as parameter. To retrieve the content of this field, DO NOT use it directly, call instead the get_mszComputerName().
|
cmapi.CM_GEI_SYSTEMSTATUS fills a
cmapi.CMSYSTEMSTATUS class specified in GetInfoResult.systemstatus().
|
CMSYSTEMSTATUS stores system specific data. Syntax
Parameter mflStatusFlags may contain the following bits set:
mulServerStartTimeInSecondsSince01_01_2000 contains the start time of CodeMeter server in seconds since 01.01.2000, 00:00 (UTC).
|
cmapi.CM_GEI_USELOCALTIME all members of the cmapi.CMTIME class are returned in the local time format.
cmapi.CM_GEI_VERSION fills a
cmapi.CMVERSION structure specified in GetInfoResult.version().
|
CMVERSION stores the complete version of a CodeMeter module. Syntax
Parameter musVersion contains the major version of the CodeMeter module. musSubVersion contains the minor version of the CodeMeter module. musBuild contains the build number of the CodeMeter module. musCount contains the count of the CodeMeter module. musYear contains the year of creation of the CodeMeter module. musMonth contains the month of creation of the CodeMeter module. musDay contains the day of creation of the CodeMeter module. musReserve is reserved for future purposes.
|
cmapi.CM_GEI_CHIPINFO fills a
cmapi.CMCHIPINFO structure specified in GetInfoResult.chipinfo().
|
CMCHIPINFO stores the information about the Chip of the CmDongle. Syntax
Parameter mulFirmwareBuild contains the build number of the currently stored Firmware version. mulFirmwareBuildTop contains the highest build number of the Firmware version ever stored. mulMdfaLba contains the start address of the File I/O communication. mulReserved is reserved for future purposes. musChipType contains the type of the chip. musSiliconRevision contains the revision of the chip mask. midFactory contains the identification of the chip fabric where it was manufactured. musProductYear contains the production year in number of years since 2000. musLotNumber contains the charge number of the produced wafer. midWafer contains the identification of the wafer within the charge. midChipOnWafer contains the identification of the chip within the wafer. musDowngradeCount
|
cmapi.CM_GEI_USBCHIPINFO fills a
cmapi.CMUSBCHIPINFO structure specified in GetInfoResult.usbchipinfo().
|
CMUSBCHIPINFO stores the information about the USB chip of the CmDongle. Syntax
Parameter musFirmWareMajor contains the major version of the USB chip Firmware. musFirmWareMinor contains the minor version of the USB chip Firmware. mulFlashSize contains the size of the flash memory part of the CmDongle. mszNodeDescription contains the description of the current USB node of the connected CmDongle. To assign this field a valid value, DO NOT set it directly, call instead the set_mszNodeDescription() with the desired string as parameter. To retrieve the con-tent of this field, DO NOT use it directly, call instead the get_mszNodeDescription(). mszNodes contains a list of found CmDongle partitions. This feature requires a CodeMeter USB chip Firmware version >= 7.3.
|
cmapi.CM_GEI_BOXSTATUS fills a 32 bit value with following status flags.
cmapi.CM_BOXSTATUS_LOWMEMORY specifies that the CmDongle has too low memory to replace damaged memory during normal usage.
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.
cmapi.CM_BOXSTATUS_HASFLASH specifies that the CmDongle contains an additional flash disc besides the CodeMeter chip.
cmapi.CM_BOXSTATUS_ISCMACT specifies that this is a CmActLicense.
cmapi.CM_BOXSTATUS_ISCMCLOUD specifies that this is a CmCloudContainer.
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.
cmapi.CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED specifies that the hardware (CmStick/T) has a working battery powered clock inside.
cmapi.CM_BOXSTATUS_USES_HID_COMMUNICATION specifies that the CmDongle is configured as Human Interface Device (HID).
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.
cmapi.CM_BOXSTATUS_STATE_LOCKED specifies that the CmContainer is locked. This cannot be repaired. This CmContainer needs to be replaced.
cmapi.CM_CLOUDSTATUS_DISCONNECTED specifies that the internet connection to the CmCloudContainer has been lost.
Enabling status:
cmapi.CM_BOXSTATUS_ENABLED specifies that the CmContainer is enabled.
cmapi.CM_BOXSTATUS_DISABLED specifies that the CmContainer is disabled.
cmapi.CM_BOXSTATUS_TEMPENABLED specifies that the CmContainer is temporarily enabled.
cmapi.CM_BOXSTATUS_MASK specifies all flags for the enabling status.
CmActLicense status:
cmapi.CM_ACTSTATUS_FILE specifies that a file is the base of this CmActLicense.
cmapi.CM_ACTSTATUS_LOADED specifies that the CmActLicense is loaded and can be used. Used during the license creation on licensors side.
cmapi.CM_ACTSTATUS_ACTIVATE_BY_CODE specifies that the CmActLicense can be activated by entering a code (phone activation).
cmapi.CM_ACTSTATUS_ACTIVATE_BY_FILE specifies that the CmActLicense has to be activated by a file transmission of a Remote Update File.
cmapi.CM_ACTSTATUS_ACTIVE specifies that the CmActLicense currently is valid and active.
cmapi.CM_ACTSTATUS_PROGRAMMABLE specifies that this license can be programmed now. Used during the license creation on licensors side.
cmapi.CM_ACTSTATUS_INVALID specifies that there occurred a problem with the security checks of the CmActLicense. The license cannot be used.
cmapi.CM_ACTSTATUS_BROKEN specifies that the binding requirements are no longer fulfilled. The license cannot be used.
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.
cmapi.CM_ACTSTATUS_VM_DETECTED specifies that the license is invalid since it is running in a virtual environment which is not permitted.
cmapi.CM_ACTSTATUS_BLACKLISTED specifies that the CmActLicense is blacklisted by CodeMeter Timeserver and can no longer be used.
cmapi.CM_BOXSTATUS_CMACT_MASK specifies all flags for CmActLicense.
cmapi.CM_GEI_LISTALLPI serves to faster return an array of Product Items and Module Items contents using internal lists and fills a
cmapi.CMPIENTRYBASE class specified in GetInfoResult.pientrybase().
|
CMPIENTRYBASE returns all Product Items and Module Items of the Firm Item regardless whether the handle is a Firm Item or Product Item handle. Syntax
Parameter mulProductCode contains the Product Code of the Product Item. mulFeatureMap contains the Feature Map of the Product Item. mflSetEffectivePios specifies in the context of used Module Items the effective representation, i.e including eventually inherited PIOs. mflSetNativePios specifies in the context of used Module Items the native representation of the PIOs as programmed. mulMaintenancePeriodStartSecondsSince01_01_2000 contains the start date of the Maintenance Period of the Product Item in seconds since 01_01_2000, if available. mulMaintenancePeriodEndSecondsSince01_01_2000 contains the end date of the Maintenance Period of the Product Item in seconds since 01_01_2000, if available. mulUnitCounter contains the Unit Counter of the Product Item, if available. mulExpirationTimeSecondsSince01_01_2000 contains the start date of the Expiration Time of the Product Item in seconds since 01_01_2000, if available. mulActivationTimeSecondsSince01_01_2000 contains the end date of the Expiration Time of the Product Item in seconds since 01_01_2000, if available mulUsagePeriodLifeTime contains the period length of the Usage Period in seconds, if available. mulUsagePeriodStartTimeSecondsSince01_01_2000 contains the start date of the Usage Period of the Product Item in seconds since 01_01_2000, if available. mulLicenseQuantity contains the License Quantity of the Product Item, if available. mulMinimumRuntimeVersion contains the Minimum Runtime Version of the Product Item, if available. mflLicenseQuantityFlags contains the flags for license access options, i.e. local accesses (see the knowledgebase overview license (access) options).
mcmNamedUserEntry holds the data of the respective a
musProductItemRef holds the Product Item Reference. musReserved1 is reserved for future purposes. mflTransferStatus contains the flag of the transfer status. The following flags exist:.
|
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...
|
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