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)