Package com.wibu.cm

Class CodeMeter

  • Direct Known Subclasses:
    CodeMeterAct

    public class CodeMeter
    extends java.lang.Object
    CodeMeter Java-API-Documentation. This documentation describes the CodeMeter Java classes (e.g. CodeMeter) in the package com.wibu.cm. If you have further questions or find any errors, please send an email to support@wibu.de.

    For additional information please read also the CodeMeter C-API online help.

    • Field Detail

      • CMERROR_NO_ERROR

        public static final int CMERROR_NO_ERROR
        Error code 0: The operation was successfully. Normally this code is used to check an error code against validity.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDUNDEFINED

        public static final int CMERROR_COMMANDUNDEFINED
        Error code 1: The specified CmDongle command is not defined.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDINVALID

        public static final int CMERROR_COMMANDINVALID
        Error code 2: The specified CmDongle command is not permitted to be used
        See Also:
        Constant Field Values
      • CMERROR_COMMANDTOOLARGE

        public static final int CMERROR_COMMANDTOOLARGE
        Error code 3: The received CmDongle command sequence is too large.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDWRONG

        public static final int CMERROR_COMMANDWRONG
        Error code 4: The received CmDongle command sequence is wrong.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDTVBWRONG

        public static final int CMERROR_COMMANDTVBWRONG
        Error code 5: The TVB of the CmDongle command sequence is wrong.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDINCOMPLETE

        public static final int CMERROR_COMMANDINCOMPLETE
        Error code 6: The received CmDongle command sequence is incomplete.
        See Also:
        Constant Field Values
      • CMERROR_AWAITENCRYPTIONRESTART

        public static final int CMERROR_AWAITENCRYPTIONRESTART
        Error code 7: The box awaits the restarting of the Encryption Communication Mode.
        See Also:
        Constant Field Values
      • CMERROR_ANSWERBUFFERFULL

        public static final int CMERROR_ANSWERBUFFERFULL
        Error code 8: The size of the answer buffer was too small to execute the command.
        See Also:
        Constant Field Values
      • CMERROR_VALUETOOLARGE

        public static final int CMERROR_VALUETOOLARGE
        Error code 9: The specified value is too large.
        See Also:
        Constant Field Values
      • CMERROR_OPTIONUNDEFINED

        public static final int CMERROR_OPTIONUNDEFINED
        Error code 10: The specified option is not defined.
        See Also:
        Constant Field Values
      • CMERROR_OPTIONINVALID

        public static final int CMERROR_OPTIONINVALID
        Error code 11: The specified option is not permitted to be used.
        See Also:
        Constant Field Values
      • CMERROR_TYPEUNDEFINED

        public static final int CMERROR_TYPEUNDEFINED
        Error code 12: The specified type is not defined.
        See Also:
        Constant Field Values
      • CMERROR_TYPEWRONG

        public static final int CMERROR_TYPEWRONG
        Error code 13: The specified type is wrong.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEUNDEFINED

        public static final int CMERROR_KEYSOURCEUNDEFINED
        Error code 14: The Key Source is not defined.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEINVALID

        public static final int CMERROR_KEYSOURCEINVALID
        Error code 15: The specified Key Source is invalid.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEMISSED

        public static final int CMERROR_KEYSOURCEMISSED
        Error code 16: A required Key Source is not available.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEWRONG

        public static final int CMERROR_KEYSOURCEWRONG
        Error code 17: The specified or required Key Source is in invalid format.
        See Also:
        Constant Field Values
      • CMERROR_DATATOOSHORT

        public static final int CMERROR_DATATOOSHORT
        Error code 18: The specified data is too short.
        See Also:
        Constant Field Values
      • CMERROR_DATATOOLONG

        public static final int CMERROR_DATATOOLONG
        Error code 19: The specified data or text is too long.
        See Also:
        Constant Field Values
      • CMERROR_DATAWRONG

        public static final int CMERROR_DATAWRONG
        Error code 20: The specified data is in invalid format.
        See Also:
        Constant Field Values
      • CMERROR_FIRMITEMINVALID

        public static final int CMERROR_FIRMITEMINVALID
        Error code 21: The specified Firm Item Reference is invalid.
        See Also:
        Constant Field Values
      • CMERROR_FIRMCODEEXISTS

        public static final int CMERROR_FIRMCODEEXISTS
        Error code 22: A Firm Item with the specified Firm Code already exists.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMINVALID

        public static final int CMERROR_PRODUCTITEMINVALID
        Error code 23: The specified Product Item Reference is invalid.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMOPTIONUNDEFINED

        public static final int CMERROR_PRODUCTITEMOPTIONUNDEFINED
        Error code 24: The specified Product Item Option is not defined.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMOPTIONINVALID

        public static final int CMERROR_PRODUCTITEMOPTIONINVALID
        Error code 25: The specified Product Item Option is invalid.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMOPTIONMISSED

        public static final int CMERROR_PRODUCTITEMOPTIONMISSED
        Error code 26: A required Product Item Option is not available.
        See Also:
        Constant Field Values
      • CMERROR_FIRMCODEWRONG

        public static final int CMERROR_FIRMCODEWRONG
        Error code 27: The specified Firm Code is wrong.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTCODEWRONG

        public static final int CMERROR_PRODUCTCODEWRONG
        Error code 28: The specified Product Code cannot be used.
        See Also:
        Constant Field Values
      • CMERROR_FEATUREMAPMISSED

        public static final int CMERROR_FEATUREMAPMISSED
        Error code 29: A required Feature Map is not available.
        See Also:
        Constant Field Values
      • CMERROR_FEATUREMAPINCOMPATIBLE

        public static final int CMERROR_FEATUREMAPINCOMPATIBLE
        Error code 30: The specified Feature Code does not match the used Feature Map.
        See Also:
        Constant Field Values
      • CMERROR_UNITCOUNTERMISSED

        public static final int CMERROR_UNITCOUNTERMISSED
        Error code 31: A Unit Counter is not available - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_UNITCOUNTERZERO

        public static final int CMERROR_UNITCOUNTERZERO
        Error code 32: The Unit Counter is zero - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_UNITCOUNTERUNDERRUN

        public static final int CMERROR_UNITCOUNTERUNDERRUN
        Error code 33: The Unit Counter would underrun - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_EXPIRATIONTIMEMISSED

        public static final int CMERROR_EXPIRATIONTIMEMISSED
        Error code 34: Expiration Time not available - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_EXPIRATIONTIMEOVERRUN

        public static final int CMERROR_EXPIRATIONTIMEOVERRUN
        Error code 35: The Expiration Time is overrun - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_ACTIVATIONTIMEMISSED

        public static final int CMERROR_ACTIVATIONTIMEMISSED
        Error code 36: Activation Time not available - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_ACTIVATIONTIMEUNDERRUN

        public static final int CMERROR_ACTIVATIONTIMEUNDERRUN
        Error code 37: The Activation Time is underrun - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_FIRMACCESSCOUNTERZERO

        public static final int CMERROR_FIRMACCESSCOUNTERZERO
        Error code 38: The Firm Access Counter is zero - the en-/decryption cannot be operated.
        See Also:
        Constant Field Values
      • CMERROR_CERTIFIEDTIMEOBSOLETE

        public static final int CMERROR_CERTIFIEDTIMEOBSOLETE
        Error code 39: The Certified Box Clock (CBC) is not updated by a Certified Time Creation Server.
        See Also:
        Constant Field Values
      • CMERROR_ENCRYPTIONINVALID

        public static final int CMERROR_ENCRYPTIONINVALID
        Error code 40: The encryption operation is not permitted.
        See Also:
        Constant Field Values
      • CMERROR_DIFFIEHELLMANFAILED

        public static final int CMERROR_DIFFIEHELLMANFAILED
        Error code 41: A Diffie Hellman key agreement failed.
        See Also:
        Constant Field Values
      • CMERROR_ECIESFAILED

        public static final int CMERROR_ECIESFAILED
        Error code 42: An ECIES decryption failed.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDUNDEFINED

        public static final int CMERROR_SUBCOMMANDUNDEFINED
        Error code 43: The specified subcommand is undefined.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDINVALID

        public static final int CMERROR_SUBCOMMANDINVALID
        Error code 44: The specified subcommand is not permitted.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDINCOMPLETE

        public static final int CMERROR_SUBCOMMANDINCOMPLETE
        Error code 45: The specified subcommand is incomplete.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDSTRUCTUREWRONG

        public static final int CMERROR_SUBCOMMANDSTRUCTUREWRONG
        Error code 46: The specified sequence has a wrong structure.
        See Also:
        Constant Field Values
      • CMERROR_TVBWRONG

        public static final int CMERROR_TVBWRONG
        Error code 47: The Trailing Validation Block (TVB) is wrong.
        See Also:
        Constant Field Values
      • CMERROR_FIRMUPDATECOUNTERWRONG

        public static final int CMERROR_FIRMUPDATECOUNTERWRONG
        Error code 48: The specified Firm Update Counter value is wrong.
        See Also:
        Constant Field Values
      • CMERROR_PITVBFLAGINVALID

        public static final int CMERROR_PITVBFLAGINVALID
        Error code 49: A specified Product Item TVB control flag is invalid.
        See Also:
        Constant Field Values
      • CMERROR_PITVBFLAGINCOMPATIBLE

        public static final int CMERROR_PITVBFLAGINCOMPATIBLE
        Error code 50: A specified Product Item TVB control flag does not match the set flag.
        See Also:
        Constant Field Values
      • CMERROR_ENABLEBLOCKUSED

        public static final int CMERROR_ENABLEBLOCKUSED
        Error code 51: The specified Enable Block is used and cannot be deleted.
        See Also:
        Constant Field Values
      • CMERROR_BOXDISABLED

        public static final int CMERROR_BOXDISABLED
        Error code 52: The CmDongle is disabled by the Implicit Firm Item.
        See Also:
        Constant Field Values
      • CMERROR_FIRMITEMDISABLED

        public static final int CMERROR_FIRMITEMDISABLED
        Error code 53: The specified Firm Item is disabled.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMDISABLED

        public static final int CMERROR_PRODUCTITEMDISABLED
        Error code 54: The specified Product Item is disabled.
        See Also:
        Constant Field Values
      • CMERROR_INDEXINVALID

        public static final int CMERROR_INDEXINVALID
        Error code 55: The specified Index is invalid.
        See Also:
        Constant Field Values
      • CMERROR_LEVELINVALID

        public static final int CMERROR_LEVELINVALID
        Error code 56: The specified Enabling Level is invalid.
        See Also:
        Constant Field Values
      • CMERROR_TABLEFULL

        public static final int CMERROR_TABLEFULL
        Error code 57: The size of the destination table is full.
        See Also:
        Constant Field Values
      • CMERROR_MEMORYFULL

        public static final int CMERROR_MEMORYFULL
        Error code 58: The permanent memory of the CmDongle is too small.
        See Also:
        Constant Field Values
      • CMERROR_MEMORYDAMAGED

        public static final int CMERROR_MEMORYDAMAGED
        Error code 59: The memory content is damaged to execute a specific operation.
        See Also:
        Constant Field Values
      • CMERROR_QUEENMEMORYDAMAGED

        public static final int CMERROR_QUEENMEMORYDAMAGED
        Error code 60: The CRC value for the Queen Memory is wrong.
        See Also:
        Constant Field Values
      • CMERROR_FIRMITEMDAMAGED

        public static final int CMERROR_FIRMITEMDAMAGED
        Error code 61: The specified Firm Item Reference is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_CRTOKENOBSOLETE

        public static final int CMERROR_CRTOKENOBSOLETE
        Error code 62: The used challenge response token is obsolete.
        See Also:
        Constant Field Values
      • CMERROR_MEMORYWRITEFAILED

        public static final int CMERROR_MEMORYWRITEFAILED
        Error code 63: The CmDongle memory cannot be written.
        See Also:
        Constant Field Values
      • CMERROR_BOXBUSY

        public static final int CMERROR_BOXBUSY
        Error code 64: The CmDongle is executing a previously started command.
        See Also:
        Constant Field Values
      • CMERROR_FEATURECODEINVALID

        public static final int CMERROR_FEATURECODEINVALID
        Error code 65: The specified Feature Code is invalid.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDUNSUPPORTED

        public static final int CMERROR_COMMANDUNSUPPORTED
        Error code 66: The specified command is not supported in the current mode.
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATELIMITEXCEEDED

        public static final int CMERROR_FIELDUPDATELIMITEXCEEDED
        Error code 67: The maximum number of Field Updates for a current version is exceeded.
        See Also:
        Constant Field Values
      • CMERROR_FLASHWRITEFAILED

        public static final int CMERROR_FLASHWRITEFAILED
        Error code 68: A write command to Flash memory (Firmware) failed because the memory is damaged.
        See Also:
        Constant Field Values
      • CMERROR_ACCESSMODEWRONG

        public static final int CMERROR_ACCESSMODEWRONG
        Error code 69: The used Access Mode does not support the command or mode.
        See Also:
        Constant Field Values
      • CMERROR_BOXLOST

        public static final int CMERROR_BOXLOST
        Error code 70: A previously attached CmContainer is no longer available.
        See Also:
        Constant Field Values
      • CMERROR_USAGEPERIODOVERRUN

        public static final int CMERROR_USAGEPERIODOVERRUN
        Error code 71: CMERROR_USAGEPERIODOVERRUN.
        See Also:
        Constant Field Values
      • CMERROR_USAGEPERIODUNDERRUN

        public static final int CMERROR_USAGEPERIODUNDERRUN
        Error code 72: CMERROR_USAGEPERIODUNDERRUN.
        See Also:
        Constant Field Values
      • CMERROR_BOXLOCKED

        public static final int CMERROR_BOXLOCKED
        Error code 73: The specified CmContainer is locked.
        See Also:
        Constant Field Values
      • CMERROR_BOX_DAMAGED

        public static final int CMERROR_BOX_DAMAGED
        Error code 74: The specified CmContainer is locked.
        See Also:
        Constant Field Values
      • CMERROR_BOX_LOCKED_TO

        public static final int CMERROR_BOX_LOCKED_TO
        Error code 75: The specified CmContainer is locked.
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODMISSING

        public static final int CMERROR_MAINTENANCEPERIODMISSING
        Error code 76:
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODUNDERRUN

        public static final int CMERROR_MAINTENANCEPERIODUNDERRUN
        Error code 77:
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODOVERRUN

        public static final int CMERROR_MAINTENANCEPERIODOVERRUN
        Error code 78:
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODINVALID

        public static final int CMERROR_MAINTENANCEPERIODINVALID
        Error code 79
        See Also:
        Constant Field Values
      • CMERROR_BOXMEMORYDAMAGED

        public static final int CMERROR_BOXMEMORYDAMAGED
        Error code 80: A general part of the CmDongle memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSSMEMORY_DAMAGED

        public static final int CMERROR_BOSSMEMORY_DAMAGED
        Error code 81: The BOSS memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_FIRMWAREMEMORY_DAMAGED

        public static final int CMERROR_FIRMWAREMEMORY_DAMAGED
        Error code 82: The Firmware memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSS_FIRMWAREMEMORY_DAMAGED

        public static final int CMERROR_BOSS_FIRMWAREMEMORY_DAMAGED
        Error code 83: The BOSS and Firmware memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_FUMMEMORY_DAMAGED

        public static final int CMERROR_FUMMEMORY_DAMAGED
        Error code 84: The FUM memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSS_FUMMEMORY_DAMAGED

        public static final int CMERROR_BOSS_FUMMEMORY_DAMAGED
        Error code 85: The BOSS and FUM memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_FIRMWARE_FUMMEMORY_DAMAGED

        public static final int CMERROR_FIRMWARE_FUMMEMORY_DAMAGED
        Error code 86: The Firmware and FUM memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSS_FIRMWARE_FUMMEMORY_DAMAGED

        public static final int CMERROR_BOSS_FIRMWARE_FUMMEMORY_DAMAGED
        Error code 87: The BOSS, Firmware and FUM memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_SYSTIMEOBSOLETE

        public static final int CMERROR_SYSTIMEOBSOLETE
        Error code 88: The System Time is not set by the CodeMeter Host Service.
        See Also:
        Constant Field Values
      • CMERROR_BAD_IO_MODE

        public static final int CMERROR_BAD_IO_MODE
        Error code 89: The FileIO communication for this call is not allowed.
        See Also:
        Constant Field Values
      • CMERROR_FUNCTIONLIMITREACHED

        public static final int CMERROR_FUNCTIONLIMITREACHED
        Deprecated.
        use CMERROR_FULA_UPDATEEB_REACHED instead
        See Also:
        Constant Field Values
      • CMERROR_FULA_UPDATEEB_REACHED

        public static final int CMERROR_FULA_UPDATEEB_REACHED
        Error code 90: The Function Usage Limit for the password has been reached.
        See Also:
        Constant Field Values
      • CMERROR_FULA_ENCRCOMM_REACHED

        public static final int CMERROR_FULA_ENCRCOMM_REACHED
        Error code 91: The Function Usage Limit for the communication has been reached.
        See Also:
        Constant Field Values
      • CMERROR_UNFRAMED_COMMAND_REJECTED

        public static final int CMERROR_UNFRAMED_COMMAND_REJECTED
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_PARTIALLY_REJECTED

        public static final int CMERROR_COMMAND_PARTIALLY_REJECTED
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_PARTIALLY_UNSUPPORTED

        public static final int CMERROR_COMMAND_PARTIALLY_UNSUPPORTED
        See Also:
        Constant Field Values
      • CMERROR_NETWORK_FAULT

        public static final int CMERROR_NETWORK_FAULT
        Error code 100: A network error occurred.
        See Also:
        Constant Field Values
      • CMERROR_SERVER_NOT_FOUND

        public static final int CMERROR_SERVER_NOT_FOUND
        Error code 101: CodeMeter Server not found.
        See Also:
        Constant Field Values
      • CMERROR_SEND_FAULT

        public static final int CMERROR_SEND_FAULT
        Error code 102: The request cannot send to another CodeMeter Server.
        See Also:
        Constant Field Values
      • CMERROR_RECEIVE_FAULT

        public static final int CMERROR_RECEIVE_FAULT
        Error code 103: The answer from another CodeMeter Server cannot be received.
        See Also:
        Constant Field Values
      • CMERROR_INTERNAL_ORGANISATION

        public static final int CMERROR_INTERNAL_ORGANISATION
        Error code 104: An internal error occurred.
        See Also:
        Constant Field Values
      • CMERROR_INVALID_PARAMETER

        public static final int CMERROR_INVALID_PARAMETER
        Error code 105: The specified parameter is invalid.
        See Also:
        Constant Field Values
      • CMERROR_INVALID_HANDLE

        public static final int CMERROR_INVALID_HANDLE
        Error code 106: An invalid handle was specified.
        See Also:
        Constant Field Values
      • CMERROR_NO_MORE_HANDLES

        public static final int CMERROR_NO_MORE_HANDLES
        Error code 107: No more handles are available.
        See Also:
        Constant Field Values
      • CMERROR_NO_MORE_MEMORY

        public static final int CMERROR_NO_MORE_MEMORY
        Error code 108: There is not enough memory available in CodeMeter.
        See Also:
        Constant Field Values
      • CMERROR_SECURITY_PROBLEM

        public static final int CMERROR_SECURITY_PROBLEM
        Error code 109: The exchange of a communication key failed.
        See Also:
        Constant Field Values
      • CMERROR_NO_LOCAL_SERVER_STARTED

        public static final int CMERROR_NO_LOCAL_SERVER_STARTED
        Error code 110: No local CodeMeter.exe is started.
        See Also:
        Constant Field Values
      • CMERROR_NO_NETWORK_SERVER

        public static final int CMERROR_NO_NETWORK_SERVER
        Error code 111: CodeMeter.exe is not a network server.
        See Also:
        Constant Field Values
      • CMERROR_BUFFER_OVERFLOW

        public static final int CMERROR_BUFFER_OVERFLOW
        Error code 112: The data area passed to the CodeMeter driver is too small.
        See Also:
        Constant Field Values
      • CMERROR_BAD_ADDRESS

        public static final int CMERROR_BAD_ADDRESS
        Error code 113: The given memory address is invalid.
        See Also:
        Constant Field Values
      • CMERROR_BAD_HANDLE

        public static final int CMERROR_BAD_HANDLE
        Error code 114: The given handle is invalid.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_HANDLE_TYPE

        public static final int CMERROR_WRONG_HANDLE_TYPE
        Error code 115: The given handle has the wrong type.
        See Also:
        Constant Field Values
      • CMERROR_UNDEFINED_SYSTEM_HANDLE

        public static final int CMERROR_UNDEFINED_SYSTEM_HANDLE
        Error code 116: The given handle specifies an undefined subsystem.
        See Also:
        Constant Field Values
      • CMERROR_NO_EVENT_OCCURRED

        public static final int CMERROR_NO_EVENT_OCCURRED
        Error code 117: There is no event set.
        See Also:
        Constant Field Values
      • CMERROR_CTCS_FAULT

        public static final int CMERROR_CTCS_FAULT
        Error code 118: The communication with the given Certified Time Server failed.
        See Also:
        Constant Field Values
      • CMERROR_UNKNOWN_OS

        public static final int CMERROR_UNKNOWN_OS
        Error code 119: The current operating system is unknown.
        See Also:
        Constant Field Values
      • CMERROR_NO_SECURITY_OBJECT

        public static final int CMERROR_NO_SECURITY_OBJECT
        Error code 120: There is no security DLL available.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_SECURITY_OBJECT

        public static final int CMERROR_WRONG_SECURITY_OBJECT
        Error code 121: The security DLL has the wrong type.
        See Also:
        Constant Field Values
      • CMERROR_NO_FSB_FUNCTIONALITY

        public static final int CMERROR_NO_FSB_FUNCTIONALITY
        Error code 122: CmDongle has no FSB functionality.
        See Also:
        Constant Field Values
      • CMERROR_NO_CTSB_FUNCTIONALITY

        public static final int CMERROR_NO_CTSB_FUNCTIONALITY
        Error code 123: CmDongle has no CTSB functionality.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_OEMID

        public static final int CMERROR_WRONG_OEMID
        Error code 124: CmDongle has not the right OEM ID to execute the command.
        See Also:
        Constant Field Values
      • CMERROR_SERVER_VERSION_TOO_OLD

        public static final int CMERROR_SERVER_VERSION_TOO_OLD
        Error code 125: The version of the connected CodeMeter-Server is too old.
        See Also:
        Constant Field Values
      • CMERROR_SUBSYSTEM_NOT_AVAILABLE

        public static final int CMERROR_SUBSYSTEM_NOT_AVAILABLE
        Deprecated.
        replaced with CMERROR_LIBRARY_NOT_FOUND.
        The required subsystem (i.e. library) is not available, Error 126).
        See Also:
        Constant Field Values
      • CMERROR_LIBRARY_NOT_FOUND

        public static final int CMERROR_LIBRARY_NOT_FOUND
        The required subsystem (i.e. library) is not available, Error 126).
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_176

        public static final int CMERROR_BOX_COMMUNICATION_176
        Internal box communication specific error codes
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_177

        public static final int CMERROR_BOX_COMMUNICATION_177
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_178

        public static final int CMERROR_BOX_COMMUNICATION_178
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_179

        public static final int CMERROR_BOX_COMMUNICATION_179
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_180

        public static final int CMERROR_BOX_COMMUNICATION_180
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_181

        public static final int CMERROR_BOX_COMMUNICATION_181
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_182

        public static final int CMERROR_BOX_COMMUNICATION_182
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_183

        public static final int CMERROR_BOX_COMMUNICATION_183
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_184

        public static final int CMERROR_BOX_COMMUNICATION_184
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_185

        public static final int CMERROR_BOX_COMMUNICATION_185
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_186

        public static final int CMERROR_BOX_COMMUNICATION_186
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_187

        public static final int CMERROR_BOX_COMMUNICATION_187
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_188

        public static final int CMERROR_BOX_COMMUNICATION_188
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_189

        public static final int CMERROR_BOX_COMMUNICATION_189
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_190

        public static final int CMERROR_BOX_COMMUNICATION_190
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_191

        public static final int CMERROR_BOX_COMMUNICATION_191
        See Also:
        Constant Field Values
      • CMERROR_I2C_TIMEOUT_REQUEST

        public static final int CMERROR_I2C_TIMEOUT_REQUEST
        Error code 192: CMERROR_I2C_TIMEOUT_REQUEST
        See Also:
        Constant Field Values
      • CMERROR_I2C_TIMEOUT_ANSWER

        public static final int CMERROR_I2C_TIMEOUT_ANSWER
        Error code 193: CMERROR_I2C_TIMEOUT_ANSWER
        See Also:
        Constant Field Values
      • CMERROR_INTERNAL_BAD_COMMUNICATION

        public static final int CMERROR_INTERNAL_BAD_COMMUNICATION
        Error code 194: The communication between CmContainer components is wrong.
        See Also:
        Constant Field Values
      • CMERROR_INTERNAL_INVALID_COMMAND

        public static final int CMERROR_INTERNAL_INVALID_COMMAND
        Error code 195: An invalid command is transferred between CmContainer components.
        See Also:
        Constant Field Values
      • CMERROR_I2C_PROTOCOL_VERSION

        public static final int CMERROR_I2C_PROTOCOL_VERSION
        Error code 196: CMERROR_I2C_PROTOCOL_VERSION
        See Also:
        Constant Field Values
      • CMERROR_I2C_COMMUNICATION

        public static final int CMERROR_I2C_COMMUNICATION
        Error code 197: Error is sent from USB controller to host if BlockStatus is 0xff or 0x00.
        See Also:
        Constant Field Values
      • CMERROR_I2C_REQUEST_CRC

        public static final int CMERROR_I2C_REQUEST_CRC
        Error code 198: Error is sent by codemeter chip.
        See Also:
        Constant Field Values
      • CMERROR_I2C_ANSWER_BEFORE_REQUEST

        public static final int CMERROR_I2C_ANSWER_BEFORE_REQUEST
        Error code 199: An answer request is received before a command request was sent before.
        See Also:
        Constant Field Values
      • CMERROR_ENTRY_NOT_FOUND

        public static final int CMERROR_ENTRY_NOT_FOUND
        Error code 200: CmContainer Entry not found.
        See Also:
        Constant Field Values
      • CMERROR_BOX_NOT_FOUND

        public static final int CMERROR_BOX_NOT_FOUND
        Error code 201: CmContainer not found.
        See Also:
        Constant Field Values
      • CMERROR_CRYPTION_FAILED

        public static final int CMERROR_CRYPTION_FAILED
        Error code 202: The en-/decryption of the sequence failed.
        See Also:
        Constant Field Values
      • CMERROR_CRC_VERIFY_FAILED

        public static final int CMERROR_CRC_VERIFY_FAILED
        Error code 203: The checksum verification failed.
        See Also:
        Constant Field Values
      • CMERROR_NO_ENABLING_EXISTS

        public static final int CMERROR_NO_ENABLING_EXISTS
        Error code 204: There is no EnableBlock available.
        See Also:
        Constant Field Values
      • CMERROR_NO_PIO_SET

        public static final int CMERROR_NO_PIO_SET
        Error code 205: No Product Item Option set for creating a creation sequence.
        See Also:
        Constant Field Values
      • CMERROR_FIRMKEY_TOO_SHORT

        public static final int CMERROR_FIRMKEY_TOO_SHORT
        Error code 206: The given Firm Key is too short.
        See Also:
        Constant Field Values
      • CMERROR_NO_BOXLOCK_NEEDED

        public static final int CMERROR_NO_BOXLOCK_NEEDED
        Error code 207: No CmContainer locking/unlocking needed.
        See Also:
        Constant Field Values
      • CMERROR_BOXLOCK_NOT_CHANGED

        public static final int CMERROR_BOXLOCK_NOT_CHANGED
        Error code 208: The CmContainer lock state is not changed.
        See Also:
        Constant Field Values
      • CMERROR_NO_DATA_AVAILABLE

        public static final int CMERROR_NO_DATA_AVAILABLE
        Error code 209: No dynamic data is available for the specified entry.
        See Also:
        Constant Field Values
      • CMERROR_SIGNEDLIST_FAILED

        public static final int CMERROR_SIGNEDLIST_FAILED
        Error code 210: The signed list cannot be created.
        See Also:
        Constant Field Values
      • CMERROR_VALIDATION_FAILED

        public static final int CMERROR_VALIDATION_FAILED
        Error code 211: The validation of the given sequence failed.
        See Also:
        Constant Field Values
      • CMERROR_NO_MORE_LICENSES

        public static final int CMERROR_NO_MORE_LICENSES
        Error code 212: The user maximum of the CodeMeter license is reached.
        See Also:
        Constant Field Values
      • CMERROR_EXCLUSIVE_MODE_CONFLICT

        public static final int CMERROR_EXCLUSIVE_MODE_CONFLICT
        Error code 213: An exclusive access conflicts with another exclusive access.
        See Also:
        Constant Field Values
      • CMERROR_RESERVEDFI_MISSED

        public static final int CMERROR_RESERVEDFI_MISSED
        Error code 214: No reserved FirmItem available.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_CONTENT

        public static final int CMERROR_WRONG_CONTENT
        Error code 215: The content of the CmContainer is not correct.
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATE_FAILED

        public static final int CMERROR_FIELDUPDATE_FAILED
        Error code 216: The calculation for Field Update Activation failed.
        See Also:
        Constant Field Values
      • CMERROR_LICENSEFILE_CREATION_FAILED

        public static final int CMERROR_LICENSEFILE_CREATION_FAILED
        Error code 217: The license file cannot be created.
        See Also:
        Constant Field Values
      • CMERROR_NO_LICENSE_AVAILABLE

        public static final int CMERROR_NO_LICENSE_AVAILABLE
        Error code 218: The license or the license file (CmFirm.wbc) is not available.
        See Also:
        Constant Field Values
      • CMERROR_CONTEXT_FILE_WRITING_FAILED

        public static final int CMERROR_CONTEXT_FILE_WRITING_FAILED
        Error code 219: The remote activation Context file could not be written.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_FILE_READING_FAILED

        public static final int CMERROR_UPDATE_FILE_READING_FAILED
        Error code 220: The remote activation Update file could not be read.
        See Also:
        Constant Field Values
      • CMERROR_NETINFO_FAILED

        public static final int CMERROR_NETINFO_FAILED
        Error code 221: No received data for the network license information is available.
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATE_RESET_FAILED

        public static final int CMERROR_FIELDUPDATE_RESET_FAILED
        Error code 222: An USB reset is required to finish the field update
        See Also:
        Constant Field Values
      • CMERROR_WRONG_ACCESS_MODE

        public static final int CMERROR_WRONG_ACCESS_MODE
        Error code 223: The used access mode conflicts with the set EncryptionCodeOption.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_BOX_VERSION

        public static final int CMERROR_WRONG_BOX_VERSION
        Error code 224: The CmDongle has the wrong Firmware version
        See Also:
        Constant Field Values
      • CMERROR_INVALID_LICENSE_PARAMETER

        public static final int CMERROR_INVALID_LICENSE_PARAMETER
        Error code 225: The CmContainer license is invalid.
        See Also:
        Constant Field Values
      • CMERROR_BORROW_LICENSE_FAILED

        public static final int CMERROR_BORROW_LICENSE_FAILED
        Error Code 226: An error during blocking a borrowing license has occurred.
        See Also:
        Constant Field Values
      • CMERROR_BORROW_LICENSE_ISENABLED

        public static final int CMERROR_BORROW_LICENSE_ISENABLED
        Error Code 227: the borrowed license on client side is still enabled.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_TOO_NEW

        public static final int CMERROR_UPDATE_TOO_NEW
        Error Code 228: Update could not be imported. A previous update is missing.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_TOO_OLD

        public static final int CMERROR_UPDATE_TOO_OLD
        Error Code 229: Update could not be imported. Contents of CmContainer is newer than update.
        See Also:
        Constant Field Values
      • CMERROR_SEVERAL_REASONS

        public static final int CMERROR_SEVERAL_REASONS
        Error Code 230: The command failed due to several reasons.
        See Also:
        Constant Field Values
      • CMERROR_ACCESS_DENIED

        public static final int CMERROR_ACCESS_DENIED
        Error Code 231: The access was denied.
        See Also:
        Constant Field Values
      • CMERROR_BORROW_TIMEDIFFTOOLARGE

        public static final int CMERROR_BORROW_TIMEDIFFTOOLARGE
        Error Code 232: The system time difference between client and server is too large.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_ABORTED

        public static final int CMERROR_UPDATE_ABORTED
        Error 234: Some remote update actions were skipped because an earlier step failed.
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_PENDING

        public static final int CMERROR_COMMAND_PENDING
        Error 235: Command still pending.
        See Also:
        Constant Field Values
      • CMERROR_INTERNAL

        public static final int CMERROR_INTERNAL
        Error code 254: Internal CmContainer error.
        See Also:
        Constant Field Values
      • CMERROR_UNKNOWN

        public static final int CMERROR_UNKNOWN
        Error code 255: Unknown CmContainer error.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_SUBSYSTEM_FAILED

        public static final int CMERROR_CMACT_SUBSYSTEM_FAILED
        Error Code 260: An internal error occurred (CodeMeterAct).
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_NOT_ACTIVATED

        public static final int CMERROR_CMACT_LICENSE_NOT_ACTIVATED
        Error 261: The CodeMeterAct license is not yet activated.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_ALREADY_ACTIVATED

        public static final int CMERROR_CMACT_LICENSE_ALREADY_ACTIVATED
        Error Code 262: The CodeMeterAct license is already activated
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_REACTIVATION_REQUIRED

        public static final int CMERROR_CMACT_LICENSE_REACTIVATION_REQUIRED
        Error Code 263: The CodeMeterAct license has to be activated again.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_INVALID

        public static final int CMERROR_CMACT_LICENSE_INVALID
        Error Code 264: The CodeMeterAct license is invalid.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_COMMAND_NOT_SUPPORTED

        public static final int CMERROR_CMACT_COMMAND_NOT_SUPPORTED
        Error Code 265: This command is invalid for CodeMeterAct licenses.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_ALREADY_EXISTS

        public static final int CMERROR_CMACT_LICENSE_ALREADY_EXISTS
        Error Code 266: A suitable CodeMeterAct license already exists.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_RUN_AS_SERVICE_REQUIRED

        public static final int CMERROR_CMACT_RUN_AS_SERVICE_REQUIRED
        Error Code 267: For CodeMeterAct the CodeMeter License Server has to be running as a service.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_BINDING_NOT_POSSIBLE

        public static final int CMERROR_CMACT_BINDING_NOT_POSSIBLE
        Error Code 268: CodeMeterAct can't bind the license to this machine because some property is missing.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_OPEN_FIRMITEM_TEMPLATE_FAILED

        public static final int CMERROR_CMACT_OPEN_FIRMITEM_TEMPLATE_FAILED
        Error Code 269: CodeMeterAct can't open the file containing the firm item template.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_OSVERSION_NOT_PERMITTED

        public static final int CMERROR_CMACT_OSVERSION_NOT_PERMITTED
        Error Code 270, it's not permitted to use this license with this operating system version.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_HOST_ID_NOT_AVAILABLE

        public static final int CMERROR_CMACT_HOST_ID_NOT_AVAILABLE
        Error Code 271: CodeMeterAct can't find the property needed for the binding.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_PLUGIN_MALFUNCTION

        public static final int CMERROR_CMACT_PLUGIN_MALFUNCTION
        Error Code 272: A severe error occurred in a plugin.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_VIRTUAL_MACHINE_NOT_ALLOWED

        public static final int CMERROR_CMACT_VIRTUAL_MACHINE_NOT_ALLOWED
        Error 273: It's not permitted to use this license in a virtual machine.
        See Also:
        Constant Field Values
      • CMERROR_INCOMPATIBLE_SYSTEM_SOFTWARE_FOUND

        public static final int CMERROR_INCOMPATIBLE_SYSTEM_SOFTWARE_FOUND
        Error 274: Some incompatible system software has been found, Error 274.
        See Also:
        Constant Field Values
      • CMERROR_ERRORTEXT_NOT_FOUND

        public static final int CMERROR_ERRORTEXT_NOT_FOUND
        Error code 300: The Error Text to the set Error Code is not available.
        See Also:
        Constant Field Values
      • CMERROR_SEND_PROTECTION_FAILED

        public static final int CMERROR_SEND_PROTECTION_FAILED
        Error code 301: The request to CodeMeter-Server cannot be encrypted.
        See Also:
        Constant Field Values
      • CMERROR_ANALYSING_DETECTED

        public static final int CMERROR_ANALYSING_DETECTED
        Error code 302: The en-/decryption of the communication failed.
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_EXECUTION_FAILED

        public static final int CMERROR_COMMAND_EXECUTION_FAILED
        Error code 303: The execution of the API Function failed.
        See Also:
        Constant Field Values
      • CMERROR_FUNCTION_NOT_IMPLEMENTED

        public static final int CMERROR_FUNCTION_NOT_IMPLEMENTED
        Error code 304: The API Function is not yet implemented.
        See Also:
        Constant Field Values
      • CMERROR_OBSOLETE_FUNCTION

        public static final int CMERROR_OBSOLETE_FUNCTION
        Error code 305: The API Function is not supported any more.
        See Also:
        Constant Field Values
      • CMERROR_FUNCTION_NOT_SUPPORTED

        public static final int CMERROR_FUNCTION_NOT_SUPPORTED
        The requested function is not supported, Error 306.
        See Also:
        Constant Field Values
      • CMERROR_BOX_INTEGRITY_ERROR

        public static final int CMERROR_BOX_INTEGRITY_ERROR
        The integrity check on CmDongle failed. This CmDongle is defect and has to be replaced, Error 730.
        See Also:
        Constant Field Values
      • CMERROR_BOX_INTEGRITY_WARNING

        public static final int CMERROR_BOX_INTEGRITY_WARNING
        The integrity check on CmDongle returned warnings. The CmDongle may become defect in the near future. It is recommended to replace this CmDongle, Error 731.
        See Also:
        Constant Field Values
      • CM_CHALLENGE_LEN

        public static final int CM_CHALLENGE_LEN
        (16) Global definition for the length of the challenge block in byte
        See Also:
        Constant Field Values
      • CM_BLOCK_SIZE

        public static final int CM_BLOCK_SIZE
        (16) Global definition for the length of the cipher block in byte
        See Also:
        Constant Field Values
      • CM_BLOCKCIPHER_KEY_LEN

        public static final int CM_BLOCKCIPHER_KEY_LEN
        (32) Global definition for the length of the cipher key in byte
        See Also:
        Constant Field Values
      • CM_DIGEST_LEN

        public static final int CM_DIGEST_LEN
        (32) Global definition for the length of the digest (i.e. SHA-256) in byte
        See Also:
        Constant Field Values
      • CM_IP_ADDRESS_LEN

        public static final int CM_IP_ADDRESS_LEN
        (8) Global definition for the length of the TCP/IP address in byte
        See Also:
        Constant Field Values
      • CM_PRIVATE_KEY_LEN

        public static final int CM_PRIVATE_KEY_LEN
        (32) Global definition for the length of the private cipher key in byte
        See Also:
        Constant Field Values
      • CM_PUBLIC_KEY_LEN

        public static final int CM_PUBLIC_KEY_LEN
        (64) Global definition for the length of the public cipher key in byte
        See Also:
        Constant Field Values
      • CM_SESSIONID_LEN

        public static final int CM_SESSIONID_LEN
        (8) Global definition for the session-id length in byte
        See Also:
        Constant Field Values
      • CM_TALKKEYINPUT_LEN

        public static final int CM_TALKKEYINPUT_LEN
        (80) Global definition for the length of the talk key in byte
        See Also:
        Constant Field Values
      • CM_TVB_LEN

        public static final int CM_TVB_LEN
        (16) Global definition for the length of the TVB in byte
        See Also:
        Constant Field Values
      • CM_RSA1024_KEY_LEN

        public static final int CM_RSA1024_KEY_LEN
        (128) Global definition for the length of the RSA key in byte
        See Also:
        Constant Field Values
      • CM_MAX_COMPANY_LEN

        public static final int CM_MAX_COMPANY_LEN
        (32) Global definition for the max. length of the company string in byte
        See Also:
        Constant Field Values
      • CM_MAX_STRING_LEN

        public static final int CM_MAX_STRING_LEN
        (256) Global definition for the max. length of strings in byte.
        See Also:
        Constant Field Values
      • CM_MAX_PASSWORD_LEN

        public static final int CM_MAX_PASSWORD_LEN
        (64) Global definition for the max. length of the mantra in byte
        See Also:
        Constant Field Values
      • CM_GF_FILEBASED

        public static final long CM_GF_FILEBASED
        (0x0000) Global definition flags used in CMBOXENTRY, CMBOXENTRY2, CMCRYPTSIM, CMPIOCK, CMTALKKEYINPUT_USER, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_BOXBASED

        public static final long CM_GF_BOXBASED
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SEC_MASK

        public static final long CM_GF_SEC_MASK
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_FI_RESERVED

        public static final long CM_GF_FI_RESERVED
        (0x8000) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_ADD_FIRMITEM

        public static final long CM_GF_ADD_FIRMITEM
        (0x0000) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_UPDATE_FIRMITEM

        public static final long CM_GF_UPDATE_FIRMITEM
        (0x0001) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_DELETE_FIRMITEM

        public static final long CM_GF_DELETE_FIRMITEM
        (0x0002) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_ADD_PRODUCTITEM

        public static final long CM_GF_ADD_PRODUCTITEM
        (0x0003) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_UPDATE_PRODUCTITEM

        public static final long CM_GF_UPDATE_PRODUCTITEM
        (0x0004) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_DELETE_PRODUCTITEM

        public static final long CM_GF_DELETE_PRODUCTITEM
        (0x0005) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXCONTROL

        public static final long CM_GF_SET_BOXCONTROL
        (0x0006) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXLOCK

        public static final long CM_GF_SET_BOXLOCK
        (0x0007) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SET_FIRMKEY

        public static final long CM_GF_SET_FIRMKEY
        (0x0008) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SET_USERKEY

        public static final long CM_GF_SET_USERKEY
        (0x0009) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_ADD_ENABLEBLOCK

        public static final long CM_GF_ADD_ENABLEBLOCK
        (0x000a) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_UPDATE_ENABLEBLOCK

        public static final long CM_GF_UPDATE_ENABLEBLOCK
        (0x000b) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_DELETE_ENABLEBLOCK

        public static final long CM_GF_DELETE_ENABLEBLOCK
        (0x000c) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_ATTACH_ENABLEBLOCK

        public static final long CM_GF_ATTACH_ENABLEBLOCK
        (0x000d) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_DETACH_ENABLEBLOCK

        public static final long CM_GF_DETACH_ENABLEBLOCK
        (0x000e) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SET_ENABLEBLOCK

        public static final long CM_GF_SET_ENABLEBLOCK
        (0x0011) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_ENABLEITEM

        public static final long CM_GF_ENABLEITEM
        (0x0012) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_DISABLEITEM

        public static final long CM_GF_DISABLEITEM
        (0x0013e) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_TEMPENABLEITEM

        public static final long CM_GF_TEMPENABLEITEM
        (0x0014) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXPASSWORD

        public static final long CM_GF_SET_BOXPASSWORD
        Deprecated.
        use CM_GF_SET_BOXPASSWORD2 instead
        (0x002f) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_CHANGE_BOXPASSWORD

        public static final long CM_GF_CHANGE_BOXPASSWORD
        (0x003f) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_RESET_BOXPASSWORD

        public static final long CM_GF_RESET_BOXPASSWORD
        (0x004f) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_UPDATECHECKOUT_BORROW

        public static final long CM_GF_UPDATECHECKOUT_BORROW
        (0x005f) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_CHANGE_BOXPASSWORD_M

        public static final long CM_GF_CHANGE_BOXPASSWORD_M
        Deprecated.
        For internal use only!
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXPASSWORD2

        public static final long CM_GF_SET_BOXPASSWORD2
        (0x006f) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SETUP_ACT_LICENSE

        public static final long CM_GF_SETUP_ACT_LICENSE
        (0x0011) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_ITEM_MASK

        public static final long CM_GF_ITEM_MASK
        (0x007f) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_PRODUCTCODE

        public static final long CM_GF_PRODUCTCODE
        (0x0001) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_FEATUREMAP

        public static final long CM_GF_FEATUREMAP
        (0x0002) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_EXPTIME

        public static final long CM_GF_EXPTIME
        (0x0004) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_ACTTIME

        public static final long CM_GF_ACTTIME
        (0x0008) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_UNITCOUNTER

        public static final long CM_GF_UNITCOUNTER
        (0x0010) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_PROTDATA

        public static final long CM_GF_PROTDATA
        (0x0020) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_EXTPROTDATA

        public static final long CM_GF_EXTPROTDATA
        (0x0040) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_HIDDENDATA

        public static final long CM_GF_HIDDENDATA
        (0x0080) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_SECRETDATA

        public static final long CM_GF_SECRETDATA
        (0x0100) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_USERDATA

        public static final long CM_GF_USERDATA
        (0x0200) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_TEXT

        public static final long CM_GF_TEXT
        (0x0400) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_USAGEPERIOD

        public static final long CM_GF_USAGEPERIOD
        (0x0800) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_LICENSEQUANTITY

        public static final long CM_GF_LICENSEQUANTITY
        (0x1000)Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_BORROWCLIENT

        public static final long CM_GF_BORROWCLIENT
        (0x2000) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_BORROWSERVER

        public static final long CM_GF_BORROWSERVER
        (0x4000) Global definition flags used - mflSetPios of CMBOXENTRY - mflCtrl of CMENTRYDATA - in musPioType of CMSECUREDATA - not used in CMBOXENTRY2, but most values are the same
        See Also:
        Constant Field Values
      • CM_GF_COLI

        public static final long CM_GF_COLI
        Customer Owned License Information (COLI) flag for CMBOXENTRY::setPios
        See Also:
        Constant Field Values
      • CM_GF_PIO_MASK

        public static final long CM_GF_PIO_MASK
        (0x0fff) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMTALKKEYINPUT_USER, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_DATA

        public static final long CM_GF_DATA
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_FUC

        public static final long CM_GF_FUC
        (0x0002) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SERIAL

        public static final long CM_GF_SERIAL
        (0x0004) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_VERSION1

        public static final long CM_VERSION1
        Deprecated.
        (0x00000000) Global definitions for the algorithm flag of the CM-Box used in class CMACCESS
        See Also:
        Constant Field Values
      • CM_ACCESS_USERLIMIT

        public static final long CM_ACCESS_USERLIMIT
        (0x00000000) Global definitions for the kind of access (used in CMACCESS)
        See Also:
        Constant Field Values
      • CM_ACCESS_NOUSERLIMIT

        public static final long CM_ACCESS_NOUSERLIMIT
        (0x00000100) Global definitions for the kind of access (used in CMACCESS)
        See Also:
        Constant Field Values
      • CM_ACCESS_EXCLUSIVE

        public static final long CM_ACCESS_EXCLUSIVE
        (0x00000200) Global definitions for the kind of access (used in CMACCESS)
        See Also:
        Constant Field Values
      • CM_ACCESS_STATIONSHARE

        public static final long CM_ACCESS_STATIONSHARE
        (0x00000300) Global definitions for the kind of access (used in CMACCESS)
        See Also:
        Constant Field Values
      • CM_ACCESS_CONVENIENT

        public static final long CM_ACCESS_CONVENIENT
        (0x00000400) Global definitions for the kind of access (used in CMACCESS)
        See Also:
        Constant Field Values
      • CM_ACCESS_STRUCTMASK

        public static final long CM_ACCESS_STRUCTMASK
        (0x00000700) Global definitions for the kind of access (used in CMACCESS)
        See Also:
        Constant Field Values
      • CM_ACCESS_FORCE

        public static final long CM_ACCESS_FORCE
        (0x00010000) Global definitions to do no validation check of the entry data (used in CMACCESS(
        See Also:
        Constant Field Values
      • CM_ACCESS_CHECK_FSB

        public static final long CM_ACCESS_CHECK_FSB
        (0x00020000) constant for searching a fitting FSB entry
        See Also:
        Constant Field Values
      • CM_ACCESS_CHECK_CTSB

        public static final long CM_ACCESS_CHECK_CTSB
        (0x00040000) constant for searching a fitting CTSB entry
        See Also:
        Constant Field Values
      • CM_ACCESS_SUBSYSTEM

        public static final long CM_ACCESS_SUBSYSTEM
        (0x00080000) allow normal subsystem access if no CM-Box is found
        See Also:
        Constant Field Values
      • CM_ACCESS_FIRMITEM

        public static final long CM_ACCESS_FIRMITEM
        (0x00100000) force FI access to prevent access to a FC:PC=x:0
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_ACCESS

        public static final long CM_ACCESS_BORROW_ACCESS
        flag access to borrow license
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_RELEASE

        public static final long CM_ACCESS_BORROW_RELEASE
        flag release to borrow license
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_VALIDATE

        public static final long CM_ACCESS_BORROW_VALIDATE
        flag check borrowed license
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_IGNORESTATE

        public static final long CM_ACCESS_BORROW_IGNORESTATE
        flag ignore entry state for release to borrow license
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ADDFI

        public static final long CM_FSBFEATURECODE_ADDFI
        (0x00000001) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEFI

        public static final long CM_FSBFEATURECODE_DELETEFI
        (0x00000002) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_UPDATEFI

        public static final long CM_FSBFEATURECODE_UPDATEFI
        (0x00000004) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ADDPI

        public static final long CM_FSBFEATURECODE_ADDPI
        (0x00000008) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEPI

        public static final long CM_FSBFEATURECODE_DELETEPI
        (0x00000010) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_UPDATEPI

        public static final long CM_FSBFEATURECODE_UPDATEPI
        (0x00000020) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ADDEB

        public static final long CM_FSBFEATURECODE_ADDEB
        (0x00000040) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEEB

        public static final long CM_FSBFEATURECODE_DELETEEB
        (0x00000080) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_UPDATEEB

        public static final long CM_FSBFEATURECODE_UPDATEEB
        (0x00000100) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ATTACHEB

        public static final long CM_FSBFEATURECODE_ATTACHEB
        (0x00000200) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_GETBOXTIMESIGN

        public static final long CM_FSBFEATURECODE_GETBOXTIMESIGN
        (0x00002000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEFISIGN

        public static final long CM_FSBFEATURECODE_DELETEFISIGN
        Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_LISTSIGN

        public static final long CM_FSBFEATURECODE_LISTSIGN
        (0x00008000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ENCRYPT

        public static final long CM_FSBFEATURECODE_ENCRYPT
        (0x00010000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_PRICEDEDUCT

        public static final long CM_FSBFEATURECODE_PRICEDEDUCT
        (0x00020000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CMACT_FSBFEATURECODE_SERIALNUMBERS

        public static final long CMACT_FSBFEATURECODE_SERIALNUMBERS
        (0x00040000) Feature Code for storing the CmAct serial numbers
        See Also:
        Constant Field Values
      • CM_AUTH_DIRECT

        public static final long CM_AUTH_DIRECT
        (0x00000000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_AUTH_EXTENDED

        public static final long CM_AUTH_EXTENDED
        (0x00010000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_AUTH_SERIAL

        public static final long CM_AUTH_SERIAL
        (0x00020000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_AUTH_AMMASK

        public static final long CM_AUTH_AMMASK
        (0x00030000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_CRYPT_AES

        public static final long CM_CRYPT_AES
        (0x00000000) Global definitions for the CmContainer encryption algorithms to be use
        See Also:
        Constant Field Values
      • CM_CRYPT_ECIES

        public static final long CM_CRYPT_ECIES
        (0x00000000) Global definitions for the CmContainer encryption algorithms
        See Also:
        Constant Field Values
      • CM_CRYPT_CHKCRC

        public static final long CM_CRYPT_CHKCRC
        flags for CRC calculation and checking
        See Also:
        Constant Field Values
      • CM_CRYPT_SASTATIONSHARE

        public static final long CM_CRYPT_SASTATIONSHARE
        See Also:
        Constant Field Values
      • CM_LICENSE_FILEBASEDCREATE

        public static final long CM_LICENSE_FILEBASEDCREATE
        See Also:
        Constant Field Values
      • CM_LICENSE_PUBLICFIRMKEY

        public static final long CM_LICENSE_PUBLICFIRMKEY
        See Also:
        Constant Field Values
      • CM_LICENSE_FSBUPDATEKEY

        public static final long CM_LICENSE_FSBUPDATEKEY
        See Also:
        Constant Field Values
      • CM_LICENSE_BOXBASEDFSB

        public static final long CM_LICENSE_BOXBASEDFSB
        See Also:
        Constant Field Values
      • CM_SYSTEM_PLATFORM_MASK

        public static final long CM_SYSTEM_PLATFORM_MASK
        See Also:
        Constant Field Values
      • CM_SYSTEM_VERSION_MASK

        public static final long CM_SYSTEM_VERSION_MASK
        See Also:
        Constant Field Values
      • CM_SYSTEM_INVALID_PLATFORM

        public static final long CM_SYSTEM_INVALID_PLATFORM
        See Also:
        Constant Field Values
      • CM_SYSTEM_LITTLE_ENDIAN

        public static final long CM_SYSTEM_LITTLE_ENDIAN
        See Also:
        Constant Field Values
      • CM_SYSTEM_ENDIAN_ORDER_MASK

        public static final long CM_SYSTEM_ENDIAN_ORDER_MASK
        See Also:
        Constant Field Values
      • CM_SYSTEM_RUNNING_IN_VM

        public static final long CM_SYSTEM_RUNNING_IN_VM
        See Also:
        Constant Field Values
      • CM_EBI_NODISABLETIME

        public static final long CM_EBI_NODISABLETIME
        constants for disableTime
        See Also:
        Constant Field Values
      • CM_EBI_SIMPLEPIN

        public static final long CM_EBI_SIMPLEPIN
        flags for mbType in CMENABLING_ENABLEBLOCKITEM
        See Also:
        Constant Field Values
      • CM_ELUE_LOCATE

        public static final long CM_ELUE_LOCATE
        flags for mbEnableLevel & mbDisableLevel in CMENABLING_ENABLELOOKUPENTRY
        See Also:
        Constant Field Values
      • CM_WU_DISABLED

        public static final long CM_WU_DISABLED
        flags for musCtrl in CMENABLING_WRITEUPDATE
        See Also:
        Constant Field Values
      • CM_CE_THRESHOLD_UNITCOUNTER

        public static final long CM_CE_THRESHOLD_UNITCOUNTER
        See Also:
        Constant Field Values
      • CM_CE_THRESHOLD_EXPDATE

        public static final long CM_CE_THRESHOLD_EXPDATE
        See Also:
        Constant Field Values
      • CM_CE_SERVER_TERMINATED

        public static final long CM_CE_SERVER_TERMINATED
        See Also:
        Constant Field Values
      • CM_CRYPT_STREAM

        public static final long CM_CRYPT_STREAM
        commands for indirect encryption
        See Also:
        Constant Field Values
      • CM_CRYPT_AES_ENC_CBC_DIRECT

        public static final long CM_CRYPT_AES_ENC_CBC_DIRECT
        See Also:
        Constant Field Values
      • CM_CRYPT_AES_DEC_CBC_DIRECT

        public static final long CM_CRYPT_AES_DEC_CBC_DIRECT
        See Also:
        Constant Field Values
      • CM_CRYPT_AUTOKEY

        public static final long CM_CRYPT_AUTOKEY
        This flag can be or ed with all upper commands for indirect encryption
        See Also:
        Constant Field Values
      • CM_GEI_INTERNALENTRYINFO

        public static final long CM_GEI_INTERNALENTRYINFO
        See Also:
        Constant Field Values
      • CM_GEI_ENABLEBLOCKITEMS

        public static final long CM_GEI_ENABLEBLOCKITEMS
        See Also:
        Constant Field Values
      • CM_GEI_ENABLELOOKUPITEMS_FI

        public static final long CM_GEI_ENABLELOOKUPITEMS_FI
        See Also:
        Constant Field Values
      • CM_GEI_ENABLELOOKUPITEMS_PI

        public static final long CM_GEI_ENABLELOOKUPITEMS_PI
        See Also:
        Constant Field Values
      • CM_GEI_NETINFO_CLUSTER

        public static final long CM_GEI_NETINFO_CLUSTER
        See Also:
        Constant Field Values
      • CM_GEI_NETINFO_USER_EXT

        public static final long CM_GEI_NETINFO_USER_EXT
        See Also:
        Constant Field Values
      • CM_GEI_ACT_LICENSE_INFO

        public static final long CM_GEI_ACT_LICENSE_INFO
        See Also:
        Constant Field Values
      • CM_GEI_ACT_LICENSE_INFO2

        public static final long CM_GEI_ACT_LICENSE_INFO2
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_LOWMEMORY

        public static final long CM_BOXSTATUS_LOWMEMORY
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_REMOVABLE

        public static final long CM_BOXSTATUS_REMOVABLE
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED

        public static final long CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_FEATURE_MASK

        public static final long CM_BOXSTATUS_FEATURE_MASK
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_ACTIVATE_BY_CODE

        public static final long CM_ACTSTATUS_ACTIVATE_BY_CODE
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_ACTIVATE_BY_FILE

        public static final long CM_ACTSTATUS_ACTIVATE_BY_FILE
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_PROGRAMMABLE

        public static final long CM_ACTSTATUS_PROGRAMMABLE
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_PSN_REQUIRED

        public static final long CM_ACTSTATUS_PSN_REQUIRED
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_VM_DETECTED

        public static final long CM_ACTSTATUS_VM_DETECTED
        CM_ACTSTATUS_VM_DETECTED has two meanings: When returned by CM_GEI_BOXSTATUS it's an error condition; when returned by CM_GF_ACT_GETFILEINFO, the file was created in a VM (which was permitted)
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_CMACT_MASK

        public static final long CM_BOXSTATUS_CMACT_MASK
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_TEMPENABLED

        public static final long CM_BOXSTATUS_TEMPENABLED
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_NOENABLEITEMS

        public static final long CM_BOXSTATUS_NOENABLEITEMS
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_AMBIGUOUS

        public static final long CM_BOXSTATUS_AMBIGUOUS
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_ISCMCLOUD

        public static final long CM_BOXSTATUS_ISCMCLOUD
        See Also:
        Constant Field Values
      • CM_GS_REMOTE_SERVERS_ONLY

        public static final long CM_GS_REMOTE_SERVERS_ONLY
        See Also:
        Constant Field Values
      • CM_GS_IPADDR_IPv6MAPPED

        public static final long CM_GS_IPADDR_IPv6MAPPED
        See Also:
        Constant Field Values
      • CM_GLET_ERRORTEXT

        public static final long CM_GLET_ERRORTEXT
        Deprecated.
        See Also:
        Constant Field Values
      • CM_CPIO_CHANGEDEPENDENCY

        public static final long CM_CPIO_CHANGEDEPENDENCY
        See Also:
        Constant Field Values
      • CM_CPIO_MAINTENANCEPERIOD

        public static final long CM_CPIO_MAINTENANCEPERIOD
        See Also:
        Constant Field Values
      • CM_CPIO_ADD

        public static final long CM_CPIO_ADD
        flags combined only with CM_CPIO_PRODUCTCODE
        See Also:
        Constant Field Values
      • CM_CPIO_DELETE_PIO

        public static final long CM_CPIO_DELETE_PIO
        flag combined with any CM_CPIO_...-flag
        See Also:
        Constant Field Values
      • CM_CPIO_TERMINATE

        public static final long CM_CPIO_TERMINATE
        flag combined with any CM_CPIO_...-flag but only called once altogether
        See Also:
        Constant Field Values
      • CM_PROG_MASTERPASSWORD

        public static final long CM_PROG_MASTERPASSWORD
        See Also:
        Constant Field Values
      • CM_RMT_OVERWRITE

        public static final long CM_RMT_OVERWRITE
        flags for Remote Programming
        See Also:
        Constant Field Values
      • CM_CPS_CODEMETER

        public static final int CM_CPS_CODEMETER
        flags for cps in all CMBORROWXXX structures
        See Also:
        Constant Field Values
      • CM_CRED_LICENSE_LOCATION_LOCAL

        public static final int CM_CRED_LICENSE_LOCATION_LOCAL
        See Also:
        Constant Field Values
      • CM_CRED_LICENSE_LOCATION_LAN

        public static final int CM_CRED_LICENSE_LOCATION_LAN
        See Also:
        Constant Field Values
      • CM_CRED_LICENSE_LOCATION_MASK

        public static final int CM_CRED_LICENSE_LOCATION_MASK
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_ENTRY

        public static final int CM_CRED_HANDLE_ACCESS_ENTRY
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_FI

        public static final int CM_CRED_HANDLE_ACCESS_FI
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_BOX

        public static final int CM_CRED_HANDLE_ACCESS_BOX
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_SUBSYSTEM

        public static final int CM_CRED_HANDLE_ACCESS_SUBSYSTEM
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_MASK

        public static final int CM_CRED_HANDLE_ACCESS_MASK
        See Also:
        Constant Field Values
      • CM_BE_PRODUCTCODE

        public static long CM_BE_PRODUCTCODE
      • CM_BE_FEATUREMAP

        public static long CM_BE_FEATUREMAP
      • CM_BE_EXPTIME

        public static long CM_BE_EXPTIME
      • CM_BE_ACTTIME

        public static long CM_BE_ACTTIME
      • CM_BE_UNITCOUNTER

        public static long CM_BE_UNITCOUNTER
      • CM_BE_PROTDATA

        public static long CM_BE_PROTDATA
      • CM_BE_EXTPROTDATA

        public static long CM_BE_EXTPROTDATA
      • CM_BE_HIDDENDATA

        public static long CM_BE_HIDDENDATA
      • CM_BE_SECRETDATA

        public static long CM_BE_SECRETDATA
      • CM_BE_USERDATA

        public static long CM_BE_USERDATA
      • CM_BE_TEXT

        public static long CM_BE_TEXT
      • CM_BE_USAGEPERIOD

        public static long CM_BE_USAGEPERIOD
      • CM_BE_LICENSEQUANTITY

        public static long CM_BE_LICENSEQUANTITY
      • CM_BE_BORROWCLIENT

        public static long CM_BE_BORROWCLIENT
      • CM_BE_BORROWSERVER

        public static long CM_BE_BORROWSERVER
      • CM_BE_COLI

        public static long CM_BE_COLI
      • CM_BE_MAINTENANCEPERIOD

        public static long CM_BE_MAINTENANCEPERIOD
      • CM_BE_PIO_MASK

        public static long CM_BE_PIO_MASK
      • CMFAS_CTL_CMD_MASK

        public static final long CMFAS_CTL_CMD_MASK
        4.0.) Remote Update Structures
        See Also:
        Constant Field Values
      • CMFAS_CTL_CMD_UPDATE_EXISTING

        public static final long CMFAS_CTL_CMD_UPDATE_EXISTING
        See Also:
        Constant Field Values
      • CMFAS_CTL_CMD_GET_COUNT

        public static final long CMFAS_CTL_CMD_GET_COUNT
        See Also:
        Constant Field Values
      • CMFAS_CTL_OPT_ABORT_ON_ERROR

        public static final long CMFAS_CTL_OPT_ABORT_ON_ERROR
        See Also:
        Constant Field Values
      • CMFAS_SELECT_MASK

        public static final long CMFAS_SELECT_MASK
        Flags for CMFAS::select
        See Also:
        Constant Field Values
      • CMFAS_SELECT_SERIALNUMBER

        public static final long CMFAS_SELECT_SERIALNUMBER
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_LICENSE

        public static final long CMFAS_ITEMTYPE_LICENSE
        Flags for CMFAS::itemType
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMACT_LICENSE

        public static final long CMFAS_ITEMTYPE_CMACT_LICENSE
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMHW_LICENSE

        public static final long CMFAS_ITEMTYPE_CMHW_LICENSE
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMCLOUD_LICENSE

        public static final long CMFAS_ITEMTYPE_CMCLOUD_LICENSE
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMFIRM_WBC

        public static final long CMFAS_ITEMTYPE_CMFIRM_WBC
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMACT_FI_TEMPLATE

        public static final long CMFAS_ITEMTYPE_CMACT_FI_TEMPLATE
        See Also:
        Constant Field Values
      • libIsInit

        protected static boolean libIsInit
      • CM_EC_PRODUCTITEM

        public static final long CM_EC_PRODUCTITEM
        Flags for mbItemType of CM_ENABLE_CONTEXT
        See Also:
        Constant Field Values
    • Constructor Detail

      • CodeMeter

        public CodeMeter()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        This is a default application which just prints the version number of the CodeMeter.jar to System.out. The version number is read from the MANIFEST.MF file. Additionally the version of the installed CodeMeter shared library / DLL is printed.
        Parameters:
        args - '-v' to display only the version info.
      • InitLib

        public static boolean InitLib()
      • LoadLibrary

        protected static void LoadLibrary()
      • cmAccess

        public static long cmAccess​(long jCtrl,
                                    CodeMeter.CMACCESS jAccess)

        CmAccess() opens the access to a SubSystem (SubSystem Access), to a CmContainer (Box Access), to a single Firm Item (FC, Firm Item Access) or a CmContainer entry (FC:PC, Entry Access) in a given subsystem. A detailed description of the Access Modes is available here.

        SubSystem Access is a superset of Box Access. Box Access is a superset of Firm Item Access. Firm Item Access is a superset of Entry Access. Anything that can be done with SubSystem Access can also be done with Box Access, but not vice versa!

        The subsystem can be the local computer (CmLocal) or a local area network system (CmLAN) which implies that a CodeMeter.exe server process must be started with a CmContainer connected on an other system in the network. The communication with the network subsystem is done using TCP and UDP. The desired subsystem and the search order can be set in the flCtrl flag.

        If a network access to another computer is performed it will be available until the access is closed with CmRelease(). If more than one connection between two instances should be required, CmAccess() will open only one connection which is the medium for all communication between the two clients.

        CmAccess() must be called before a call the returned handle is used. A standard constant for the local access does not exist.

        Parameters:
        jCtrl - specifies one of the following commands to set the wanted subsystems. Only one of these constants can be set.
        • CM_ACCESS_LOCAL only searches in CmLocal for a CmContainer with a matching entry.
        • CM_ACCESS_LAN only searches in CmLAN for a CmContainer with a matching entry.
        • CM_ACCESS_LOCAL_LAN searches CmLocal first for a CmContainer with a matching entry and after that in CmLAN if no CmContainer was found locally.
        • CM_ACCESS_LAN_LOCAL searches CmLAN first for a CmContainer with a matching entry and after that in CmLocal if no CmContainer was found in the network.
        jAccess - sets the needed data for the wanted access (see CMACCESS).
        Returns:
        The handle to the wanted CmContainer Entry or CmContainer in the wanted subsystem is returned. If no fitting CmContainer Entry or CmContainer is found then null is returned.
      • cmAccess2

        public static long cmAccess2​(long jCtrl,
                                     CodeMeter.CMACCESS2 jAccess2)
        cmAccess2() provides enhanced functionality to access a CmContainer by using the CMCREDENTIAL features. It is available from CodeMeter 3.30 and offers a user-defined timing to release licenses that were allocated locally or in the network. This release interval overwrites the default timing value CleanUpTimeOut of the CodeMeter profiling. The benefit is that the user cannot influence this timing anymore. Additionally the validity period of the handle returned by CmAccess2() can be determined. This feature can be used to limit the usage period of an application that allocates a license using CmAccess2(). The mapping of the licenses on a CodeMeter server can be simplified by giving an user-defined string or number (session-ID) that is displayed on the server once the license was allocated. cmAccess2() opens the access to a SubSystem (SubSystem Access), to a CmContainer (Box Access), to a single Firm Item (FC, Firm Item Access) or a CmContainer entry (FC:PC, Entry Access) in a given subsystem. A detailed description of the Access Modes is available here. SubSystem Access is a superset of Box Access. Box Access is a superset of Firm Item Access. Firm Item Access is a superset of Entry Access. Anything that can be done with SubSystem Access can also be done with Box Access, but not vice versa! The subsystem can be the local computer (CmLocal) or a local area network system (CmLAN) which implies that a CodeMeter runtime server process must be started with a CmContainer connected on an other system in the network. The communication with the network subsystem is done using TCP and UDP. The desired subsystem and the search order can be set in the ctrl flag. If a network access to another computer is performed it will be available until the access is closed with CmRelease(). If more than one connection between two instances should be required, CmAccess2() will open only one connection which is the medium for all communication between the two clients. A standard constant for the local access does not exist. CmAccess2() is supported from CodeMeter 3.30.
      • cmRelease

        public static int cmRelease​(long jHandle)
        CmRelease closes a handle opened by CmAccess and all related subsystem accesses. The driver will be cleaned up internally. Subsystem access will only be closed if there's no other handle/entry using it. This still open subsystem access will be closed from the last open handle to an entry using this subsystem when CmRelease is called for this handle.

        Remember:
        CodeMeter.exe handles the teamwork between two or more handles internally. It prevents a subsystem closing while another handle still uses it. The vice versa variant is also prevented.

        Parameters:
        jHandle - contains a handle opened by CmAccess.
        Returns:
        '1' is returned, if everything has went okay - '0', if not.
      • cmCrypt

        public static int cmCrypt​(long jHandle,
                                  long flCtrl,
                                  CodeMeter.CMCRYPT pcmCrypt,
                                  byte[] pvDest)
        CmCrypt encrypts or decrypts data with direct or indirect encryption (see Encryption Modes) via a CmContainer entry.
        Parameters:
        jHandle - contains a handle opened by CmAccess. Access Mode must be Entry Access to the Firm Code : Product Code entry used for en-/decryption.
        flCtrl - contains the encryption or decryption command. Following commands are supported:
        • CM_CRYPT_DIRECT_ENC executes the direct symmetric encryption via a CmContainer entry. The length of bytes to encrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_DIRECT_DEC executes the direct symmetric decryption via a CmContainer entry. The length of bytes to decrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_STREAM executes the indirect en-/decryption using a StreamCipher algorithm. The length of the sequence to en-/decrypt must be at least 1 byte. AutoKey Mode is not allowed here.
        • CM_CRYPT_AES_ENC_ECB executes the indirect encryption using the AES BlockCipher algorithm with ECB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_ECB executes the indirect decryption using the AES BlockCipher algorithm with ECB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CFB executes the indirect encryption using the AES BlockCipher algorithm with CFB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CFB executes the indirect decryption using the AES BlockCipher algorithm with CFB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CBC executes the indirect encryption using the AES BlockCipher algorithm with CBC. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CBC executes the indirect decryption using the AES BlockCipher algorithm with CBC. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        If no other option is set, Explicit Mode is used for indirect en-/decryption. To use AutoKey Mode the CM_CRYPT_AUTOKEY flag must be or'ed with the command of the indiect en-/decryption.
        pcmCrypt - sets some needed data for the en-/decryption process (see CMCRYPT).
        pvDest - contains the data to en-/decrypt.
        Returns:
        This method returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCryptSim

        public static int cmCryptSim​(long jHandle,
                                     long flCtrl,
                                     CodeMeter.CMCRYPTSIM pcmCryptSim,
                                     byte[] pvDest)
        CmCryptSim encrypts or decrypts data with direct or indirect encryption (see Encryption Modes) by using the Firm Security Box (FSB) entry of the wanted Firm Code.
        Parameters:
        jHandle - contains a handle opened by CmAccess. Access Mode must be Entry Access to the FSB entry of the wanted Firm Code. If the Firm Code is an evaluation Firm Code the access can be SubSystem Access. A fitting entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
        flCtrl - contains the encryption or decryption command. Following commands are supported:
        • CM_CRYPT_DIRECT_ENC executes the direct symmetric encryption via a CmContainer entry. The length of bytes to encrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_DIRECT_DEC executes the direct symmetric decryption via a CmContainer entry. The length of bytes to decrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_STREAM executes the indirect en-/decryption using a StreamCipher algorithm. The length of the sequence to en-/decrypt must be at least 1 byte. AutoKey Mode is not allowed here.
        • CM_CRYPT_AES_ENC_ECB executes the indirect encryption using the AES BlockCipher algorithm with ECB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_ECB executes the indirect decryption using the AES BlockCipher algorithm with ECB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CFB executes the indirect encryption using the AES BlockCipher algorithm with CFB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CFB executes the indirect decryption using the AES BlockCipher algorithm with CFB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CBC executes the indirect encryption using the AES BlockCipher algorithm with CBC. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CBC executes the indirect decryption using the AES BlockCipher algorithm with CBC. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        If no other option is set, Explicit Mode is used for indirect en-/decryption. To use AutoKey Mode the CM_CRYPT_AUTOKEY flag must be or'ed with the command of the indiect en-/decryption.
        pcmCryptSim - sets some needed data for the en-/decryption process (see CMCRYPTSIM).
        pvDest - contains the data to en-/decrypt.
        Returns:
        This method returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCrypt2

        public static int cmCrypt2​(long jHandle,
                                   long flCtrl,
                                   CodeMeter.CMCRYPT2 cmCrypt2,
                                   byte[] pvDest)
        Extended CmCrypt, requires Runtime > 4.20
      • cmCryptSim2

        public static int cmCryptSim2​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMCRYPTSIM2 cmCryptSim2,
                                      byte[] pvDest)
        Extended CmCryptSim, requires Runtime > 4.20
      • cmCryptEcies

        public static int cmCryptEcies​(byte[] pbPublicKey,
                                       byte[] pbData)
        CmCryptEcies encrypts a given sequence with the standard ECIES algorithm. This method is a helper function to use the complete CodeMeter API funtionality.
        Parameters:
        pbPublicKey - contains the public key of the other side.
        pbData - contains the data to encrypt.
        Returns:
        This method returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCalculatePioCoreKey

        public static int cmCalculatePioCoreKey​(long jHandle,
                                                CodeMeter.CMPIOCK pcmPioCK,
                                                byte[] pbPioCK)
        CmCalculatePioCoreKey calculates the Product Item Option Core Key (PIOCK) from the given data.

        Remark:
        This function is only for Licensor Site because a FSB is needed!

        Parameters:
        jHandle - contains a handle opened with CmAccess() (must be an Entry Access).
        pcmPioCK - contains a CMPIOCK structure containing the needed data for the PIOCK creation.
        pbPioCK - contains the length of the pbPioCK buffer.
        Returns:
        This method returns CM_BLOCK_SIZE (currently 16) if the creation of the PIOCK was successful. If an error occurred 0 is returned.
      • cmGetSecureData

        public static int cmGetSecureData​(long jHandle,
                                          CodeMeter.CMSECUREDATA pcmSecureData,
                                          CodeMeter.CMENTRYDATA pcmEntryData)
        CmGetSecureData reads encrypted Extended Protected Data or Hidden Data from a CmContainer entry. The parameter for the encryption are set in a CMSECUREDATA structure. The encrypted data is returned in a CMENTRYDATA structure. The retrieved encrypted data has to be decrypted individually.

        Remark:
        For Hidden Data, the Hidden Data Access Code (HDAC) must specified and match the stored value.

        Parameters:
        jHandle - contains a handle opened by CmAccess (must be Entry Access).
        pcmSecureData - contains a CMSECUREDATA structure setting the parameters for the data to be encrypted.
        pcmEntryData - contains a CMENTRYDATA receiving the encrypted data.
        Returns:
        The return value contains the number of bytes containing the plain data returned encryptedly in CMENTRYDATA::mabData. If an error occurred 0 is returned.
      • cmGetPioDataKey

        public static int cmGetPioDataKey​(byte[] pabPiodkDest,
                                          byte[] pabPioCk,
                                          byte[] pabPioEk)
        CmGetPioDataKey calculates the Product Item Option Data Key (PIODK) from the Product Item Option Encryption Key (PIOEK) and the Product Item Option Core Key (PIOCK).
        Parameters:
        pabPiodkDest - points to a memory block of 16 bytes which receives the calculated PIODK.
        pabPioCk - points to the input PIOCK.
        pabPioEk - points to the input PIOEK.
        Returns:
        Thos method return '1' if the calculation executed successfully - '0' if not.
      • cmDecryptPioData

        public static int cmDecryptPioData​(byte[] pabDest,
                                           byte[] pabPiodkDest)
        CmDecryptPioData decrypts a given encypted HiddenData sequence using the Product Item Option Data Key (PIODK).
        Parameters:
        pabDest - points to the data received by CmGetSecureData to be decrypted in this buffer.
        pabPiodkDest - points to the input Product Item Option Decryption Key (PIODK) controlling the decryption.
        Returns:
        This method return '1' if the decryption was successful - '0' if not.
      • cmAgreeTalkKey

        public static int cmAgreeTalkKey​(CodeMeter.CMBOXINFO pcmBoxInfo,
                                         CodeMeter.CMTALKKEYINPUT_LICENSOR pcmTalkKeyInputLicensor,
                                         CodeMeter.CMTALKKEY pcmTalkKey)
        Deprecated.
        since version 4.20
        CmAgreeTalkKey() generates a TalkKey with the given private and public key (see CmCreateTalkKeyInput()) from the Licensor Site on Licensor Site. This TalkKey is used to encrypt the communication in CM-Talk.
        Parameters:
        pcmBoxInfo - contains the CmContainer information of the User Site (see CMBOXINFO).
        pcmTalkKeyInputLicensor - contains the TalkKeyInput for the Licensor Site (see CMTALKKEYINPUT_LICENSOR).
        pcmTalkKey - returns the TalkKey for the Licensor Site.
        Returns:
        This method return '1' if the TalkKey is calculated successfully, '0' if not.
      • cmCreateTalkKeyInput

        public static int cmCreateTalkKeyInput​(long jHandle,
                                               long flCtrl,
                                               CodeMeter.CMTALKKEYINPUT_USER pcmTalkKeyInputUser,
                                               CodeMeter.CMTALKKEYINPUT_LICENSOR pcmTalkKeyInputLicensor)
        Deprecated.
        since version 4.20
        CmCreateTalkKeyInput creates the TalkKey Input for TalkKey generation on Licensor and User Site on Licensor Site. The TalkKey Input of the Licesnor Site is returned in a CMTALKKEYINPUT_LICENSOR On User Site a CMTALKKEYINPUT_USER is used. The TalkKey Input for the User Site is encrypted with the SerialKey of the User's CmContainer: only this CmContainer can decrypt and create the TalkKey using CmGetTalkKey(). The required security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available.

        This function is only for Licensor Site because a FSB is needed!

        Parameters:
        jHandle - contains a handle opened by CmAccess. The access mode must be Entry Access to a FSB Entry. The Handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
        flCtrl - contains one of the following commands:
        • CM_TK_FIRMKEY [TBA]
        • CM_TK_FIRMCOMMONKEY [TBA]
        • CM_TK_HIDDENDATA [TBA]
        • CM_TK_SECRETDATA [TBA]
        • <
        Returns:
        The return value contains the length of the generated TalkKeyInput for the User Site. Typically that's 80 bytes. If an error occurred 0 is returned.
      • cmGetTalkKey

        public static int cmGetTalkKey​(long jHandle,
                                       long flCtrl,
                                       CodeMeter.CMTALKKEYINPUT_USER pcmTalkKeyInput,
                                       CodeMeter.CMTALKKEY pcmTalkKey)
        Deprecated.
        since version 4.20
        CmGetTalkKey generates a TalkKey from the encrypted TalkKeyInput (see CmCreateTalkKeyInput) provided by the Licensor Site on User Site. This TalkKey is used to encrypt the CM-Talk communication.
        Parameters:
        jHandle - contains a handle opened by CmAccess. This access can be Box Access if FirmCommonKey Mode is used. In other cases it has to be Entry Access.
        flCtrl - contains one of the following commands:
        • CM_TK_FIRMKEY [TBA]
        • CM_TK_FIRMCOMMONKEY [TBA]
        • CM_TK_HIDDENDATA [TBA]
        • CM_TK_SECRETDATA [TBA]
        pcmTalkKeyInput - contains the encrypted TalkKeyInput from Licensor Site (see CMTALKKEYINPUT_USER).
        pcmTalkKey - returns the generated TalkKey for the User Site (see CMTALKKEY).
        Returns:
        The return value contains the length of the generated TalkKey for the User Site. Usually that's the size of the CMTALKKEY structure. If an error occurred 0 is returned.
      • cmCheckEvents

        public static int cmCheckEvents​(long flEvents)
        CmCheckEvents() waits until one of the set event flags occurs and returns the received event. This function should only be used in an own thread because it blocks an application until one of the checked events occurs. This function is implemented locally in WibuCm32.dll. Only events concerning the locally connected CmContainers or the locally started CodeMeter.exe can be checked. The events are triggered by CodeMeter.exe.
        Parameters:
        flEvents - contains the flags of the events requested to be checked during a the call of the function. The following event flags can be set:
        • CM_CE_BOXREMOVED checks if a CmContainer is removed from the local computer.
        • CM_CE_BOXREPLACED not implemented yet.
        • CM_CE_BOXADDED checks if a CmContainer is plugged in to the local computer.
        • CM_CE_NETWORKLOST checks if a network connection is lost.
        • CM_CE_NETWORKPEPLACED not implemented yet.
        • CM_CE_ENTRYMODIFIED checks if a CmContainer Entry is added, updated or deleted in a connected CmContainer.
        • CM_CE_THRESHOLD_UNITCOUNTER checks if a UnitCounter has crossed a limit and will reach 0 in one of the following operations it will reach 0.
        • CM_CE_THRESHOLD_EXPDATE checks if an Exiration Date will expire soon.
        • CM_CE_BOXENABLED checks if a CmContainer is currently enabled.
        • CM_CE_BOXDISABLED checks if a CmContainer is currently disabled.
        Returns:
        If one of the flags described is triggered the occurred event is returned. If an error is occurred 0 is returned.
      • cmGetBoxContents

        public static int cmGetBoxContents​(long jHandle,
                                           long flCtrl,
                                           long ulFirmCode,
                                           CodeMeter.CMBOXINFO cmBoxInfo,
                                           CodeMeter.CMBOXENTRY[] pcmBoxEntry)
        This function returns the entries of a CmContainer.

        Remarks:
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        jHandle - contains a handle opened by CmAccess (can be Box Access or Entry Access).
        flCtrl - contains one of the following entries:
        • CM_GBC_FI: All entries returned must match the Firm Item provided in ulFirmCode.
        • CM_GBC_BOX: All entries returned must match the CmContainer properties provided in pcmBoxInfo.
        • CM_GBC_ALLENTRIES: All entries of all connected boxes available at jHandle will be returned.
        The above flags can be or'ed with
        • CM_GBC_USELOCALTIME: Returns the time values using the local time zone instead of UTC.
        The flags CM_GBC_FI and CM_GBC_BOX can be combined. If the value of ulFirmCode or pcmBoxInfo is not relevant for the desired flag operation the value is ignored.
        ulFirmCode - contains the Firm Code of the Firm Item the returned entries should have (used with CM_GBC_FI flag).
        cmBoxInfo - contains the CmContainer information of the CmContainer the entries should be returned from (used with CM_GBC_BOX flag).
        pcmBoxEntry - contains an array of CMBOXENTRY structures.
        Returns:
        The number of found entries is returned. If the number is larger than cbBoxEntry, the array in pcmBoxEntry is too small. In this case only cbBoxEntry entries are stored in pcmBoxEntry. To get the rest call the function with the correct array length again. If the array is to small the error code CMERROR_BUFFER_OVERFLOW is set. If 0 is returned then no entry was found and error code CMERROR_NO_ENTRY_NOT_FOUND is set.
      • cmGetBoxes

        public static int cmGetBoxes​(long jHandle,
                                     long idPort,
                                     CodeMeter.CMBOXINFO[] pcmBoxInfo)
        CmGetBoxes returns all connected CmContainers of the given port.

        Remarks:
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        jHandle - contains the handle opened by CmAccess (must be Subsystem Access).
        idPort - contains one of the following commands:
        • CM_GB_ALLPORTS: All available ports will be scanned.
        • CM_GB_USB: USB ports will be scanned.
        • CM_GB_SIM: Simulated CmContainer ports will be returned.
        pcmBoxInfo - contains an array of CMBOXINFO structures.
        Returns:
        The number of found CmContainers is returned. If the size of pcmBoxInfo was too small, then in this case only some elements were stored in pcmBoxInfo. To get the remaining call the function with the correct array length again. If the array is to small error code CMERROR_BUFFER_OVERFLOW is set. If 0 is returned then no entry was found and error code CMERROR_BOX_NOT_FOUND is set.
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXCONTROL cmBoxControl)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXCONTROL fills CMBOXCONTROL structure specified in cmBoxControl.
        cmBoxControl - contains a CMBOXCONTROL object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXINFO cmBoxInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXINFO fills CMBOXINFO structure specified in cmBoxInfo.
        cmBoxInfo - contains a CMBOXINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXSECURITY cmBoxSecurity)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXSECURITY fills CMBOXSECURITY structure specified in cmBoxSecurity.
        cmBoxSecurity - contains a CMBOXSECURITY object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXTIME cmBoxTime)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXTIME fills CMBOXTIME structure specified in cmBoxTime.
        cmBoxTime - contains a CMBOXTIME object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXENTRY cmBoxEntry)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_ENTRYINFO fills CMBOXENTRY structure specified in cmBoxEntry.
        cmBoxEntry - contains a CMBOXENTRY object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMENTRYDATA[] cmEntryData)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_ENTRYDATA fills a CMENTRYDATA array specified in cmEntryData. If more than one item is available, an array with matching or larger size must be passed.
        cmEntryData - contains an array of CMENTRYDATA objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the real number of bytes returned in pvDest. If an error occurred the return value is 0. If cmEntryData does not contain enough entries, the number of required array elements will be returned. In this case the return value is larger than cmEntryData.length and the error code CMERROR_BUFFER_OVERFLOW is set.
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMINTERNALENTRYINFO[] cmInternalEntryInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_INTERNALENTRYINFO fills CMINTERNALENTRYINFO structure specified in cmInternalEntryInfo.
        cmInternalEntryInfo - contains a CMINTERNALENTRYINFO vector for storing the result. If this parameter is null, then only the number of entries is returned.
        Returns:
        Returns the number of found entries.
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMINTERNALENTRYINFO cmInternalEntryInfo)
        Deprecated.
        use cmGetInfo(long jHandle, long flCtrl, CodeMeter.CMINTERNALENTRYINFO [] cmInternalEntryInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        If more than on entry has been selected, this method fails.
        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_INTERNALENTRYINFO fills CMINTERNALENTRYINFO structure specified in cmInternalEntryInfo.
        cmInternalEntryInfo - contains an CMINTERNALENTRYINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMMEMINFO cmMemInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_MEMINFO fills a CMMEMINFO object specified in cmMemInfo.
        • CM_GEI_MEMINFO2 fills a CMMEMINFO2 object specified in cmMemInfo.
        cmMemInfo - contains an CMMEMINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMSYSTEM cmSystem)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_SYSTEM fills CMSYSTEM structure specified in cmSystem.
        cmSystem - contains a CMSYSTEM object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        byte[] signedList)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_SIGNEDLIST fills byte buffer with a signed list of an entry passed in signedList.
        signedList - contains a byte array for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXSTATUS jBoxStatus)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXSTATUS fills CMBOXSTATUS object.
        jBoxStatus - contains a CMBOXSTATUS object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMUSBCHIPINFO jUsbInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_USBCHIPINFO fills a CMUSBCHIPINFO object.
        jUsbInfo - contains a CMUSBCHIPINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMSIGNEDTIME cmSignedTime)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_SIGNEDTIME fills CMSIGNEDTIME object specified in cmSignedTime.
        cmSignedTime - contains a CMSIGNEDTIME object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMCHIPINFO cmChipInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXCONTROL fills CMBOXCONTROL structure specified in pvDest.
        • CM_GEI_BOXINFO fills CMBOXINFO structure specified in pvDest.
        • CM_GEI_BOXSECURITY fills CMBOXSECURITY structure specified in pvDest.
        • CM_GEI_BOXTIME fills CMBOXTIME structure specified in pvDest.
        • CM_GEI_ENTRYINFO fills CMBOXENTRY structure specified in pvDest.
        • CM_GEI_ENTRYDATA fills CMENTRYDATA structure specified in pvDest. If more than one item is available, an array with matching or larger size must be passed.
        • CM_GEI_INTERNALENTRYINFO fills CMINTERNALENTRYINFO structure specified in pvDest.
        • CM_GEI_MEMINFO fills CMMEMINFO structure specified in pvDest.
        • CM_GEI_SYSTEM fills CMSYSTEM structure specified in pvDest.
        • CM_GEI_SIGNEDLIST fills byte buffer with a signed list of an entry passed in pvDest.
        • CM_GEI_SIGNEDTIME fills CMSIGNEDTIME structure specified in pvDest.
        • CM_GEI_VERSION fills CMVERSION structure specified in pvDest.
        • CM_GEI_ENABLEBLOCKITEMS fills CMENABLING_ENABLEBLOCKITEM_LIST structure specified in pvDest. If more than one item is available, an array with matching or larger size must be passed.
        • CM_GEI_ENABLELOOKUPITEMS_FI fills CMENABLING_ENABLELOOKUPENTRY structure specified in pvDest. The Enable Lookup Items are stored in the FirmItem area of the access handle. If more than one item is available, an array with matching or larger size must be passed.
        • CM_GEI_ENABLELOOKUPITEMS_PI fills CMENABLING_ENABLELOOKUPENTRY structure specified in pvDest. The Enable Lookup Items are stored in the ProductItem area of the access handle. If more than one item is available, an array with matching or larger size must be passed.
        • CM_GEI_CHIPINFO fills CMCHIPINFO structure specified in pvDest.
        • CM_GEI_BOXSTATUS fills a 32 bit value with following status flags.
        cmChipInfo - contains a CMCHIPINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMNETINFOCLUSTER[] cmNetInfoCluster)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_NETINFO_CLUSTER fills an array of CMNETINFOCLUSTER structures specified in cmNetInfoCluster.
        cmNetInfoCluster - is an array of CMNETINFOCLUSTER objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the number of records available for cmNetInfoCluster.
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMNETINFOUSER[] cmNetInfoUser)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_NETINFO_USER fills CMNETINFOUSER structure specified in cmNetInfoUser.
        cmNetInfoUser - is an array of CMNETINFOUSER objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the number of records available for cmNetInfoUser
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMNETINFOUSER_EXT[] cmNetInfoUserExt)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_NETINFO_USER_EXT fills CMNETINFOUSER_EXT structure specified in cmNetInfoUserExt.
        cmNetInfoUserExt - is an array of CMNETINFOUSER_EXT objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the number of records available for cmNetInfoUser
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMCREDENTIAL cmCredential)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmContainers because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_CREDENTIAL fills the CMCREDENTIAL structure specified in cmCredential.
          cmCredential - contains a CMCREDENTIAL object for storing the result. This parameter must not be null!
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
        • cmGetLicenseInfo

          public static int cmGetLicenseInfo​(long jHandle,
                                             CodeMeter.CMLICENSEINFO[] pcmLicenseInfo)
          Returns all available licenses stored in a license file. This method returns all available licenses stored in a license file (CmLicensor/CmFirm.wbc) on Licensor Site. This method is implemented since version 4.20.
          Parameters:
          jHandle - contains the handle opened by by CmAccess (must be Subsystem Access).
          pcmLicenseInfo - contains pointer to an array of CMLICENSEINFO elements.
          Returns:
          The return value always contains the real number of licenses returned in pcmLicenseInfo. If the array in pcmLicenseInfo does not contain not enough elements, the number of available licenses will be returned. In this case the return value is larger than the cbNumberOfLicenses parameter and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmGetServers

          public static int cmGetServers​(long flCtrl,
                                         java.lang.StringBuffer servers)
          Searches the local network for running CodeMeter.exe processes having a CmContainer attached.

          CmGetServers searches the local network (CmLAN) for running CodeMeter.exe processes having a CmContainer attached. Processess without connected CmContainer are not returned because there is no demand for that. If a server search list exists all names of the list will be checked if a CodeMeter.exe process is running and a CmContainer is connected. If no server search list exits a UDP search in the local network will be performed.

          Remarks:
          The flags CM_GS_SINGLE and CM_GS_SINGLE_FIRST are implemented in the calling driver (on Windows: WibuCm32.dll) only.

          Parameters:
          flCtrl - contains one of two possible flags to return the server identity:
          • CM_GS_NAME returns the computers using their names in the lookup process.
          • CM_GS_IPADDR: returns the computers using their IP address in the lookup process.
          The found server list can be returned by two kinds of calling mechanisms:
          • CM_GS_LIST returns all found servers per functioncall. The computer names / IP addresses are separated by a "|".
          • CM_GS_SINGLE returns only one computer per function call. The next call will return the next computer stored internally. If no server is left in the list FALSE is returned and error code CM_ERROR_SERVER_NOT_FOUND is set. To restart the output at the first internally stored server the flag CM_GS_SINGLE_FIRST must be used.
          • CM_GS_SINGLE_FIRST: must be set at the first call to get a single computer. This flag sets the internal pointer to the beginning of the list. This flag must always be set before a call using CM_GS_SINGLE.
          servers - contains a output buffer.
          Returns:
          0=if an error occurred, or the number of stored network servers in 'servers'
        • cmGetVersion

          public static long cmGetVersion​(long jHandle)
          CmGetVersion returns the full version of the requested CodeMeter modules.

          CmGetVersion returns the full version of the requested CodeMeter modules.

          The return value of the version has the format:
          [((VERSION & 0xff) << 24) | ((SUBVERSION & 0xff) << 16) | (BUILD & 0xffff)]
          The itemized values are the Version, Subversion and Build.

          Parameters:
          jHandle - contains a handle opened by CmAccess (can be Box Access or Entry Access).
          Returns:
          Depends on jHandle, the version of the local/network calling driver is returned.
        • cmGetLastErrorCode

          public static int cmGetLastErrorCode()
          CmGetLastErrorCode returns the last set error code.

          CmGetLastErrorCode returns the last set error code. Every API function call sends a request from the calling driver (on Windows: WibuCm32.dll) directly to CodeMeter.exe. With the answer CodeMeter.exe always sends the last occurred error code back to the calling driver. At this location the error code is stored in a global variable declared as Thread Local Storage (TLS). CmGetLastErrorCode returns this variable. If a problem in the calling driver occurs, an error code is also set at this global variable. Because of using Thread Local Storage the calling driver is thread safe.

          Returns:
          The return value contains the error code set from the last called API function.
        • cmGetLastErrorText

          public static java.lang.String cmGetLastErrorText()
          Return the last occurred CodeMeter-API error as an error string.

          This method returns the error text of the last set error. The language of the text is returned in the current set system language or if this is not available in English.

          Returns:
          The last error text as String.
        • cmSetLastErrorCode

          public static void cmSetLastErrorCode​(int idError)
          CmSetLastErrorCode sets an error code into internal local buffer.

          CmSetLastErrorCode sets an error code into the intrenal global error code variable.

          Parameters:
          idError - specifies the error code to set.
        • cmReserveFirmItem

          public static boolean cmReserveFirmItem​(long jHandle,
                                                  long ulFirmCode,
                                                  CodeMeter.CMRESERVEFI pcmReserveFi)
          CmReserveFirmItem reserves a temporary Firm Item with a random Session ID and reserves additional memory in the CmContainer for subsequent Firm Item and Product Item programming operations.
          Parameters:
          jHandle - contains a handle opened by CmAccess. Can be Box Access or Entry Access.
          ulFirmCode - contains the Firm Code of the Firm Item to be programmed into the CmContainer.
          pcmReserveFi - receives the Firm Item# Reference to the reserved memory in the CmContainer and the Session ID to program a Firm Item.
          Returns:
          This method return 'true' if the memory was reserved in the CmContainer and the reserved Firm Item Reference and the Session ID were returned - 'false' if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMTIME pvPio)

          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.

          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          Returns:
          This method return 'true' if the entry was added to the security sequence - 'false' if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          long pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_PRODUCTCODE pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_PROTDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_EXTPROTDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_HIDDENDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_SECRETDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_USERDATA pvPio)

          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.

          Remarks:
          "1" if the entry was added to the security sequence - "0" if not.

          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          Returns:
          This method return 'true' if the entry was added to the security sequence - 'false' if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_TEXT pvPio)

          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.

          Remarks:
          "1" if the entry was added to the security sequence - "0" if not.

          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          Returns:
          This method return 'true' if the entry was added to the security sequence - 'false' if not.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_ADD_FIRMITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_DELETE_FIRMITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_ADD_PRODUCTITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_DELETE_PRODUCTITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_BOXLOCK pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_UPDATE_FIRMITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_ADD_FIRMITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_UPDATE_FIRMITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_DELETE_FIRMITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_ADD_PRODUCTITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_DELETE_PRODUCTITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_BOXCONTROL pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_BOXLOCK pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          byte[] pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_BOXPASSWORD pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ACTIVATE_FIELDUPDATE activates a Field Update. The input parameters are stored in a CMACTIVATE_FIELDUPDATE structure.
          • CM_GF_EXECUTE_FIELDUPDATE executes a Field Update. The firmware is stored in a byte array.
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmValidateEntry

          public static int cmValidateEntry​(long jHandle,
                                            long flCtrl,
                                            CodeMeter.CMBOXINFO pcmBoxInfo,
                                            CodeMeter.CMVALIDATE_DELETEFI pvValidate)
          CmValidateEntry validates a given sequence. This sequence can be a signature created by the deletion of a Firm Item or a signed list sequence.

          Remarks:
          The sequence to validate is usually created by CmProgram() or CmGetInfo()/CM_GEI_SIGNEDLIST.
          This function is for Licensor Site only because a FSB is required.

          Parameters:
          jHandle - contains a handle opened by CmAccess and must be Entry Access to a FSB Entry. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_VAL_SIGNEDLIST specifies that the passed sequence is a signed list.
          • CM_VAL_SIGNEDTIME specifies that the passed sequence is a CMSIGNEDTIME structure created by CmGetInfo()/CM_GEI_SIGNEDTIME.
          • CM_VAL_DELETE_FI specifies that the passed sequence is a CMVALIDATE_DELETEFI structure created by CmProgram()/CM_GF_DELETE_FIRMITEM.
          pcmBoxInfo - contains the CmContainer information of the User's CmContainer.
          pvValidate - contains the sequence to validate.
          Returns:
          The function returns '1' if the given sequence is valid and '0' if the sequence is invalid.
        • cmValidateEntry

          public static int cmValidateEntry​(long jHandle,
                                            long flCtrl,
                                            CodeMeter.CMBOXINFO pcmBoxInfo,
                                            CodeMeter.CMSIGNEDTIME pvValidate)
          CmValidateEntry validates a given sequence. This sequence can be a signature created by the deletion of a Firm Item or a signed list sequence.

          Remarks:
          The sequence to validate is usually created by CmProgram() or CmGetInfo()/CM_GEI_SIGNEDLIST.
          This function is for Licensor Site only because a FSB is required.

          Parameters:
          jHandle - contains a handle opened by CmAccess and must be Entry Access to a FSB Entry. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_VAL_SIGNEDLIST specifies that the passed sequence is a signed list.
          • CM_VAL_SIGNEDTIME specifies that the passed sequence is a CMSIGNEDTIME structure created by CmGetInfo()/CM_GEI_SIGNEDTIME.
          • CM_VAL_DELETE_FI specifies that the passed sequence is a CMVALIDATE_DELETEFI structure created by CmProgram()/CM_GF_DELETE_FIRMITEM.
          pcmBoxInfo - contains the CmContainer information of the User's CmContainer.
          pvValidate - contains the sequence to validate.
          Returns:
          The function returns '1' if the given sequence is valid and '0' if the sequence is invalid.
        • cmCreateLicenseFile

          public static int cmCreateLicenseFile​(long jHandle,
                                                CodeMeter.CMLICENSEINFO pcmLicenseInfo,
                                                byte[] pbFirmKey)
          This function is not yet implemented!
          Parameters:
          jHandle - contains a handle opened with CmAccess (can be a Box Access or an Entry Access).
          pcmLicenseInfo - [TBA]
          pbFirmKey - [TBA]
          Returns:
          0
        • cmGetRemoteContext

          public static int cmGetRemoteContext​(java.lang.String strRacFile,
                                               long flCtrl,
                                               long jHandle,
                                               long[] pulFirmCodes)
          Get compressed Remote Context file.

          CmGetRemoteContext stores the content of a box into an encrypted and compressed Remote Context file (RTC-file).

          Parameters:
          strRacFile - contains a filename of the WibuCmRaC file.
          flCtrl - contains one of the following flags:
          • CM_RMT_OVERWRITE overwrites the WibuCmRaC file if it already exists.
          • CM_RMT_APPEND appends the context data to the WibuCmRaC file if it already exists.
          jHandle - contains a handle to the CmContainer of which the context is to be stored (can be Box Access or Entry Access)
          pulFirmCodes - contains a array of Firm Codes to be stored
          Returns:
          Returns the number of Firm Items stored in the WibuCmRaC file.
        • cmSetRemoteUpdate

          public static int cmSetRemoteUpdate​(java.lang.String strRauFile,
                                              long jHandle)
          This method programs a CmContainer with a given RTU-file (Remote Update file). The RTU-file contains all information needed for programming an entry into a CmContainer in a save way. This method is not imlemented by the CodeMeter-Server now.
          Parameters:
          strRauFile - the RTU-File
          jHandle - contains a handle to the CmContainer of which the context is to be stored (can be Box Access or Entry Access)
          Returns:
          0
        • cmListRemoteUpdate

          public static int cmListRemoteUpdate​(byte[] pszRauFile,
                                               CodeMeter.CMSERIAL[] pcmSerials)
          Determines the serial numbers of all CmContainers listed in the WibuCmRaU file.

          CmListRemoteUpdate parses a WibuCmRaU file and determines the serial numbers of all CmContainers listed in this file.

          Parameters:
          pszRauFile - contains a pointer to the null-terminated filename of the WibuCmRaU file. Please note: The filename must given without the filename extention.
          pcmSerials - contains a object to an array of CMSERIAL objects which receives the result.
          Returns:
          Returns the number of found serial numbers in the WibuCmRaU file. If this number is equal or smaller than cbSerials, all found serial numbers are copied to the array at pcmSerials. If the number of found serial numbers is larger than the length of pcmSerials, then not all elements are copy into the answer object.
        • cmListRemoteUpdate

          public static int cmListRemoteUpdate​(java.lang.String strRauFile,
                                               CodeMeter.CMSERIAL[] pcmSerials)
          It is the same like cmListRemoteUpdate( byte [] pszRauFile, ...)
        • cmSetCertifiedTimeUpdate

          public static int cmSetCertifiedTimeUpdate​(long jHandle,
                                                     byte[] pszCtcsServer)
          This method gets the current certified time and date stamp (CTDS) from the given Certified Time Creation Server (CTCS) and sets it into the CmContainer.
          Parameters:
          jHandle - ontains a handle opened with CmAccess(). This access can be a Box Access. The CTDS of this CmContainer will be updated.
          pszCtcsServer - - contains the name or IP-Address of the CTCS the CTDS should be hold. This string can be null. In this case the name or IP-Address will be read out of the profiling.
          Returns:
          '1', if the time and date of the CmContainer is updated successfully - '0', if not.
        • cmCalculateDigest

          public static int cmCalculateDigest​(byte[] pbInput,
                                              byte[] pbDigest)
          This method calculates out of the given input sequence with a SHA-256 hash algorithm a 32 bit digest for later useage in a authentication process.
          Parameters:
          pbInput - - contains the buffer for the message to calculate the digest.
          pbDigest - - contains the buffer for the digest.
          Returns:
          The length of the returned signature is returned. If an error occurred 0 is returned and an error code is set. If pbDigest contains not enough memory, then the number of needed bytes will be returned. In this case the return value is greater than the cbDigest parameter and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCalculateSignature

          public static int cmCalculateSignature​(long jHandle,
                                                 CodeMeter.CMAUTHENTICATE pcmAuth,
                                                 byte[] pbSignature)
          CmCalculateSignature() calculates a signature using the ECDSA algorithm of the given digest (CMAUTHENTICATE::digest) directly via a CmContainer entry.
          Parameters:
          jHandle - contains a handle opened with CmAccess (can be a Box Access or an Entry Access).
          pcmAuth - contains all information needed for the authentication process (see CMAUTHENTICATE).
          pbSignature - contains the buffer for the signature and should have the length CM_PUBLIC_KEY_LEN (64 bytes)
          Returns:
          1 if the signature was calculated successful. If an error occurred 0 is returned and an error code is set.
        • cmGetPublicKey

          public static int cmGetPublicKey​(long jHandle,
                                           CodeMeter.CMAUTHENTICATE pcmAuth,
                                           byte[] pbPubKey)
          CmGetPublicKey returns a public key from the CmContainer. The CmContainer usually stores private keys only. With this request the CmContainer calculates the corresponding public key using Elliptic Curve Cryptography (ECC).
          Parameters:
          jHandle - - contains a handle opened with CmAccess()
          pcmAuth - - contains all information needed for the authentication process
          pbPubKey - - contains the buffer for the public key, needs to be of size >= CodeMeter.CM_PUBLIC_KEY_LEN bytes
          Returns:
          Returns 1, if the PublicKey is successfully returned. If an error occurred 0 is returned and an error code is set.
        • cmValidateSignature

          public static int cmValidateSignature​(CodeMeter.CMAUTHENTICATE pcmAuth,
                                                byte[] pbSignature,
                                                byte[] pbPubKey)
          CmValidateSignature validates a passed signature using the passed public key and the ECDSA algorithm.
          Parameters:
          pcmAuth - contains all information needed for the authentication process (see CMAUTHENTICATE).
          pbSignature - contains the buffer for the signature to validate.
          pbPubKey - contains the buffer for the public key needed for validation.
          Returns:
          The method returns '1' if the signature was validated successfully using the given public key, '0' if not.
        • cmGetPublicBoxKey

          public static boolean cmGetPublicBoxKey​(long jHandle,
                                                  byte[] pubBoxKey)
          Return the public box key of a preselected CmContainer

          If jHandle is a BoxAccess then this methode return the public box key of the CmContainer to this handle

          Parameters:
          jHandle - a BoxAccess to the CmContainer witch box key requested
          pubBoxKey - the public box key (return value)
          Returns:
          This methode return true if the box key was returned and the methode return false is some operation was failed.
        • cmGetPublicSerialKey

          public static boolean cmGetPublicSerialKey​(long jHandle,
                                                     byte[] pubSerialKey)
          Return the public serial key of a preselected CmContainer

          If jHandle is a BoxAccess then this methode return the public serial key of the CmContainer to this handle

          Parameters:
          jHandle - a BoxAccess to the CmContainer witch box key requested
          pubSerialKey - the public serail key (return value)
          Returns:
          This methode return true if the box key was returned and the methode return false is some operation was failed.
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMBORROWCLIENT cmBorrowClient)
          Retrieve information concerning the License Borrowing client
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_BORROWCLIENT fills CMBORROWCLIENT structure specified in cmBorrowClient.
          cmBorrowClient - contains a CMBORROWCLIENT object for storing the result.
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMBORROWDATA cmBorrowData)
          Retrieve information concerning the License Borrowing client
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_BORROWDATA fills CMBORROWDATA structure specified in cmBorrowData.
          cmBorrowData - contains a CMBORROWDATA object for storing the result.
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMBORROWITEM[] cmBorrowItems)
          Retrieve information concerning the License Borrowing client
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_BORROWITEMS fills CMBORROWITEM array specified in cmBorrowItems..
          cmBorrowItems - contains a CMBORROWITEM array for storing the result.
          Returns:
          Returns the number of available items. If an error occurred the return value is 0, the error can be retrieved using cmGetLastErrorCode();
        • cmGetRemoteContextBuffer

          public static int cmGetRemoteContextBuffer​(long jHandle,
                                                     long flCtrl,
                                                     long[] ulFirmCodes,
                                                     java.lang.StringBuffer context)
          This function operates as CmGetRemoteContext() but uses a specified memory buffer instead of a file pointer.
          Parameters:
          jHandle - contains a handle opened by CmAccess or by CmAccess2 (BoxAccess)
          flCtrl - reserved for future purposes
          ulFirmCodes - contains an array of Firm Codes to be stored, must not be null
          context - destination, must not be null
          Returns:
          the number of Firm Items stored in the context buffer, 0 on error.
        • cmSetRemoteUpdateBuffer

          public static boolean cmSetRemoteUpdateBuffer​(long jHandle,
                                                        long flCtrl,
                                                        java.lang.String update)
          This auxiliary function reserves memory for remote update programming. It operates as CmSetRemoteUpdate but uses a pre-allocated memory buffer instead of a file pointer.
          Parameters:
          jHandle -
          flCtrl -
          update -
          Returns:
          true if successful
        • cmBorrow

          public static boolean cmBorrow​(long jHandle,
                                         long flCtrl,
                                         java.lang.String server)
          Parameters:
          jHandle - open handle to the client entry
          flCtrl - control flag
          server - name of the license server
          Returns:
          true on success
        • cmRevalidateBox

          public static int cmRevalidateBox​(long hcmse,
                                            long flCtrl)
          Revalidation of box
          Parameters:
          hcmse - a box, firm item or entry access
          flCtrl - unused, set to 0
          Returns:
          0 on error
        • cmExecuteRemoteUpdate

          public static int cmExecuteRemoteUpdate​(long hcmSubSystem,
                                                  long ctrl,
                                                  byte[] pMemBuffer,
                                                  CodeMeter.CMFAS[] cmFasSelect,
                                                  CodeMeter.CMFAS[] cmFasResult,
                                                  CodeMeter.IntRef cbCmFasResultCount)
          Execute Remote Update
          Returns:
          0 on error
        • cmGetInfo

          public static boolean cmGetInfo​(long hcmse,
                                          long flCtrl,
                                          CodeMeter.CMBOXENTRY2 cmBoxEntry2)
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CM_ENABLE_CONTEXT[] enableContext)
          Parameters:
          jHandle -
          flCtrl -
          enableContext -
          Returns:
          the number of enabling contextes found, 0 on error
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_MAINTENANCEPERIOD cpioMp)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmDongle.
          flCtrl - contains one of the following commands:
          • CM_CPIO_MAINTENANCEPERIOD
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          cpioMp - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.