Partager via


UWF_Volume.CommitFileDeletion (Industry 8.1)

7/8/2014

Review the use, syntax, parameters, and return values of the UWF_Volume.CommitFileDeletion method for Windows Embedded 8.1 Industry (Industry 8.1).

This method deletes the specified file and commits the deletion to the physical volume.

Syntax

UInt32 CommitFileDeletion(
    string FileName
);

Parameters

  • FileName
    [in] A string that contains the path of the file to delete, but does not include the drive letter or volume name. For example: “\users\test.dat”.

Return Value

Returns an HRESULT value that indicates WMI status or a WMI error.

Remarks

The FileName must contain the name of a file that exists on the physical volume. The CommitFileDeletion method cannot delete a file that does not exist.

You must use an administrator account to call this method.

See Also

Reference

UWF_Volume

Concepts

Unified Write Filter