UWF _ Volume. SetBindByDriveLetterUWF_Volume.SetBindByDriveLetter

設定 BindByDriveLetter 屬性,此屬性會指出統一寫入篩選器 (UWF) 磁片區是否會依磁碟機號或磁片區名稱系結至實體磁片區。Sets the BindByDriveLetter property, which indicates if the Unified Write Filter (UWF) volume is bound to the physical volume by drive letter or volume name.

語法Syntax

UInt32 SetBindByDriveLetter(
    boolean bBindByDriveLetter
);

參數Parameters

bBindByDriveLetter 布林值,指出要使用的系結類型。bBindByDriveLetter A Boolean value that indicates the type of binding to use. BindByDriveLetter 屬性設定為此值。The BindByDriveLetter property is set to this value.

Value 描述Description

truetrue

將 UWF 磁片區系結到磁碟機號 (鬆散 系結) 。Binds the UWF volume by the drive letter (loose binding).

falsefalse

將 UWF 磁片區系結到 (緊密 系結) 的磁片區名稱。Binds the UWF volume by the volume name (tight binding).

傳回值Return Value

傳回 HRESULT 值,指出 wmi 狀態wmi 錯誤Returns an HRESULT value that indicates WMI status or a WMI error.

備註Remarks

依磁片區名稱的系結比依磁碟機號系結更可靠,因為如果新增或移除裝置,磁片磁碟機的磁碟機號可能會變更。Binding by volume name is considered more reliable than binding by drive letter, since drive letters can change for a volume if devices are added or removed.

需求Requirements

Windows 版本Windows Edition 支援Supported
Windows 10 HomeWindows 10 Home No
Windows 10 ProWindows 10 Pro No
Windows 10 EnterpriseWindows 10 Enterprise Yes
Windows 10 EducationWindows 10 Education Yes

UWF _ 磁片區UWF_Volume

統一寫入篩選器Unified Write Filter