[SETUPLIB] Improve the bootloader 'validity' checks -- Addendum to f06734e5 (r74512).
[reactos.git] / base / setup / lib / registry.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2003 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 Setup Library
22 * FILE: base/setup/lib/registry.h
23 * PURPOSE: Registry creation functions
24 * PROGRAMMERS: ...
25 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
26 */
27
28 #pragma once
29
30 HANDLE
31 GetRootKeyByPredefKey(
32 IN HANDLE KeyHandle,
33 OUT PCWSTR* RootKeyMountPoint OPTIONAL);
34
35 HANDLE
36 GetRootKeyByName(
37 IN PCWSTR RootKeyName,
38 OUT PCWSTR* RootKeyMountPoint OPTIONAL);
39
40 BOOLEAN
41 ImportRegistryFile(
42 IN PCWSTR SourcePath,
43 IN PCWSTR FileName,
44 IN PCWSTR Section,
45 IN LCID LocaleId,
46 IN BOOLEAN Delete);
47
48 NTSTATUS
49 VerifyRegistryHives(
50 IN PUNICODE_STRING InstallPath,
51 OUT PBOOLEAN ShouldRepairRegistry);
52
53 NTSTATUS
54 RegInitializeRegistry(
55 IN PUNICODE_STRING InstallPath);
56
57 VOID
58 RegCleanupRegistry(
59 IN PUNICODE_STRING InstallPath);
60
61 /* EOF */