bf81236cfa4a31d508242580a765cf4c7b4788fe
2 * FreeLoader - registry.h
4 * Copyright (C) 2001 Eric Kohl
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.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 typedef struct _REG_KEY
27 LIST_ENTRY SubKeyList
;
40 } KEY
, *FRLDRHKEY
, **PFRLDRHKEY
;
43 typedef struct _REG_VALUE
58 #define ERROR_SUCCESS 0L
59 #define ERROR_OUTOFMEMORY 14L
60 #define ERROR_INVALID_PARAMETER 87L
61 #define ERROR_MORE_DATA 234L
62 #define ERROR_NO_MORE_ITEMS 259L
67 RegInitializeRegistry(VOID
);
70 RegInitCurrentControlSet(BOOL LastKnownGood
);
74 RegCreateKey(FRLDRHKEY ParentKey
,
79 RegDeleteKey(FRLDRHKEY Key
,
83 RegEnumKey(FRLDRHKEY Key
,
89 RegOpenKey(FRLDRHKEY ParentKey
,
95 RegSetValue(FRLDRHKEY Key
,
102 RegQueryValue(FRLDRHKEY Key
,
109 RegDeleteValue(FRLDRHKEY Key
,
113 RegEnumValue(FRLDRHKEY Key
,
122 RegGetSubKeyCount (FRLDRHKEY Key
);
125 RegGetValueCount (FRLDRHKEY Key
);
129 RegImportBinaryHive (PCHAR ChunkBase
,
133 RegExportBinaryHive (PCWSTR KeyName
,
138 #endif /* __REGISTRY_H */