FbwfCommitFile

Writes the cached file overlay to the physical disk file.

  ULONG FbwfCommitFile(
   PWCHAR volume,
   PWCHAR path
);

Parameters

  • volume
    [in] NULL terminated wide string containing the volume name
  • path
    [in] NULL terminated wide string containing the file or directory.

Return Values

This function may return the following:

Return value Description
NO_ERROR The operation completed successfully.
ERROR_FILE_NOT_FOUND The specified file is not currently 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 (e.g., CD-ROM).

Other errors set by file system if updating 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: Windows XP Embedded.
Header: fbwfapi.h.
Link Library: fbwflib.lib.

See Also

FBWF API | FbwfRestoreFile

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.