IGPMBackupDir::GetBackup method (gpmgmt.h)

Retrieves the GPMBackup object that has the specified backup ID (GUID). The backup ID is the ID of the backed-up GPO, not the ID of the GPO.

Syntax

HRESULT GetBackup(
  [in]  BSTR       bstrID,
  [out] IGPMBackup **ppBackup
);

Parameters

[in] bstrID

ID of the IGPMBackup object to open.

[out] ppBackup

Address of a pointer to the IGPMBackup interface for the specified ID.

Return value

C++

Returns S_OK if successful. Returns a failure code if an error occurs.

JScript

Returns a reference to a GPMBackup object.

VB

Returns a reference to a GPMBackup object.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See also

IGPMBackup

IGPMBackupCollection

IGPMBackupDir