IOfflineFilesItem::GetParentItem method (cscobj.h)
Retrieves the IOfflineFilesItem interface for the parent of the item. This method can be called repeatedly to retrieve items at the top of the cache namespace.
Syntax
HRESULT GetParentItem(
[out] IOfflineFilesItem **ppItem
);
Parameters
[out] ppItem
Receives the address of the IOfflineFilesItem interface of the parent item.
Return value
Returns S_OK if successful, or an error value otherwise.
If the item is a server item, this function returns HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)
. Server items are at the top of the Offline Files cache namespace and do not have a parent item. The parent of a server item is the cache itself. This is represented by the fact that an instance of IOfflineFilesItem is also a container of server items.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | cscobj.h |
DLL | CscSvc.dll; CscObj.dll |