IGPM::GetBackupDir method (gpmgmt.h)

Creates and returns a GPMBackupDir object, which you can use to access the GPMBackup and GPMBackupCollection objects.

Syntax

HRESULT GetBackupDir(
  [in]  BSTR          bstrBackupDir,
  [out] IGPMBackupDir **pIGPMBackupDir
);

Parameters

[in] bstrBackupDir

Required. The name of the file system directory that contains the Group Policy object (GPO) backups. The directory must already exist.

[out] pIGPMBackupDir

Address of a pointer to the IGPMBackupDir interface.

Return value

C++

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

JScript

Returns a reference to a GPMBackupDir object.

VB

Returns a reference to a GPMBackupDir 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

IGPM

IGPMBackup

IGPMBackupCollection

IGPMBackupDir