install.h
来自「XOSL 多操作系统管理工具 源代码 多系统引导工具」· C头文件 代码 · 共 76 行
H
76 行
/*
* Extended Operating System Loader (XOSL)
* Copyright (c) 1999 by Geurt Vos
*
* This code is distributed under GNU General Public License (GPL)
*
* The full text of the license can be found in the GPL.TXT file,
* or at http://www.gnu.org
*/
#ifndef InstallH
#define InstallH
#include <defs.h>
#include <textui.h>
#include <vesa.h>
#include <mouse.h>
#include <dosdrv.h>
#include <files.h>
#include <dosio.h>
#include <FatInst.h>
#include <FsCreate.h>
#define BOOTITEM_FILESIZE 4096
#define LASTCONF_FILESIZE 512
class CInstaller {
public:
CInstaller(CTextUI &TextUIToUse, CPartList &PartListToUse);
~CInstaller();
int Install(CVesa::TGraphicsMode GraphicsMode, CMouse::TMouseType MouseType, const CDosDriveList::CDosDrive &DosDrive, bool PartMan, bool SmartBm);
int Install(CVesa::TGraphicsMode GraphicsMode, CMouse::TMouseType MouseType, int PartIndex, bool PartMan, bool SmartBm);
int Uninstall(const CDosDriveList::CDosDrive &DosDrive, int OriginalMbr);
int Uninstall(int PartIndex, int OriginalMbr);
int Restore(const CDosDriveList::CDosDrive &DosDrive);
int Restore(int PartIndex);
private:
CTextUI &TextUI;
CPartList &PartList;
CXoslFiles XoslFiles;
CDosFile DosFile;
CFatInstall FatInstall;
CFsCreator FsCreator;
int CreateXoslData(CVesa::TGraphicsMode GraphicsMode, CMouse::TMouseType MouseType);
int CreateBootItem();
int BackupOriginalMbr(int PartId, const char *DestFileName);
int BackupCurrentMbr(void *Ipl);
int BackupCurrentMbr(void *Ipl, int Drive, unsigned long StartSector);
void RemoveXoslFiles(char DosDriveChar);
int LoadDosMbr(int DriveChar, const char *DosFileName, void *MbrBuffer);
int LoadRawMbr(int PartIndex, const char *DosFileName, void *MbrBuffer);
int LoadDefaultMbr(void *MbrBuffer);
void SetPartId(int PartIndex, int PartId);
void InstallSmartBootManager(int Drive);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?