Compartilhar via


FbwfProtectVolume

Enables write protection for a specified volume.

  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 Values

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.
Header: fbwfapi.h.
Link Library: fbwflib.lib.

See Also

FBWF API | FbwfEnableFilter | FbwfUnprotectVolume | FbwfGetVolumeList | FbwfIsVolumeProtected

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.