Programmer's Guide
RaDeKL Radar API Programmer’s Guide 7
© Multispectral Solutions, Inc. 2006
RaDeKL_GetAPIVersion
Retrieve the version number of this API. The major version number is in the high-order word and the minor
version number is in the low-order word. See example for details of usage.
NOTE: The Version information returned by this function is the version of this API, not the version
of any radar unit attached. To obtain radar unit version information, use function
RaDeKL_GetDeviceInfo after the radar has been opened.
Format:
ULONG RaDeKL_GetAPIVersion ();
Parameters:
<none>
Return Value:
ULONG (32 bits) with the major version number in the high-order WORD (16 bits) and the minor
version number in the low-order WORD (16 bits).
Example:
Get and display the major and minor version numbers of this API.
ULONG version;
WORD major_version;
WORD minor_version;
version = RaDeKL_GetAPIVersion ();
major_version = (WORD)((version >> 16) & 0xFFFF);
minor_version = (WORD)(version & 0xFFFF);
printf (“This API is version %d.%d\n”, major_version, minor_version);