Share via


Win32_EncryptableVolume 類別的 GetKeyProtectorFriendlyName 方法

Win32_EncryptableVolume類別的GetKeyProtectorFriendlyName方法會擷取用來識別指定金鑰保護裝置的顯示名稱。

語法

uint32 GetKeyProtectorFriendlyName(
  [in]  string VolumeKeyProtectorID,
  [out] string FriendlyName
);

參數

VolumeKeyProtectorID [in]

類型: 字串

用來管理加密磁片區金鑰保護裝置的唯一字串識別碼。

FriendlyName [out]

類型: 字串

字串,包含用來識別指定金鑰保護裝置的使用者指定名稱。

傳回值

類型: uint32

此方法會在失敗時傳回下列其中一個代碼或另一個錯誤碼。

傳回碼/值 描述
S_OK
0 (0x0)
此方法成功。
E_INVALIDARG
2147942487 (0x80070057)
VolumeKeyProtectorID參數不會參考有效的金鑰保護裝置。
FVE_E_NOT_ACTI加值稅ED
2150694920 (0x80310008)
磁碟區上未啟用 BitLocker。 新增金鑰保護裝置以啟用 BitLocker。

 

備註

Managed 物件格式 (MOF) 檔案包含 Windows Management Instrumentation (WMI) 類別的定義。 MOF 檔案不會安裝為 Windows SDK 的一部分。 當您使用 伺服器管理員 新增相關聯的角色時,它們會安裝在伺服器上。 如需 MOF 檔案的詳細資訊,請參閱 Managed 物件格式 (MOF)

規格需求

需求
最低支援的用戶端
Windows Vista Enterprise、Windows Vista Ultimate [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 [僅限傳統型應用程式]
命名空間
Root\CIMV2\Security\MicrosoftVolumeEncryption
MOF
Win32_encryptablevolume.mof

另請參閱

Win32_EncryptableVolume