Compartilhar via


FbwfUnprotectVolume

Removes write protection on the specified volume.

  ULONG FbwfUnprotectVolume(
   PWCHAR 
  volume
  ,
   ULONG 
  removeExclusions

  }

Parameters

  • volume
    [in] NULL terminated wide string to 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 Values

This function may return the following:

Return value Description
NO_ERROR 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 If the parameter volume is NULL.

Remarks

This change will not take effect until the next session.

If removeExclusions is false, the FBWF will preserve 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: Windows XP Embedded.
Header: fbwfapi.h.
Link Library: fbwflib.lib.

See Also

FBWF API | FbwfEnableFilter | FbwfProtectVolume | FbwfGetVolumeList | FbwfIsVolumeProtected

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.