IOfflineFilesPinInfo::IsPinnedForComputer method (cscobj.h)

Determines whether the item was pinned for all users on the computer by Group Policy.


HRESULT IsPinnedForComputer(
  [out] BOOL *pbPinnedForComputer,
  [out] BOOL *pbInherit


[out] pbPinnedForComputer

Receives TRUE if the item was pinned for users by Group Policy, or FALSE otherwise.

[out] pbInherit

Receives TRUE if the pinned state is inherited by new child items, or FALSE otherwise.

Return value

Returns S_OK if successful, or an error value otherwise.


When an item is pinned in the Offline Files cache, it is protected from automatic eviction and is guaranteed to be available offline.

This method corresponds to the OFFLINEFILES_PIN_CONTROL_FLAG_FORALL pin control flag used by the IOfflineFilesCache::Pin method.


Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header cscobj.h
DLL CscSvc.dll; CscObj.dll

See also