cookie CmRevalidateBox

Description

This command performs a validation of the used CmContainer. This command is not dedicated to check a license itself like you would do it in a runtime check but to check whether the CmContainer is still available and valid or not. The execution of this command needs some time due to the asymmetric cryptographic operations.

For CmActLicense it is especially used to check, if a CmActLicense currently is not broken. Calling CmRevalidateBox() will cause a "replug" of the CmActLicenses and therefore the validation is done again.

For CmDongles there is done a validation using some internal keys.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmRevalidateBox(HCMSysEntry hcmse, CMULONG flCtrl);

Parameter

hcmse contains the handle opened by CmAccess / CmAccess2. This can be a Box handle, Firm Item handle or Entry handle.

flCtrl contains one of following flags to revalidate a CmContainer:

information_weiss_klein26

Please note that the first two flags are relevant only in the context of Binding Extensions using Universal Firm Codes. In all other cases, CodeMeter ignores these flags.

nav_open CM_REVALIDATE_LICENSOR_SPECIFIC_MASK informs the software vendor that the upper 4 bits can be used for own purposes, and that the remaining bits are reserved for Wibu-Systems.
The upper 4 bits are not interpreted by CodeMeter but are supplied to the software vendor's binding extension plug-in.

nav_open CM_REVALIDATE_WIBU_SYSTEMS_MASK holds information reserved for Wibu-Systems.

nav_open CM_REVALIDATE_BASIC is interpreted by CodeMeter however only for Universal Firm Codes.
It may be used for all binding schemes and serves for a quicker performance.
In the case of legacy Firm Codes, this flag is ignored without an error message.

Return

The return value is TRUE, if the revalidation was successful, FALSE if not.

Syntax

public bool CmRevalidateBox(HCMSysEntry hcmse, uint Ctrl)

Parameter

hcmse contains the handle opened by CmAccess / CmAccess2. This can be a Box handle, Firm Item handle or Entry handle.

Ctrl contains one of following flags to revalidate a CmContainer:

information_weiss_klein26

Please note that the first two flags are relevant only in the context of Binding Extensions using Universal Firm Codes. In all other cases, CodeMeter ignores these flags.

nav_open LicensorSpecificMask informs the software vendor that the upper 4 bits can be used for own purposes, and that the remaining bits are reserved for Wibu-Systems.
The upper 4 bits are not interpreted by CodeMeter but are supplied to the software vendor's binding extension plug-in.

nav_open WibuSystemsMask holds information reserved for Wibu-Systems.

nav_open Basic is interpreted by CodeMeter however only for Universal Firm Codes.
It may be used for all Binding Schemes and serves for a quicker performance.
In the case of legacy Firm Codes, this flag is ignored without an error message..

Return

The return value is true, if the revalidation was successful, false if not.

 

Syntax

import cmapi
 
handle.CmRevalidateBox(flCtrl: int) -> bool

Parameter

handle is the handle opened by CmAccess2. This can be a Box handle, Firm Item handle or Entry handle.

flCtrl contains one of following flags to revalidate a CmContainer:

information_weiss_klein26

Please note that the first two flags are relevant only in the context of Binding Extensions using Universal Firm Codes. In all other cases, CodeMeter ignores these flags.

nav_open cmapi.CM_REVALIDATE_LICENSOR_SPECIFIC_MASK informs the software vendor that the upper 4 bits can be used for own purposes, and that the remaining bits are reserved for Wibu-Systems.
The upper 4 bits are not interpreted by CodeMeter but are supplied to the software vendor's binding extension plug-in.

nav_open cmapi.CM_REVALIDATE_WIBU_SYSTEMS_MASK holds information reserved for Wibu-Systems.

nav_open cmapi.CM_REVALIDATE_BASIC is interpreted by CodeMeter however only for Universal Firm Codes.
It may be used for all binding schemes and serves for a quicker performance.
In the case of legacy Firm Codes, this flag is ignored without an error message.

Return

The return value is True, if the revalidation was successful, False if not.