TBApiGetSyncErrors API Call



Returns the number of synchronisation errors reported by the specified device.


Device handle and Dword for returned sync error value.


0 = fail, 1 = OK.


A synchronisation error occurs when the format of the incoming data is not recognised. Communication errors and overflows will usually cause sync errors. Each loss of synchronisation can potentially record several sync errors as the driver attempts to recognise the subsequent data.


Visual C++ Declaration/example


BOOL TBAPI TBApiGetSyncErrors(HTBDEVICE aDeviceHandle, DWORD* errors);


Visual Basic Declaration/example


Public Declare Function TBApiGetSyncErrors Lib "TBapi" Alias "_DLL_TBApiGetSyncErrors@8" (ByVal aDeviceHandle As Byte, ByVal errors As Long) As Long