Description
|
Removes the specified function
from the list of registered callbacks for the specified context only.
Callbacks for the specified function but with a different context remain
active. |
|
Parameters |
Callback
function address and context |
|
Returns |
0 = fail, 1 = OK. |
|
Notes |
All registered functions must
be unregistered before a program terminates. |
|
See also |
Register data callback routine |
|
|
Unregister data callback routine |
|
|
Unregister data callback routine context |
Visual C++ Declaration/example
BOOL TBAPI
TBApiUnregisterDataCallbackContext(TB_DATA_CALL aFunc, unsigned long aContext);
// Capture XY coordinates by registering callback function ‘CBFunc’
HTBDEVICE dev = TBApiGetRelativeDevice(0);
TBApiRegisterDataCallback(dev,0,_ReadDataTypeXY,CBFunc);
....
TBApiUnregisterDataCallbackContext(CBFunc,0);
Public Declare Function
TBApiUnregisterDataCallbackContext Lib "TBapi" Alias
"_DLL_TBApiUnregisterDataCallbackContext@8" (ByVal FuncAddr As Long,
ByVal aContext As Long) As Long
' Capture XY coordinates by
registering callback function 'CBFunc'
Dim dev As Byte
dev =
TBApiGetRelativeDevice(0)
TBApiRegisterDataCallback dev,
0, ReadDataTypeXY, AddressOf CBFunc
…
TBApiUnregisterDataCallbackContext
AddressOf CBFunc, 0