TBApiGetSyncErrors API Call

 

Description

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

Parameters

Device handle and Dword for returned sync error value.

Returns

0 = fail, 1 = OK.

Notes

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