FbwfUnprotectVolume (Standard 7 SP1)
7/8/2014
This function removes write protection on the specified volume.
Syntax
ULONG FbwfUnprotectVolume(
LPCWSTR volume,
ULONG removeExclusions
);
Parameters
- volume
[in] Null-terminated wide string to contain the name of the volume on which write filtering will be removed.
- removeExclusions
[in] Boolean value. If true, the exclusion list for this volume will be cleared.
Return Value
Return value |
Description |
---|---|
ERROR_SUCCESS |
The operation completed successfully. |
ERROR_INVALID_DRIVE |
The specified volume is valid but does not exist or is not protected. |
ERROR_INVALID_FUNCTION |
The filter is not enabled for the next session. |
ERROR_INVALID_PARAMETER |
The parameter volume is NULL. |
Remarks
This change does not take effect until the next session.
If removeExclusions is false, the FBWF preserves the exclusion list for the specified volume. If FbwfProtectVolume is later called for the same volume, the same exclusion list will be in effect.
Requirements
OS Versions: Standard 7
Header: Fbwfapi.h
Link Library: Fbwflib.lib
See Also
Reference
FbwfEnableFilter
FbwfProtectVolume
FbwfGetVolumeList
FbwfIsVolumeProtected