[USETUP]
[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 /*
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 #pragma once
28
29 NTSTATUS
30 CreateFreeLoaderIniForDos(
31 PWCHAR IniPath,
32 PWCHAR ArcPath);
33
34 NTSTATUS
35 CreateFreeLoaderIniForReactOS(
36 PWCHAR IniPath,
37 PWCHAR ArcPath);
38
39 NTSTATUS
40 UpdateFreeLoaderIni(
41 PWCHAR IniPath,
42 PWCHAR ArcPath);
43
44 NTSTATUS
45 SaveCurrentBootSector(
46 PWSTR RootPath,
47 PWSTR DstPath);
48
49 NTSTATUS
50 InstallFat16BootCodeToFile(
51 PWSTR SrcPath,
52 PWSTR DstPath,
53 PWSTR RootPath);
54
55 NTSTATUS
56 InstallFat32BootCodeToFile(
57 PWSTR SrcPath,
58 PWSTR DstPath,
59 PWSTR RootPath);
60
61 NTSTATUS
62 InstallMbrBootCodeToDisk(
63 PWSTR SrcPath,
64 PWSTR RootPath);
65
66 NTSTATUS
67 InstallFat16BootCodeToDisk(
68 PWSTR SrcPath,
69 PWSTR RootPath);
70
71 NTSTATUS
72 InstallFat32BootCodeToDisk(
73 PWSTR SrcPath,
74 PWSTR RootPath);
75
76 NTSTATUS
77 UpdateBootIni(
78 PWSTR BootIniPath,
79 PWSTR EntryName,
80 PWSTR EntryValue);
81
82 BOOLEAN
83 CheckInstallFatBootcodeToPartition(
84 PUNICODE_STRING SystemRootPath);
85
86 NTSTATUS
87 InstallFatBootcodeToPartition(
88 PUNICODE_STRING SystemRootPath,
89 PUNICODE_STRING SourceRootPath,
90 PUNICODE_STRING DestinationArcPath,
91 UCHAR PartitionType);
92
93 NTSTATUS
94 InstallVBRToPartition(
95 PUNICODE_STRING SystemRootPath,
96 PUNICODE_STRING SourceRootPath,
97 PUNICODE_STRING DestinationArcPath,
98 UCHAR PartitionType);
99
100 NTSTATUS
101 InstallFatBootcodeToFloppy(
102 PUNICODE_STRING SourceRootPath,
103 PUNICODE_STRING DestinationArcPath);
104
105 /* EOF */