IFhConfigMgr::GetLocalPolicy method (fhcfg.h)

Retrieves the numeric parameter for a local policy for the File History feature.

Note

IFhConfigMgr is deprecated and may be altered or unavailable in future releases.

Syntax

HRESULT GetLocalPolicy(
  [in]  FH_LOCAL_POLICY_TYPE LocalPolicyType,
  [out] ULONGLONG            *PolicyValue
);

Parameters

[in] LocalPolicyType

Specifies the local policy.

[out] PolicyValue

Receives the value of the numeric parameter for the specified local policy.

Return value

S_OK on success, or an unsuccessful HRESULT value on failure. Possible unsuccessful HRESULT values include values defined in the FhErrors.h header file.

Remarks

Each local policy contains a numeric parameter that specifies how or when the File History feature backs up files and folders. See the FH_LOCAL_POLICY_TYPE enumeration for more information about the local policies that can be specified.

To set the numeric parameter value for a local policy, use the IFhConfigMgr::SetLocalPolicy method.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header fhcfg.h

See also

FH_LOCAL_POLICY_TYPE

FhConfigMgr

IFhConfigMgr

IFhConfigMgr::SetLocalPolicy