IOfflineFilesPinInfo::IsPinnedForComputer method

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

Syntax


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

Parameters

pbPinnedForComputer [out]

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

pbInherit [out]

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.

Remarks

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.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

CscObj.h

DLL

CscSvc.dll;
CscObj.dll

See also

IOfflineFilesCache::Pin
IOfflineFilesPinInfo

 

 

Show: