xref: /reactos/boot/freeldr/freeldr/ntldr/registry.h (revision f7cab5a1)
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 BOOLEAN
27 RegImportBinaryHive(
28     _In_ PVOID ChunkBase,
29     _In_ ULONG ChunkSize);
30 
31 LONG
32 RegInitCurrentControlSet(
33     _In_ BOOLEAN LastKnownGood);
34 
35 LONG
36 RegEnumKey(
37     _In_ HKEY Key,
38     _In_ ULONG Index,
39     _Out_ PWCHAR Name,
40     _Inout_ PULONG NameSize,
41     _Out_opt_ PHKEY SubKey);
42 
43 LONG
44 RegOpenKey(
45     _In_ HKEY ParentKey,
46     _In_z_ PCWSTR KeyName,
47     _Out_ PHKEY Key);
48 
49 LONG
50 RegQueryValue(
51     _In_ HKEY Key,
52     _In_z_ PCWSTR ValueName,
53     _Out_opt_ PULONG Type,
54     _Out_opt_ PUCHAR Data,
55     _Inout_opt_ PULONG DataSize);
56 
57 #if 0
58 LONG
59 RegEnumValue(
60     _In_ HKEY Key,
61     _In_ ULONG Index,
62     _Out_ PWCHAR ValueName,
63     _Inout_ PULONG NameSize,
64     _Out_opt_ PULONG Type,
65     _Out_opt_ PUCHAR Data,
66     _Inout_opt_ PULONG DataSize)
67 #endif
68 
69 #endif /* __REGISTRY_H */
70 
71 /* EOF */
72