DisableRouteCache Method

Disable the automatic routing of requests to local files.

Syntax

ANSI (Cross Platform)
int DisableRouteCache(int bInvalidateRoutedFiles);

Unicode (Windows)
INT DisableRouteCache(BOOL bInvalidateRoutedFiles);
#define MID_CBFS_DISABLEROUTECACHE 10

CBFSCONNECT_EXTERNAL int CBFSCONNECT_CALL CBFSConnect_CBFS_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

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 (C++)

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 C++ Edition - Version 20.0 [Build 8348]