ITransferSource::GetDefaultDestinationName method

Gets the default name for a Shell item.

Syntax


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

Parameters

psiSource [in]

Type: IShellItem*

A pointer to the IShellItem.

psiParentDest [in]

Type: IShellItem*

A pointer to the parent IShellItem of the destination target of the file operation.

ppszDestinationName [out]

Type: LPWSTR*

When the method returns, contains a pointer to a null-terminated, Unicode string containing the default name.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Gets the default name for a Shell item, if different than the item's parsing name.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Show: