FbwfCommitFile (Windows Embedded Standard 2009)

4/23/2012

Writes the cached file overlay to the physical disk file.

Note

When FBWF is on, newly created directories cannot be created.

Syntax

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 Value

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 Embedded Standard, WEPOS.

Header: fbwfapi.h.

Link Library: fbwflib.lib.

See Also

Reference

FbwfRestoreFile

Concepts

FBWF API