FbwfCommitFile (Standard 7 SP1)
7/8/2014
This function writes the cached file overlay to the physical disk file.
Syntax
ULONG FbwfCommitFile(
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.
Return Value
Return value |
Description |
---|---|
ERROR_SUCCESS |
The operation completed successfully. |
ERROR_FILE_NOT_FOUND |
The specified file is currently not being cached by the FBWF. |
ERROR_INVALID_DRIVE |
If the specified volume is valid, but does not exist or is not protected. |
ERROR_INVALID_FUNCTION |
If the parameter path refers to is a write-through file, a file which has been renamed, or a cached file which does not exist on the physical media. |
ERROR_INVALID_PARAMETER |
If the volume or path parameter is NULL. |
ERROR_WRITE_PROTECT |
If the volume is read-only. |
Other errors from file system driver |
If updating the configuration file fails. |
Remarks
This function is used to write the image of the file in the FBWF cache to disk. This does not stop write protection for the specified file.
Requirements
OS Versions: Standard 7
Header: Fbwfapi.h
Link Library: Fbwflib.lib