ITransferSource::GetDefaultDestinationName 方法 (shobjidl_core.h)

取得Shell專案的預設名稱。

語法

HRESULT GetDefaultDestinationName(
  [in]  IShellItem *psiSource,
  [in]  IShellItem *psiParentDest,
  [out] LPWSTR     *ppszDestinationName
);

參數

[in] psiSource

類型: IShellItem*

IShellItem 的指標。

[in] psiParentDest

類型: IShellItem*

檔案作業之目的地目標的父 IShellItem 指標。

[out] ppszDestinationName

類型: LPWSTR*

當方法傳回時,會包含以 Null 結尾的 Unicode 字串指標,其中包含預設名稱。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

如果與專案的剖析名稱不同,則取得Shell專案的預設名稱。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 shobjidl_core.h (包括 Shobjidl.h)