ITransferSource::RemoveItem method (shobjidl_core.h)

Removes the item without moving the item to the Recycle Bin.

Syntax

HRESULT RemoveItem(
  [in] IShellItem            *psiSource,
  [in] TRANSFER_SOURCE_FLAGS flags
);

Parameters

[in] psiSource

Type: IShellItem*

A pointer to the IShellItem to be removed.

[in] flags

Type: TRANSFER_SOURCE_FLAGS

Flags that control the file operation. One or more of the TRANSFER_SOURCE_FLAGS constants.

Return value

Type: HRESULT

Returns one of the following, or an error code.

Return code Description
COPYENGINE_S_YES
User responded "Yes" to the dialog
COPYENGINE_S_USER_RETRY
User responded to retry the current action
COPYENGINE_S_USER_IGNORED
User responded "No" to the dialog.
COPYENGINE_S_MERGE
User responded to merge folders.
COPYENGINE_S_USER_RETRY_WITH_NEW_NAME
User responded to retry the file with new name.
COPYENGINE_S_DONT_PROCESS_CHILDREN
Child items should not be processed.
COPYENGINE_S_PENDING
Error has been queued and will display later.
COPYENGINE_E_USER_CANCELLED
User canceled the current action.
COPYENGINE_E_REQUIRES_ELEVATION
Operation requires elevated privileges.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)