FbwfProtectVolume (Standard 7 SP1)
7/8/2014
This function enables write protection for a specified volume.
Syntax
ULONG FbwfProtectVolume(
LPCWSTR volume
);
Parameters
- volume
[in] Null-terminated wide string to contain the name of the volume on which write filtering will be enabled.
Return Value
This function may return the following:
Return value |
Description |
---|---|
ERROR_SUCCESS |
The operation completed successfully. |
ERROR_INVALID_DRIVE |
The specified volume name is valid, but does not exist. |
ERROR_INVALID_FUNCTION |
The filter is disabled for the next session. |
ERROR_INVALID_PARAMETER |
The parameter volume is NULL. |
Remarks
This change will not take effect until the next session.
The volume name can be either a drive letter or a device name.
The volume name can be either a drive letter (C, for example), or a device name (\\Device\Harddiskvolume, for example).
Requirements
OS Versions: Standard 7
Header: Fbwfapi.h
Link Library: Fbwflib.lib
See Also
Reference
FbwfEnableFilter
FbwfUnprotectVolume
FbwfGetVolumeList
FbwfIsVolumeProtected