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 (ERROR_NO_MORE_ITEMS) is returned.
HRESULT EnumBackups(
LPWSTR pszMDBackupLocation,
DWORD __RPC_FAR *pdwMDVersion,
PFILETIME pftMDBackupTime,
DWORD dwMDEnumIndex
);
Returns an HRESULT that contains one of the following values, or any errors from the file system converted to HRESULT.
Value | Description |
ERROR_INVALID_NAME | Specified name is invalid. |
ERROR_NO_MORE_ITEMS | No more items to enumerate. |
ERROR_NOT_ENOUGH_MEMORY | Insufficient memory to perform the operation. |
ERROR_SUCCESS | The method succeeded. |