Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates the scope of the preference associated with this setting.
Syntax
HRESULT GetPreferenceScope(
[out] DWORD *pdwScope
);
Parameters
[out] pdwScope
Receives the supported scope of the policy for this setting. This scope can be one or both of the following values.
OFFLINEFILES_SETTING_SCOPE_USER (0x00000001)
The setting supports per-user preference.
OFFLINEFILES_SETTING_SCOPE_COMPUTER (0x00000002)
The setting supports per-machine preference.
Return value
S_OK if the scope is returned successfully or an error value otherwise.
Remarks
Note that this is an indication of the supported scopes, not of the applied scopes. For example, a setting may recognize both per-user and per-machine preference yet only the per-user preference has been applied. In this scenario, this method would return both OFFLINEFILES_SETTING_SCOPE_USER and OFFLINEFILES_SETTING_SCOPE_COMPUTER.
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 |