Performs caller-implemented actions before the copy process for each item begins.
HRESULT PreCopyItem( DWORD dwFlags, IShellItem *psiItem, IShellItem *psiDestinationFolder, LPCWSTR pszNewName );
bitwise value that contains flags that control the operation. See TRANSFER_SOURCE_FLAGS for flag descriptions.
Pointer to an IShellItem that specifies the source item.
Pointer to an IShellItem that specifies the destination folder to contain the copy of the item.
Pointer to a new name for the item after it has been copied. This is a null-terminated Unicode string and can be NULL. If NULL, the name of the destination item is the same as the source.
Returns S_OK if successful, or an error value otherwise. In the case of an error value, the copy operation and all subsequent operations pending from the call to IFileOperation are canceled.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|