IOfflineFilesGhostInfo::IsGhosted method (cscobj.h)
Determines whether the item is ghosted.
Syntax
HRESULT IsGhosted(
[out] BOOL *pbGhosted
);
Parameters
[out] pbGhosted
Receives TRUE if the item is ghosted, or FALSE otherwise.
Return value
Returns S_OK if successful, or an error value otherwise.
Remarks
An item is said to be ghosted in the offline files cache if, when the item is offline, its name is visible to the user, but its contents are not accessible. A file or directory can be in this state for one of the following reasons:
- The item is pinned, which means that there is an entry for it in the cache. However, either the content has not yet been synchronized to the client, or it was removed from the client (due to loss of oplock or detection of stale data) when the client transitioned offline.
- The item has a sibling file or directory that is the root of a pinned namespace in the cache. When an item is pinned, its sibling items are ghosted so that the user can still see where the pinned item and its siblings are located in the online namespace even if the sibling items are not available offline.
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 |