Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function commits all current level data in the overlay for a specific file to the protected volume.
**Note **Misuse of this function can corrupt the protected volume. The file to be committed must already exist on the protected volume, and cannot have changed in size or location. If any of these requirements are not met, using this function will corrupt the underlying volume. This function does not verify that it is safe to commit the specified file.
BOOL WINAPI EwfMgrCommitFile( IN HANDLE hDevice , IN LPWSTR lpFile );
If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. For extended error information, call GetLastError.
The file is immediately committed. This is supported only on RAM overlays and on NTFS or FAT file systems.
With NTFS, very small files do not have their own cluster, and cannot be committed. Those files will fail to commit with an error ERROR_HANDLE_EOF.
Additionally, this function should not be used on a file that is compressed by using compressed NTFS, because the file size and location are likely to change.
Last updated on Wednesday, October 18, 2006
© 2006 Microsoft Corporation. All rights reserved.
Please sign in to use this experience.
Sign in