CallbackFilter

Instant control over file and folder operations in Windows and .NET applications

CallbackFilter.ResetTimeout method

Filter:

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

CallbackFilter     See also    

Overview

Resets timeout for current operation.

Declaration

[Pascal]
    function ResetTimeout(Timeout: DWORD) : boolean;

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

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

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

[C#]
    bool ResetTimeout(UInt32 Timeout);

[VB.NET]
    Function ResetTimeout(ByVal Timeout As UInt32) As Boolean

Parameters

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

Return values

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

Description

This method may be called only from callbacks / event handlers. It is used to tell the CallbackFilter 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

    

Back to top