IParentAndItem::SetParentAndItem method (shobjidl_core.h)
Sets the parent of an item and the parent's child ID.
Syntax
HRESULT SetParentAndItem(
[in] PCIDLIST_ABSOLUTE pidlParent,
[in] IShellFolder *psf,
[in] PCUITEMID_CHILD pidlChild
);
Parameters
[in] pidlParent
Type: PCIDLIST_ABSOLUTE
A pointer of the parent.
[in] psf
Type: IShellFolder*
A pointer to the IShellFolder that is the parent.
[in] pidlChild
Type: PCUITEMID_CHILD
A PIDL that is a child relative to psf.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
While IParentAndItem is typically implemented on IShellItems, it is not specific to IShellItem.
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) |