Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

91 lines
2.5 KiB

/////////////////////////////////////////////////////////////////////////////
//
// Copyright(C) Microsoft Corporation all rights reserved.
//
// Module: DoUpgrade.h
//
// Project: Windows 2000 IAS
//
// Description: Declaration of CDoNT4OrCleanUpgrade, CMigrateOrUpgradeWindowsDB
// and CUpgradeNT4
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _DOUPGRADE_H_FC532313_DB66_459d_B499_482834B55EC2
#define _DOUPGRADE_H_FC532313_DB66_459d_B499_482834B55EC2
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "globaltransaction.h"
#include "GlobalData.h"
#include "nocopy.h"
#include "datastore2.h"
/////////////////////////////////////////////////////////////////////////////
// CDoUpgrade
class CDoNT4OrCleanUpgrade : private NonCopyable
{
public:
CDoNT4OrCleanUpgrade():m_Utils(CUtils::Instance())
{
}
void Execute();
private:
CUtils& m_Utils;
};
//////////////////////////////////////////////////////////////////////////////
// class CMigrateOrUpgradeWindowsDB
//////////////////////////////////////////////////////////////////////////////
class CMigrateOrUpgradeWindowsDB
{
public:
CMigrateOrUpgradeWindowsDB(IAS_SHOW_TOKEN_LIST configType = CONFIG);
~CMigrateOrUpgradeWindowsDB();
void Execute();
private:
LONG GetVersionNumber();
CUtils& m_Utils;
CGlobalTransaction& m_GlobalTransaction;
CGlobalData m_GlobalData;
_bstr_t m_IASWhistlerPath;
_bstr_t m_IASOldPath;
HRESULT m_Outcome;
IAS_SHOW_TOKEN_LIST m_ConfigType;
};
//////////////////////////////////////////////////////////////////////////////
// class CUpgradeNT4
//////////////////////////////////////////////////////////////////////////////
class CUpgradeNT4
{
public:
CUpgradeNT4();
~CUpgradeNT4() throw();
void Execute();
private:
void FinishNewNT4Migration(LONG Result);
CUtils& m_Utils;
CGlobalTransaction& m_GlobalTransaction;
CGlobalData m_GlobalData;
HRESULT m_Outcome;
_bstr_t m_IASNT4Path;
_bstr_t m_IasMdbTemp;
_bstr_t m_Ias2MdbString;
_bstr_t m_DnaryMdbString;
_bstr_t m_AuthSrvMdbString;
_bstr_t m_IASWhistlerPath;
};
#endif //_DOUPGRADE_H_FC532313_DB66_459d_B499_482834B55EC2