ReactOS  0.4.15-dev-5126-g3bb451b
registry.h
Go to the documentation of this file.
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 #include <cmlib.h>
25 
26 typedef HANDLE HKEY, *PHKEY;
27 
28 #define HKEY_TO_HCI(hKey) ((HCELL_INDEX)(ULONG_PTR)(hKey))
29 
30 BOOLEAN
32  _In_ PVOID ChunkBase,
34 
35 BOOLEAN
37  _In_ BOOLEAN LastKnownGood);
38 
39 extern PHHIVE SystemHive;
41 
42 /*
43  * LONG
44  * RegCloseKey(
45  * _In_ HKEY hKey);
46  */
47 #define RegCloseKey(hKey) (ERROR_SUCCESS)
48 
49 #if 0
50 LONG
52  _In_ HKEY Key,
55  _Inout_ PULONG NameSize,
56  _Out_opt_ PHKEY SubKey);
57 #endif
58 
59 LONG
63  _Out_ PHKEY Key);
64 
65 LONG
67  _In_ HKEY Key,
72 
73 #if 0
74 LONG
76  _In_ HKEY Key,
79  _Inout_ PULONG NameSize,
83 #endif
84 
85 #endif /* __REGISTRY_H */
86 
87 /* EOF */
const uint16_t * PCWSTR
Definition: typedefs.h:57
#define _Inout_
Definition: ms_sal.h:378
#define _Out_
Definition: ms_sal.h:345
unsigned char * PUCHAR
Definition: retypes.h:3
uint16_t * PWCHAR
Definition: typedefs.h:56
_Inout_ PUCHAR _In_ PUCHAR _Out_ PUCHAR _Out_ PULONG ChunkSize
Definition: rtlfuncs.h:2274
long LONG
Definition: pedump.c:60
BOOLEAN RegImportBinaryHive(_In_ PVOID ChunkBase, _In_ ULONG ChunkSize)
Definition: registry.c:66
LONG RegOpenKey(_In_ HKEY ParentKey, _In_z_ PCWSTR KeyName, _Out_ PHKEY Key)
Definition: registry.c:263
LONG RegQueryValue(_In_ HKEY Key, _In_z_ PCWSTR ValueName, _Out_opt_ PULONG Type, _Out_opt_ PUCHAR Data, _Inout_opt_ PULONG DataSize)
Definition: registry.c:418
unsigned char BOOLEAN
#define _In_
Definition: ms_sal.h:308
#define _In_z_
Definition: ms_sal.h:313
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
Definition: wdfdevice.h:2697
#define RegEnumKey
Definition: winreg.h:509
_In_ WDFCOLLECTION _In_ ULONG Index
BOOLEAN RegInitCurrentControlSet(_In_ BOOLEAN LastKnownGood)
Definition: registry.c:112
Type
Definition: Type.h:6
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:240
PHHIVE SystemHive
Definition: registry.c:32
#define _Inout_opt_
Definition: ms_sal.h:379
HANDLE * PHKEY
Definition: registry.h:26
_Must_inspect_result_ _In_opt_ WDFKEY ParentKey
Definition: wdfregistry.h:69
#define _Out_opt_
Definition: ms_sal.h:346
unsigned int * PULONG
Definition: retypes.h:1
HANDLE HKEY
Definition: registry.h:26
unsigned int ULONG
Definition: retypes.h:1
HKEY CurrentControlSetKey
Definition: registry.c:33
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4751
#define RegEnumValue
Definition: winreg.h:511