[FREELDR] Always change video mode back to text-mode before starting up ReactOS.
[reactos.git] / boot / freeldr / freeldr / ntldr / registry.h
1 /*
2 * FreeLoader - registry.h
3 *
4 * Copyright (C) 2001 Eric Kohl
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef __REGISTRY_H
22 #define __REGISTRY_H
23
24 typedef HANDLE HKEY, *PHKEY;
25
26 LONG
27 RegInitCurrentControlSet(BOOLEAN LastKnownGood);
28
29 LONG
30 RegEnumKey(
31 _In_ HKEY Key,
32 _In_ ULONG Index,
33 _Out_ PWCHAR Name,
34 _Inout_ ULONG* NameSize,
35 _Out_opt_ PHKEY SubKey);
36
37 LONG
38 RegOpenKey(HKEY ParentKey,
39 PCWSTR KeyName,
40 PHKEY Key);
41
42 LONG
43 RegQueryValue(HKEY Key,
44 PCWSTR ValueName,
45 ULONG* Type,
46 PUCHAR Data,
47 ULONG* DataSize);
48
49 LONG
50 RegEnumValue(HKEY Key,
51 ULONG Index,
52 PWCHAR ValueName,
53 ULONG* NameSize,
54 ULONG* Type,
55 PUCHAR Data,
56 ULONG* DataSize);
57
58 BOOLEAN
59 RegImportBinaryHive(PVOID ChunkBase,
60 ULONG ChunkSize);
61
62 #endif /* __REGISTRY_H */
63
64 /* EOF */