Compartilhar via


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 value Description
NO_ERROR The operation completed successfully.
ERROR_INVALID_FUNCTION If the filter is not enabled for the next session.
ERROR_INVALID_PARAMETER If 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

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.