IFileOperationProgressSink::PostMoveItem method

Performs caller-implemented actions after the move process for each item is complete.

Syntax


HRESULT PostMoveItem(
  [in]         DWORD      dwFlags,
  [in]         IShellItem *psiItem,
  [in]         IShellItem *psiDestinationFolder,
  [in, unique] LPCWSTR    pszNewName,
  [in]         HRESULT    hrMove,
  [in]         IShellItem *psiNewlyCreated
);

Parameters

dwFlags [in]

Type: DWORD

bitwise value that contains flags that were used during the move operation. Some values can be set or changed during the move operation. See TRANSFER_SOURCE_FLAGS for flag descriptions.

psiItem [in]

Type: IShellItem*

Pointer to an IShellItem that specifies the source item.

psiDestinationFolder [in]

Type: IShellItem*

Pointer to an IShellItem that specifies the destination folder that contains the moved item.

pszNewName [in]

Type: LPCWSTR

Pointer to the name that was given to the item after it was moved. This is a null-terminated Unicode string. Note that this might not be the name that you asked for, given collisions and other naming rules.

hrMove [in]

Type: HRESULT

The return value of the move operation. Note that this is not the HRESULT returned by MoveItem, which simply queues the move operation. Instead, this is the result of the actual move.

psiNewlyCreated [in]

Type: IShellItem*

Pointer to an IShellItem that represents the moved item in its new location.

Return value

Type: HRESULT

Returns S_OK if successful, or an error value otherwise. In the case of an error value, all subsequent operations pending from the call to IFileOperation are canceled.

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: