Compartilhar via


FbwfEnableCachePreAllocation (Standard 7 SP1)

7/8/2014

This function causes the File-Based Write Filter (FBWF) to allocate the whole cache size at the start of the next session instead of allocating memory as needed.

Syntax

ULONG FbwfEnableCachePreAllocation(VOID);

Parameters

None.

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.

Other errors from file system driver

If updating the configuration file fails.

Remarks

This change does not occur until the next session.

Requirements

OS Versions: Standard 7

Header: Fbwfapi.h

Link Library: Fbwflib.lib

See Also

Reference

FbwfEnableFilter
FbwfDisableCachePreAllocation
FbwfIsCachePreAllocationEnabled

Concepts

FBWF API