1303b5be69582affc4c92f70a2c9a4d5cfd1831a
[reactos.git] / reactos / base / setup / usetup / bootsup.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2002 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 /* $Id$
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: subsys/system/usetup/bootsup.h
23 * PURPOSE: Bootloader support functions
24 * PROGRAMMER: Eric Kohl
25 */
26
27 #ifndef __BOOTSUP_H__
28 #define __BOOTSUP_H__
29
30 NTSTATUS
31 CreateFreeLoaderIniForDos(PWCHAR IniPath,
32 PWCHAR ArcPath);
33
34 NTSTATUS
35 CreateFreeLoaderIniForReactos(PWCHAR IniPath,
36 PWCHAR ArcPath);
37
38 NTSTATUS
39 UpdateFreeLoaderIni(PWCHAR IniPath,
40 PWCHAR ArcPath);
41
42 NTSTATUS
43 SaveCurrentBootSector(PWSTR RootPath,
44 PWSTR DstPath);
45
46 NTSTATUS
47 InstallFat16BootCodeToFile(PWSTR SrcPath,
48 PWSTR DstPath,
49 PWSTR RootPath);
50
51 NTSTATUS
52 InstallFat32BootCodeToFile(PWSTR SrcPath,
53 PWSTR DstPath,
54 PWSTR RootPath);
55
56 NTSTATUS
57 InstallMbrBootCodeToDisk (PWSTR SrcPath,
58 PWSTR RootPath);
59
60 NTSTATUS
61 InstallFat16BootCodeToDisk(PWSTR SrcPath,
62 PWSTR RootPath);
63
64 NTSTATUS
65 InstallFat32BootCodeToDisk(PWSTR SrcPath,
66 PWSTR RootPath);
67
68 NTSTATUS
69 UpdateBootIni(PWSTR BootIniPath,
70 PWSTR EntryName,
71 PWSTR EntryValue);
72
73 BOOLEAN
74 CheckInstallFatBootcodeToPartition(PUNICODE_STRING SystemRootPath);
75
76 NTSTATUS
77 InstallFatBootcodeToPartition(PUNICODE_STRING SystemRootPath,
78 PUNICODE_STRING SourceRootPath,
79 PUNICODE_STRING DestinationArcPath,
80 UCHAR PartitionType);
81
82 NTSTATUS
83 InstallFatBootcodeToFloppy(PUNICODE_STRING SourceRootPath,
84 PUNICODE_STRING DestinationArcPath);
85
86 #endif /* __BOOTSUP_H__ */
87
88 /* EOF */