IGPM::GetBackupDir method

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

Syntax

HRESULT GetBackupDir(
  BSTR          bstrBackupDir,
  IGPMBackupDir **pIGPMBackupDir
);

Parameters

bstrBackupDir

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

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

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

See Also

IGPM

IGPMBackup

IGPMBackupCollection

IGPMBackupDir