Export (0) Print
Expand All


IIS 6.0

The IMSAdminBase::EnumBackups method enumerates the metabase backups in a specified backup location, or in all backup locations. Repeated calls to this method, increasing dwMDEnumIndex from 0, will return information for each metabase backup in the backup location until HRESULT_FROM_WIN32 (HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS)) is returned.

HRESULT EnumBackups(
   LPWSTR pszMDBackupLocation,
   DWORD __RPC_FAR* pdwMDVersion,
   PFILETIME pftMDBackupTime,
   DWORD dwMDEnumIndex


On input, a buffer of length MD_BACKUP_MAX_LEN times sizeof(WChar) containing an empty string or a string of up to MD_BACKUP_MAX_LEN Unicode characters that identifies the backup location. If an empty string is input, the method will enumerate backups in all backup locations, returning the backup location in this parameter. If a backup location is specified on input, only backups in the specified backup location will be enumerated.


Receives the version number of the backup.


Receives the date and time of the backup, in Universal Time Coordinate (UTC), formerly GMT (Greenwich Mean Time).


Specifies the index number of the backup to be enumerated.

Returns an HRESULT that contains one of the following values, or any errors from the file system converted to HRESULT.




No more items to enumerate.


The method succeeded.

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iadmw.h; include iiscnfg.h.

© 2014 Microsoft