IFileOperationCopyItem Method

Declares a single item that is to be copied to a specified destination.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
HResult CopyItem(
	IShellItem psiItem,
	IShellItem psiDestinationFolder,
	string pszCopyName,
	IFileOperationProgressSink pfopsItem
)

Parameters

psiItem  IShellItem
Pointer to an IShellItem that specifies the source item.
psiDestinationFolder  IShellItem
Pointer to an IShellItem that specifies the destination folder to contain the copy of the item.
pszCopyName  String
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.

pfopsItem  IFileOperationProgressSink
Pointer to an IFileOperationProgressSink object to be used for progress status and error notifications for this specific copy operation.

If you call Advise(IFileOperationProgressSink, UInt32) for the overall operation, progress status and error notifications for the copy operation are included there, so set this parameter to NULL.

Return Value

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

See Also