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.
|
Triple Mode Redundancy-related information (TMR)
|
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:
|
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. |
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.
CM_REVALIDATE_WIBU_SYSTEMS_MASK holds information reserved for Wibu-Systems.
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:
|
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. |
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.
WibuSystemsMask holds information reserved for Wibu-Systems.
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:
|
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. |
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.
cmapi.CM_REVALIDATE_WIBU_SYSTEMS_MASK holds information reserved for Wibu-Systems.
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.