Share via


iTargetInfo::ExpandTargetPath 方法 (wcmconfig.h)

展開位置字串,以指出離線安裝位置。

語法

HRESULT ExpandTargetPath(
  [in]  BOOL        Offline,
  [in]  const WCHAR *Location,
  [out] BSTR        *ExpandedLocation
);

參數

[in] Offline

如果 安裝位置離線,則為True。

[in] Location

位置字串。

[out] ExpandedLocation

展開的位置目標路徑。

傳回值

這個方法會傳回 HRESULT 值。 S_OK 表示成功。 如果資源不足而無法將資訊傳回給使用者,這個方法可能會傳回 E_OUTOFMEMORY

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 wcmconfig.h
Dll SMIEngine.dll

另請參閱

ITargetInfo