IGPM2::GetBackupDirEx method

For a Group Policy object (GPO), the GetBackupDirEx method creates and returns a GPMBackupDirEx object, which you can use to access a GPMBackup or GPMBackupCollection object.

For a Starter Group Policy object, the GetBackupDirEx method creates and returns a GPMBackupDirEx object, which you can use to access a GPMStarterGPOBackup or GPMStarterGPOBackupCollection object.

Syntax

HRESULT GetBackupDirEx(
  BSTR            bstrBackupDir,
  GPMBackupType   backupDirType,
  IGPMBackupDirEx **ppIGPMBackupDirEx
);

Parameters

bstrBackupDir

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

backupDirType

Determines whether the back up is for a Starter Group Policy object or a Group Policy object.

ppIGPMBackupDirEx

Address of a pointer to the IGPMBackupDirEx interface.

Return Value

C++

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

JScript

Returns a reference to a GPMBackupDirEx object.

VB

Returns a reference to a GPMBackupDirEx object.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See Also

IGPM

IGPM2

IGPMBackup

IGPMBackupCollection

IGPMBackupDir

IGPMStarterGPOBackup

IGPMStarterGPOBackupCollection