IFileOperationProgressSink::PostDeleteItem method (shobjidl_core.h)
Performs caller-implemented actions after the delete process for each item is complete.
Syntax
HRESULT PostDeleteItem(
[in] DWORD dwFlags,
[in] IShellItem *psiItem,
[in] HRESULT hrDelete,
[in] IShellItem *psiNewlyCreated
);
Parameters
[in] dwFlags
Type: DWORD
bitwise value that contains flags that were used during the delete operation. Some values can be set or changed during the delete operation. See TRANSFER_SOURCE_FLAGS for flag descriptions.
[in] psiItem
Type: IShellItem*
Pointer to an IShellItem that specifies the item that was deleted.
[in] hrDelete
Type: HRESULT
The return value of the delete operation. Note that this is not the HRESULT returned by DeleteItem, which simply queues the delete operation. Instead, this is the result of the actual deletion.
[in] psiNewlyCreated
Type: IShellItem*
A pointer to an IShellItem that specifies the deleted item, now in the Recycle Bin. If the item was fully deleted, this value is NULL.
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
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) |