IFhConfigMgr::GetDefaultTarget method (fhcfg.h)

Returns a pointer to an IFhTarget interface that can be used to query information about the currently assigned backup target.

Note

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

Syntax

HRESULT GetDefaultTarget(
  [out] IFhTarget **DefaultTarget
);

Parameters

[out] DefaultTarget

Receives a pointer to the IFhTarget interface of an object that represents the currently assigned default target, or NULL if there is no default target.

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

If no backup target is currently assigned, this method returns HRESULT_FROM_WIN32(ERROR_NOT_FOUND).

Requirements

   
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

IFhTarget