CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_ErrorCode CHAI_GetVersion ( CPUINT32 *const  pdwVersion,
CPCHAR8 const **const  ppVersionString 
)

Get the current CHAI and VNM versions.

Parameters
[out]pdwVersionPointer to a DWORD filled with versions : High word = VNM, Low word = CHAI Version format is 0xMmbb, M: major, m: minor, bb: build. Ascendant compatibility is not guaranteed between different major versions.
[out]ppVersionStringPointer to a string pointer filled with the version string.
Returns
Standard CHAILink Client return code. See CLC_ErrorCode enumeration.
Remarks
If succeeded, the string pointed to by *ppVersionString is valid until the next CHAILink call. The string must be copied in order to maintain it localy.
Warning
This function can only be called in CopperLan context. This means in the pseudo task CPDoProcess(), in notification handlers or in asynchronous return handlers and not in SystemDoProcess() for instance.