/* Opens or creates a message channel for a CAN connection of a fieldbus adapter.  */
static HRESULT IxxatVciLibFuncCanChannelOpen(HANDLE hDevice, UINT32 dwCanNo, BOOL fExclusive, PHANDLE phCanChn)
/* Opens or creates a message channel for a CAN connection of a fieldbus adapter.  */
static HRESULT IxxatVciLibFuncCanChannelOpen(HANDLE hDevice, UINT32 dwCanNo, BOOL fExclusive, PHANDLE phCanChn)
{
  HRESULT result = VCI_E_UNEXPECTED;
  assert(ixxatVciLibFuncCanChannelOpenPtr != NULL);
  assert(ixxatVciDllHandle != NULL);
  if ((ixxatVciLibFuncCanChannelOpenPtr != NULL) && (ixxatVciDllHandle != NULL))
  {
    result = ixxatVciLibFuncCanChannelOpenPtr(hDevice, dwCanNo, fExclusive, phCanChn);
  }
  return result;
}