IFhConfigMgr::CreateDefaultConfiguration method (fhcfg.h)

Creates File History configuration files with default settings for the current user and loads them into an FhConfigMgr object.

Note

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

Syntax

HRESULT CreateDefaultConfiguration(
  [in] BOOL OverwriteIfExists
);

Parameters

[in] OverwriteIfExists

If File History configuration files already exist for the current user and this parameter is set to TRUE, those files are overwritten and all previous settings and policies are reset to default values.

If File History configuration files already exist for the current user and this parameter is set to FALSE, those files are not overwritten and an unsuccessful HRESULT value is returned.

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

This method or the LoadConfiguration method must be called before any other IFhConfigMgr method can be called.

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

FhConfigMgr

IFhConfigMgr

IFhConfigMgr::LoadConfiguration

IFhConfigMgr::SaveConfiguration