/* Opens the fieldbus adapter with the specified device ID.  */
static HRESULT IxxatVciLibFuncVciDeviceOpen(REFVCIID rVciid, PHANDLE phDevice)
/* Opens the fieldbus adapter with the specified device ID.  */
static HRESULT IxxatVciLibFuncVciDeviceOpen(REFVCIID rVciid, PHANDLE phDevice)
{
  HRESULT result = VCI_E_UNEXPECTED;
  assert(ixxatVciLibFuncVciDeviceOpenPtr != NULL);
  assert(ixxatVciDllHandle != NULL);
  if ((ixxatVciLibFuncVciDeviceOpenPtr != NULL) && (ixxatVciDllHandle != NULL))
  {
    result = ixxatVciLibFuncVciDeviceOpenPtr(rVciid, phDevice);
  }
  return result;
}