canGetNumberOfChannels

Syntax


#include <canlib.h>
canStatus canGetNumberOfChannels(int * channelCount);

Description

This function returns the number of available CAN channels in the computer. The virtual channels are included in this figure.

Input/Output Parameters

channelCount
A pointer to a DWORD which will receive the current number of channels.
Return Value

canOK (zero) if success
canERR_xxx (negative) if failure.

Related Topics

canGetChannelData

An example.