cookie CmLtConfirmTransfer

Description

This function checks the receipt and completes the transfer at the transferring side.

For more details see the respective knowledge base article on license transfer.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmLtConfirmTransfer(
HCMSysEntry hcmse, CMULONG flCtrl, void* pReceipt, CMUINT cbReceipt);

Parameter

hcmse contains a handle opened by CmAccess / CmAccess2. A Box Access handle is sufficient but you may alternatively use a Firm Item or Entry Access.

flCtrl currently contains a value of 0.

pReceipt points to a byte buffer to which the receipt data is copied to. Here the created data is one-to-one copied in format *.WibuCmRaR to the memory.

cbReceipt holds the size of the allocated memory in pReceipt.

Return

TRUE is returned on the successful operation, i,e, the receipt is correct. FALSE is returned, if an error occurred. The exact reason can be queried using CmGetLastErrorCode () or CmGetLastErrorText () / CmGetLastErrorText2 ().

Note

If the receipt specifies a failure reason that the license has not been properly imported at the other side, this receipt rolls back the changes that have been done by the transfer process.

Available with CodeMeter Version 6.00 and higher.

 

Syntax

public bool CmLtConfirmTransfer(HCMSysEntry hcmse, CmLtFlags Ctrl, byte[] Acknowledge)

Parameter

hcmse contains a handle opened by CmAccess / CmAccess2 (can be Box Access, Entry Access or Firm Item Access). Principally, a Box Access handle is set.

CmLtFlags Ctrl currently contains a value of 0.

Acknowledge contains the receipt data one-to-one copied in format *.WibuCmRaR to the memory.

Return

This function returns true. If an error occurred, false will be returned. The exact reason can be queried using CmGetLastErrorCode2 () or CmGetLastErrorText () / CmGetLastErrorText2 ().

Notes

If the receipt specifies a failure reason that the license has not been properly imported at the other side, this receipt rolls back the changes that have been done by the transfer process.

Available with CodeMeter Version 6.00 and higher.

Syntax

import cmapi
 
handleOfSender.CmLtConfirmTransfer(receipt)
throws CodeMeterApiFailedException()

Parameter

handleOfSender is the handle opened by CmAccess2. A Box Access handle is sufficient but you may alternatively use a Firm Item or Entry Access.

receipt is the byte buffer to which the receipt data is copied to. Here the created data is one-to-one copied in format *.WibuCmRaR to the memory.

Return

TRUE is returned on the successful operation. If an error occurs, the function throws an exception and the exact reason can be queried using CmGetLastErrorCode () or CmGetLastErrorText ().

Note

If the receipt specifies a failure reason that the license has not been properly imported at the other side, this receipt rolls back the changes that have been done by the transfer process.

Available with CodeMeter Version 6.00 and higher.