Example #1
0
extern "C" int CanalReceive( long handle, PCANALMSG pCanalMsg  )
#endif
{
	CPeakObj *pdrvObj =  theApp->getDriverObject( handle );
	if ( NULL == pdrvObj ) return 0;
	return ( pdrvObj->readMsg( pCanalMsg ) ? CANAL_ERROR_SUCCESS : CANAL_ERROR_GENERIC );
}