CmActLicenseControl
Description
CmActLicenseControl is a helper function that provides all activation essentials and handles CmActLicense files.
|
Triple Mode Redundancy-related information (TMR)
|
Syntax
int CMAPIENTRY CmActLicenseControl(HCMSysEntry hcmse, CMULONG flCtrl, const void *pvData, CMUINT cbData, void *pvReturn, CMUINT cbReturn)
Parameter
hcmse contains a handle opened by CmAccess / CmAccess2. The required access mode depends on the operation set in flCtrl.
flCtrl contains one of the following flags to specify the action that is requested:
CM_GF_ACT_REQUEST creates a remote Context File (*.WibuCmRaC) to request the activation of a CmActLicense. pvData holds a
CMACTREQUEST structure. pvReturn is filled with a CMBYTE array containing the remote Context File (*.WibuCmRaC). hcmse must be Box Access, Firm Item Access or Entry Access.
|
CMACTREQUEST holds information for creating a CmActLicense Context File. Syntax
Parameter tba.
|
Return
This function returns the number of bytes filled in pvReturn. If the command specified in flCtrl does not fill pvReturn by design, the function returns 1. If an error occurred, 0 will be returned.
Exception:
If pvReturn does not contain enough memory, the number of required bytes will be returned in cbReturn and error code CMERROR_BUFFER_OVERFLOW is set.