System Typedef RequestCallback


    typedef int (*RequestCallback) (const char *iProductName,
                                    unsigned long iProductID,
                                    unsigned long ioData[2])
This is the function to be implemented by the CAA2 partner and passed to Initialize.
It is not part of CATSysCAALM but included here only for documentation purpose.
It is called when the licensing subsystem needs to probe, request, check, release... a license. Data returned represents a boolean indicating whether the operation has succeeded or failed.
Values:
iProductName
The name of the product of the form ABC.prd
iProductID
The 32-bit integer specified by the SetLicense of the product identity card.
ioData
Two 32-bit integers that are used for verification. If the operation succeeds then ioData[0] must be XORed with the partner key and ioData[1] must also by XORed the product ID (2nd parameter). Any other value implies that the operation has failed.
On input, bits 12-15 of the first word ((ioData[0] >> 12) & 0xf) represents a value describing the operation to be performed:
  • 0 - check that the license is present
  • 1 - request the license
  • 2 - check that the license (previously requested) is still granted
  • 3 - release the license (previously requested)
  • 4 - check if the product must be displayed in Tools/Options/Licensing tab (success -> displayed)
  • Here is an example: int callback (const char *iProductName,

    This object is included in the file: CATSysCAALM.h
    If needed, your Imakefile.mk should include the module: JS0GROUP

    Copyright © 1999-2015, Dassault Systèmes. All rights reserved.