FbwfAddExclusion (Standard 7 SP1)
7/8/2014
This function adds a file or directory to the file exclusion list.
Syntax
ULONG FbwfAddExclusion(
LPCWSTR volume,
LPCWSTR path
);
Parameters
- volume
[in] Null-terminated wide string that contains the volume name.
- path
[in] Null-terminated wide string that contains the file or directory to be excluded.
Return Value
This function may return the following:
Return value |
Description |
---|---|
ERROR_SUCCESS |
The operation completed successfully. |
ERROR_INVALID_DRIVE |
If the specified volume is valid, but does not exist or is not protected. |
ERROR_INVALID_FUNCTION |
If the filter is not enabled for the next session. |
ERROR_INVALID_PARAMETER |
If the volume or path parameter is NULL. |
Remarks
This change does not take effect until the next session.
The File-Based Write Filter (FBWF) maintains a list of files and directories within a protected volume that the application has specifically excluded from FBWF protection. This list is called the "file exclusion list." The files and directories in this list are "write-through," meaning no filtering or caching occurs.
Requirements
OS Versions: Standard 7
Header: Fbwfapi.h
Link Library: Fbwflib.lib
See Also
Reference
FbwfEnableFilter
FbwfRemoveExclusion
FbwfGetExclusionList