INameSpaceTreeControlEvents::OnBeforeItemDelete method (shobjidl.h)
Called before an IShellItem and all of its children are deleted.
HRESULT OnBeforeItemDelete( IShellItem *psi );
A pointer to the IShellItem that is to be deleted.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
If this method fails, the given IShellItem and its children are still deleted.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|