FbwfSetCacheThreshold
5/10/2007
Specifies the amount of memory, in megabytes, that the FBWF may use for cache.
Syntax
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 Value
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. |
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, WEPOS.
Header: fbwfapi.h.
Link Library: fbwflib.lib.
See Also
Reference
FbwfEnableFilter
FbwfCacheThresholdNotification