DisableRouteCache Method

Disable the automatic routing of requests to local files.

Syntax

int DisableRouteCache(bool bInvalidateRoutedFiles);

Remarks

This method disables the automatic routing of requests to files in the directory specified by a previous call to EnableRouteCache (please refer to that method for more information about said request routing).

The InvalidateRoutedFiles parameter controls what happens to any handles currently open for files in the aforementioned directory; passing true will allow them to continue being used, while passing false will invalidate them immediately.

Note: This method cannot be called within events.

Error Handling

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Connect 2020 Qt Edition - Version 20.0 [Build 8348]