FbwfSetCacheThreshold

FbwfSetCacheThreshold

Specifies the amount of memory, in megabytes, that the FBWF may use for cache.

ULONG FbwfSetCacheThreshold(
   ULONG   threshold,
);

Parameters

threshold
[in] Sets the amount of memory, in megabytes, that the FBWF may use for cache. This value may be no less than FBWF_MIN_CACHE_THRESHOLD and no greater than FBWF_MAX_CACHE_THRESHOLD.

Return Values

This function may return the following:

Return valueDescription
NO_ERRORThe operation completed successfully.
ERROR_INVALID_FUNCTIONIf the filter is not enabled for the next session.
ERROR_INVALID_PARAMETERIf the parameter threshold is less than the minimum cache threshold or greater than the maximum cache threshold imposed by the FBWF.

Other errors set by file system if updating configuration file fails

Remarks

This change will not take place until the next session.

By default the cache threshold is 64 megabytes.

Requirements

OS Versions: Windows XP Embedded.
Header: fbwfapi.h.
Link Library: fbwflib.lib.

See Also

FBWF API | FbwfEnableFilter | FbwfCacheThresholdNotification


© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2016 Microsoft