
TCR1000SDK–Rev.3.0.0 Page11
TCR1000_ApiDisableCallback
TheTCR1000_ApiDisableCallbackfunctiondisablesoneormoreofthecallbackhookscurrently
activeforthe
callbackfunctionofthecallingthread.
DWORDTCR1000_ApiDisableCallback(
DWORDcbToRemove//maskofcallbackhookstoremove
);
Parameters
cbToRemove
AnycombinationofcallbackhooksASYNC_xxx(definedinIntApiDefs.H)tobedisabledforthe
callback
functioninusebythecallingthread:
ASYNC_TIMESET Once/minuteinterrupt(second=30,frame=0)
ASYNC_PERSEC Once/secondinterrupt(second=0)
ASYNC_ENDTC Once/frameinterrupt(aftertimecodedata,beforesyncword)
ASYNC_STARTTC Once/frameinterrupt(beforetimecodedata,aftersyncword)
ASYNC_TIMELOSS Timecodelost
ASYNC_TIMEGAIN Timecoderegainedfromloststate
ReturnValues
Onsuccess,thenewcallbackhooksmask
Onfailure,ASYNC_MASK_ERROR
Remarks
Athreadmustdisableitscallbackfunctionbeforeterminating.
Eachthreadinaprocessmayhaveanactivecallbackfunctionbutnomorethanone.Allcallsto
TCR1000_ApiDisableCallbackareonbehalfofthecallingthread,notthecallingprocess.Disablinga
callbackhookdoesnotaffectthecallbackhooksofotherthreadsorotherprocesses.Call
TCR1000_ApiDisableCallbackwithcbToRemovesettoASYNC_ALLtodisablethecallbackfunctionfor
thecurrentthread.Whenallcallbackhookshavebeendisabledforacallbackfunctionthefunctionis
nolongercalledandisremovedfromtheAPI’sinternalcallbacktables.Seethesectionentitled
RelationshipofTCRInterruptstoTCRDLLAsynchronousNotificationforadditionalissuesregarding
theuseofthisfunction.
Comentários a estes Manuais