CmGetVersion
Description
CmGetVersion returns the major and minor version and Build of the requested CodeMeter modules. The itemized values are the Version and Subversion. To extract the version macros can be used.
|
Triple Mode Redundancy-related information (TMR)
|
Syntax
unsigned long CMAPIENTRY CmGetVersion(HCMSysEntry hcmse)
Parameter
hcmse contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access). NULL is also a possible value.
Return
•hcmse == NULL: The version of the local calling driver (on Windows: WibuCm32.dll) is returned.
•hcmse == "Handle to an entry in the network": The version of the CodeMeter License Server running on the machine the handle is accessing.
The return value of the version has the format:
The itemized values are Version and Subversion. To extract the version macros for Version and Subversion can be used.
Notes
In CodeMeter Versions prior to 3.30 the return value also contained Build and Count. The itemized values in this older versions were Version, Subversion, Build and Count.
Syntax
public class CmVersion { public ushort Version; public ushort SubVersion; public ushort Build; public ushort Count; public ushort Year; public ushort Month; public ushort Day; public Version GetVersion() } |
Parameter
Version contains the major version of the CodeMeter module.
Subversion contains the minor version of the CodeMeter module.
Build contains the build number of the CodeMeter module.
Count contains the count of the CodeMeter module.
Year contains the year of creation of the CodeMeter module.
Month contains the month of creation of the CodeMeter module.
Day contains the day of creation of the CodeMeter module.
Return
Returns a string array with the found information.
Syntax
import cmapi
handle.CmGetVersion() -> int
Parameter
handle is the handle opened by CmAccess2 (can be Box Access or Entry Access).
Return
The version of the CodeMeter License Server running on the machine the handle is accessing..
Notes
In CodeMeter Versions prior to 3.30 the return value also contained Build and Count. The itemized values in this older versions were Version, Subversion, Build and Count.