IOfflineFilesSetting::GetValue method (cscobj.h)
Retrieves the value of a particular Offline Files setting.
HRESULT GetValue( VARIANT *pvarValue, BOOL *pbSetByPolicy );
Receives the value associated with the setting. This value is determined based on system policy, preferences and system defaults.
The method initializes the VARIANT prior to storing the setting value in it.
Receives TRUE if the value was set by policy, FALSE if the value was determined by preference or default.
S_OK if the value query is successful or an error value otherwise.
The value returned in the pvarValue parameter is determined as follows:
- If machine policy exists, use it.
- Otherwise, if user policy exists, use it.
- Otherwise, if machine preference exists, use it.
- Otherwise, if user preference exists, use it.
- Otherwise, use the system default value.
It is important to note that policy cannot be set through the Offline Files API. Policy can be set only through the Group Policy mechanism. The Offline Files API only supports querying policy values.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|