FbwfProtectVolume

5/10/2007

Enables write protection for a specified volume.

Syntax

ULONG FbwfProtectVolume(
   PWCHAR volume,
);

Parameters

  • volume
    [in] NULL terminated wide string to the name of the volume on which write filtering will be enabled.

Return Value

This function may return the following:

Return value Description

NO_ERROR

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: Windows XP Embedded, WEPOS.

Header: fbwfapi.h.

Link Library: fbwflib.lib.

See Also

Reference

FbwfEnableFilter
FbwfUnprotectVolume
FbwfGetVolumeList
FbwfIsVolumeProtected

Concepts

FBWF API