共用方式為


FbwfSetCacheThreshold (Standard 7 SP1)

7/8/2014

Deprecated. Use FbwfSetCacheThresholdEx instead.

This function specifies how much memory, in megabytes, the File-Based Write Filter (FBWF) may use for cache.

Syntax

ULONG FbwfSetCacheThreshold(
    ULONG threshold
);

Parameters

  • threshold
    [in] Sets the memory, in megabytes, the FBWF may use for cache.

    This value may be no less than FBWF_MIN_CACHE_THRESHOLD and no more than FBWF_MAX_CACHE_THRESHOLD.

Return Value

This function may return the following:

Return value

Description

ERROR_SUCCESS

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 more than the maximum cache threshold imposed by the FBWF.

Remarks

This change will not occur until the next session.

By default, the cache threshold is 128 megabytes for 32-bit systems and 256 megabytes in 64-bit systems.

Declared as FBWF_DEFAULT_CACHE_THRESHOLD in Fbwfapi.h.

Requirements

OS Versions: Standard 7

Header: Fbwfapi.h

Link Library: Fbwflib.lib

See Also

Reference

FbwfEnableFilter
FbwfCacheThresholdNotification

Concepts

FBWF API