Partager via


IMSAdminBase2::EnumHistory

The EnumHistory method restores the metabase from a backup file. The restoration requires the same password that was used to encrypt the backup file.

HRESULT EnumHistory(
      LPWSTR pszMDHistoryLocation,
      DWORD* pdwMDMajorVersion,
      DWORD* pdwMDMinorVersion,
      PFILETIME pftMDHistoryTime,
      DWORD dwMDEnumIndex
);

Parameters

  • pszMDHistoryLocation
    [in] [out] A string of up to 100 characters (ADMINDATA_MAX_NAME_LEN) that specifies the history files location. If an empty string is specified, all history locations will be searched.

  • pdwMDMajorVersion
    [out] The major version number of the enumerated history files.

  • pdwMDMinorVersion
    [out] The minor version number of the enumerated history files.

  • pftMDHistoryTime
    [out] Receives the date and time of the backup, in Coordinated Universal Time (UTC), formerly GMT (Greenwich Mean Time).

  • dwMDEnumIndex
    [in] Specifies the index of the backup to enumerate. Start the index at 0 and increment by 1 until MD_ERROR_DATA_NOT_FOUND is returned.

Requirements

Client: Requires or Windows XP Professional.

Server: Requires or Windows Server 2003.

Product: IIS

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