TBApiUnregisterDataCallback API Call

 

Description

Removes the specified function from the list of registered callbacks.

Parameters

Callback function address.

Returns

0 = fail, 1 = OK.

Notes

All registered functions must be unregistered before a program terminates.

See also

TBApiRegisterDataCallback

Register data callback routine

 

TBApiUnregisterDataCallback

Unregister data callback routine

 

TBApiUnregisterDataCallbackContext

Unregister data callback routine context

 

Visual C++ Declaration/example

 

BOOL TBAPI TBApiUnregisterDataCallback(TB_DATA_CALL aFunc);

 

// Capture XY coordinates by registering callback function ‘CBFunc’

BOOL result;

HTBDEVICE dev = TBApiGetRelativeDevice(0);

result = TBApiRegisterDataCallback(dev,0,_ReadDataTypeXY,CBFunc);

...

…

…

result = TBApiUnregisterDataCallback(CBFunc);

 

Visual Basic Declaration/example

 

Public Declare Function TBApiUnregisterDataCallback Lib "TBapi" Alias "_DLL_TBApiUnregisterDataCallback@4" (ByVal FuncAddr As Long) As Long

 

' Capture XY coordinates by registering callback function 'CBFunc'

Dim dev As Byte

Dim result as Boolean

dev = TBApiGetRelativeDevice(0)

result = TBApiRegisterDataCallback(dev, 0, ReadDataTypeXY, AddressOf CBFunc)

…

…

…

result = TBApiUnregisterDataCallback(AddressOf CBFunc)