CallbackFilter.ResetTimeout method


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CallbackFilter     See also    


Resets timeout for current operation.


    function ResetTimeout(Timeout: DWORD) : boolean;

[C++ (Lib)]
    bool ResetTimeout(DWORD Timeout);

[C++ (VCL)]
    bool __fastcall ResetTimeout(unsigned Timeout);

[C++ (.NET)]
    bool ResetTimeout(UInt32 Timeout);

    bool ResetTimeout(UInt32 Timeout);

    Function ResetTimeout(ByVal Timeout As UInt32) As Boolean


  • Timeout - specifies the expected time for the current operation.

Return values

TRUE / true if the function succeeded or FALSE / false if the function failed.


This method may be called only from callbacks / event handlers. It is used to tell the CBFS Filter that request processing takes longer and processing of the callback may take time up to specified in Timeout parameter. Timeout timer is reset to 0 and counting of time to Timeout is started from 0.

Timeout is specified in milliseconds. The value of 0 (zero) means "callback will work as long as it needs". It's good idea to set timeout to 0 when you are debugging your callback functions. Remember to set timeout to some reasonable value (for example, 30 seconds) for release version.

See also