canGetVersionEx

Syntax


#include <canlib.h>
unsigned int canGetVersionEx(unsigned int itemCode);

Description

This function returns various version numbers from the driver routines.

Input Parameters

itemCode
Specifies which version number to retrieve. See table below.
Output Parameters

None.

Return Values

The return value is desired version number. See table below.

itemCodeMeaning
canVERSION_CANLIB32_VERSION (0) Version number of the canlib32.dll file coded as an unsigned 16-bit word with the major version number in the upper byte and the minor version number in the lower byte. This version number is not related to the product version number of the whole CANLIB. For example, canlib32.dll belonging to CANLIB 2.27 would return 0x305.
canVERSION_CANLIB32_PRODVER (1) Product version number of canlib32.dll coded as an unsigned 16-bit word with the major version number in the upper byte and the minor version number in the lower byte. The product version number corresponds to the version number of the whole CANLIB. For example, canlib32.dll belonging to CANLIB 2.27 would return 0x21B.
canVERSION_CANLIB32_PRODVER32 (2) Product version number of canlib32.dll coded as an unsigned 32-bit word where the bytes contain (in order from the most significant to the least significant byte) 0, major version number, minor version number, and the minor version letter. (The minor version letter is the ASCII code for the letter, or 0 (zero) if no letter). For example, CANLIB 3.8 would return 0x00030800 and CANLIB 3.8a would return 0x00030861.
canVERSION_CANLIB32_BETA (3) Returns 1 if the present version is a beta (preview) release, or 0 if it is an official release.

Related Topics

canGetVersion
canProbeVersion